how to create a DVD backup filesystem?

Wojciech Puchar wojtek at wojtek.tensor.gdynia.pl
Fri Jan 23 08:09:58 PST 2009


> 	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




More information about the freebsd-questions mailing list