Sysresccd-manual-en Burning a DVD RW from SystemRescueCd by mounting it



Now that you have used the various system tools to repair the partition or locate the files you can write them onto a DVD. Normally this requires a work area to collect the DVD image and a utility to write the DVD. This documents the procedure to write directly to a DVD. This only works with DVD+RW and creates a UDFS which cannot be read by MS windows eariler than XP.

Summary of the steps

  1. Boot SystemRescueCd
  2. Format the DVD+RW media
  3. Make the UDF filesystem
  4. Mount the disc
  5. Write the DVD

Step-1: Boot SystemRescueCd

Most computers have only one DVD+RW drive. If you boot SystemRescueCD from a DVD use the docache option. This loads SystemRescueCD into memory of a system with at least 256 MB of memory.

For example:

boot: rescuecd docache dodhcp setkmap=de

many messages...

[email protected] /root % eject 

The DVD drive is now available.

Step-2: Format the DVD+RW media

You will need to know the name of the device. You can try this if you have no idea:

ls -l /dev/cd*
[email protected] /root % ls -l /dev/cd*
lrwxrwxrwx 1 root root 3 May 19  2007 /dev/cdrom2 -> hdd
lrwxrwxrwx 1 root root 3 May 19  2007 /dev/cdrw2 -> hdd

It means on this computer /dev/hdd is the device that burns CD/DVD, and we will use it.

To format the disc, type the following command (replace the device name with yours):

dvd+rw-format -force=full /dev/hdd

It can take several minutes. Here is the output of the command:

* BD/DVD±RW/-RAM format utility by <[email protected]>, version 7.0.
* 4.7GB DVD+RW media detected.
* formatting

Step-3: Make the UDF filesystem

Once the disc is formatted, you can create the UDF filesystem on the disc:

mkudffs --lvid="dvd-backup" --udfrev=0x0150 /dev/hdd

You can add your own options but it's a good thing to use UDF revision 1.50 since it can avoid compatibility problems with several operating systems. Of course, you should change the volume ID. Here is an example of the output of mkudffs

start=0, blocks=16, type=RESERVED
start=16, blocks=3, type=VRS
start=19, blocks=237, type=USPACE
start=256, blocks=1, type=ANCHOR
start=257, blocks=16, type=PVDS
start=273, blocks=1, type=LVID
start=274, blocks=2294573, type=PSPACE
start=2294847, blocks=1, type=ANCHOR
start=2294848, blocks=239, type=USPACE
start=2295087, blocks=16, type=RVDS
start=2295103, blocks=1, type=ANCHOR

Linux-2.6 supports UDF (if the option was enabled in the kernel, of course SystemRescueCd has it enabled). Windows 2000 and previous versions cannot read UDF discs. Windows XP, 2003 and Vista all support UDF.

Step-4: Mount the DVD

The media is formatted with UDF. Create a mount point and mount it in read-write mode.

[email protected] % mkdir -p /mnt/DVD
[email protected] % mount -t udf -o rw,noatime /dev/hdd /mnt/DVD

Step-5: Write the data

Now you can write files to the DVD as you would copy files to a mounted partition of your hard disk.

I. First use du (Disk Usage) to check the size of a directory you are planning to save

[email protected] % du -sh /home
4.3G /home

Be careful not to attempt to exceed the space available on a DVD (4.7 GB for a single layer disc).

Then copy the directory and all subdirectories preserving the original timestamps etc.

[email protected] % cp -R -p /home /mnt/DVD

The copy will be slow since it's not a hard disk.

When you have finished copying data, unmount the DVD, and run sync to cause the data to be written:

[email protected] % umount /mnt/DVD
[email protected] % sync
[email protected] % eject 


II.Use Partimage to save a partition to the DVD, for example:

[email protected] % partimage save /dev/hda1 /mnt/DVD/dupouxTestRoot_rescued-090117.pi