Web lists-archives.com

Re: Some help with dd backing up into an iso


i forgot to adapt my xorriso example from a few days ago:

  xorriso \
  -for_backup \
  -outdev usb_part1.iso \
  -map /mnt/usb-Kingston_DataTraveler_3.0_08606E69C773BFC06965007B-0:0-part1 /

Note that the last "/" is not a misspelled "\" but the path to the
upcomming ISO's root directory. The "\" tell the shell that the command
line goes on in the next input line.

This will create the (probably large) file usb_part1.iso, which you
can mount (as superuser) by:

  mkdir /mnt/usb_part1_iso
  mount -o loop /where/it/is/usb_part1.iso /mnt/usb_part1_iso

with "/where/it/is" replaced by the absolute path to the ISO image file.
Then the file tree copy should show up under /mnt/usb_part1_iso .

If you have a DVD drive, with e.g. address /dev/sr0 and a DVD+RW in it,
then you may write directly to the DVD:

  xorriso \
  -for_backup \
  -outdev /dev/sr0 \
  -blank as_needed \
  -map /mnt/usb-Kingston_DataTraveler_3.0_08606E69C773BFC06965007B-0:0-part1 /

"-blank as_needed" will enable overwriting of old content on the DVD+RW
or blank a DVD-RW. With DVD+RW or formatted DVD-RW, it will be fast.
With unformatted DVD-RW it will last as long as a full write run.
DVD-R or DVD+R are usable if not yet written by other burn runs.

Have a nice day :)