Writing to a DVD+R/RW under Linux on

Anders, (Annie ???), Bengt, Ejnar and Isaac

  1. Copy the data you want to write on the DVD to the '/scr/xcdroast' directory (or any other '/scr/...' directory on the local scratch) and create the directory structure you would like to have on the DVD. (Burning via the network is not advisable!)
  2. Change to '/scr/xcdroast' ('/scr/...')
  3. Do an 'du -hs .' to verify that the data fits on the DVD (max. 4.3 Gb (4.7x10^9 b))
  4. Connect the external DVD-Writer to the PC using the USB connector on the left bottom front side of the PC case. FIRST supply power to the drive THEN connect it to the PC!!
  5. Insert the DVD into the drive.
  6. Execute the following command: 'growisofs -Z /dev/scd1 -R -J -v .' and wait until the DVD is finished.
    (It is possible that you have to use /dev/scd0 instead. To check what to use have a look at the '/proc/scsi/scsi' file. If the DVD
    is listed as 'scsi0' use '/dev/scd0',
     if listed as 'scsi1' use '/dev/scd1'.)
  7. Remove the DVD from the drive.
  8. Unplug the DVD-Writer from the PC. FIRST disconnect the USB cable THEN remove the power plug!!
  9. Delete the data from '/scr/xcdroast' ('/scr/...')

More information on http://fy.chalmers.se/~appro/linux/DVD+RW


Making an image and burning later

(Based on the example of NEMO (jan:/scr/nemo/), DVD-writing on bengt)

  1. Make the image:

    jan:[/scr]<0>mkisofs -T -J -r -v -o nemo0.iso nemo ¹

    "nemo0.iso" is the image file, "nemo" the directory on jan:/scr/.
    Finally you will get an output like the following:
    Total translation table size: 10863292
    Total rockridge attributes bytes: 16241407
    Total directory bytes: 26281984
    Path table size(bytes): 3082
    Max brk space used 649e544
    1875120 extents written (3662 Mb)
    
  2. Copy the image to the computer from where you want to write the DVD:

    bengt:[/scr]<0>cp /scr_jan/nemo0.iso .

    (The copying should be finished before writing the DVD)

  3. Write the DVD:

    See the instructions above, the command of item 6 is now:

    bengt:[scr/]<1>growisofs -Z /dev/scd1=./nemo0.iso

__________

¹) Options of mkisofs:
       -J     Generate Joliet directory records in addition to regular iso9660
              file names.  This is primarily useful when the discs are  to  be
              used on Windows-NT or Windows-95 machines.  The Joliet filenames
              are specified in Unicode and each path component can be up to 64
              Unicode characters long.  Note that Joliet is no standard - CD's
              that use only Joliet  extensions  but  no  standard  Rock  Ridge
              extensions  may usually only be used on Microsoft Win32 systems.
              Furthermore, the fact that the filenames are limited to 64 char-
              acters  and the fact that Joliet uses the UTF-16 coding for Uni-
              code characters causes interoperability problems.

       -o filename
              is  the  name  of the file to which the iso9660 filesystem image
              should be written.  This can be a disk file, a tape drive, or it
              can  correspond  directly to the device name of the optical disc
              writer.  If not specified, stdout is used.  Note that the output
              can  also be a block special device for a regular disk drive, in
              which case the disk partition can be  mounted  and  examined  to
              ensure that the premastering was done correctly.

       -R     Generate SUSP and RR records using the Rock  Ridge  protocol  to
              further describe the files on the iso9660 filesystem.

       -r     This is like the -R option, but file ownership and modes are set
              to more useful values.  The uid and gid are set to zero, because
              they  are  usually  only  useful on the author's system, and not
              useful to the client.  All the file read bits are set  true,  so
              that  files and directories are globally readable on the client.
              If any execute bit is set for a file, set  all  of  the  execute
              bits, so that executables are globally executable on the client.
              If any search bit is set for a directory, set all of the  search
              bits, so that directories are globally searchable on the client.
              All write bits are cleared, because the CD-Rom will  be  mounted
              read-only in any case.  If any of the special mode bits are set,
              clear them, because file locks are not  useful  on  a  read-only
              file  system, and set-id bits are not desirable for uid 0 or gid
              0.  When used on Win32, the execute bit is  set  on  all  files.
              This  is  a  result of the lack of file permissions on Win32 and
              the Cygwin POSIX emulation layer.  See  also  -uid  -gid,  -dir-
              mode, -file-mode and -new-dir-mode.

       -T     Generate a file TRANS.TBL in each directory on the CDROM,  which
              can  be used on non-Rock Ridge capable systems to help establish
              the correct file names.  There is also  information  present  in
              the  file  that  indicates the major and minor numbers for block
              and character devices, and each symlink has the name of the link
              file given.

       -v     Verbose  execution.  If  given  twice on the command line, extra
              debug information will be printed.