Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jan 2009 17:09:51 +0100 (CET)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Gary Kline <kline@thought.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: how to create a DVD backup filesystem?
Message-ID:  <20090123170407.A38136@wojtek.tensor.gdynia.pl>
In-Reply-To: <20090123011043.GA86638@thought.org>
References:  <20090123011043.GA86638@thought.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> 	Guys, I've got several directories off ~kline/ that I want to
> 	store permanently.  Like all my development code in ~/devel, and
> 	all my music mp3's and ogg's in ~/Music, and all my online and
> 	mp3 books from libribox.org in ~/readings.  There are PDF files
> 	and HTML and a slew of other stuff.

man mkisofs
man growisofs

that's all.

mkisofs creates ISO image
growisofs records DVD

you can make growisofs run mkisofs in-flight so no image file has to be 
made.


>
> 	either a few CD's or one DVD?  Right now, I'm cross-backing up

it's best NOT to use "GUI" interfaces for this. as always - doing it from 
command line is much easier when you learn.


and - you ARE NOT forced to use ISO-9660 filesystem.
in unix recorded DVD is just readonly disk, you can use any filesystem it 
supports.

if you do this often and your DVD's don't need to be windoze-readable 
(which could be adventage sometimes) then:

- create partitions of exactly 9180416 sectors (which is 2295104 2K 
sectors - exactly DVD size)
- use newfs to create partition. for best results use options

  newfs -m 0 -b 32768 -f 4096 -i 524288

note that -i specify how much bytes is available per inode. more 
given=less inodes created and less space wasted, but you may run out of 
inodes storing small files.
this example allows you to store about 8900 files.

- mount it and record what you like as usual
- unmount and use growisofs to record a disc.

use that disc with
mount -r /dev/cd0 /mountpoint





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20090123170407.A38136>