[CCP14 Home: (Frames | No Frames)]
CCP14 Mirrors: [UK] | [CA] | [US] | [AU]

(This Webpage Page in No Frames Mode)

Collaborative Computational Project Number 14

for Single Crystal and Powder Diffraction

CCP14

Using dd (instead of cdrecord and dvdrecord) to write bootable ISO images to DVD-RAM disks

The CCP14 Homepage is at http://www.ccp14.ac.uk

[Back to CCP14 Web/Config Main Page]

Why note this info down

Because prior to obtaining this information, I was in a world of pain - others might be as well. At time of writing (May 2002) dvdrecord does not recognise the MATSHITA 'DVD-RAM LF-D310 ' DVDRAM drive being used and cdrecord-prodvd will only write small ISO images to DVDRAM drives - not multiple Gig ISO images.

Thanks to Seth Kurtzberg at MIS Corp for passing the advice for using dd instead.


Make the Atapi/IDE DVD-RAM device look like a SCSI device

(this is optional using the dd method of writing to the DVD-RAM disk but not if you want to use dvdrecord and cdrecord

For Redhat 7.3, to have the IDE/Atapi DVD-RAM device look like a SCSI device, :

Find out what device the DVDRAM is (in this case /dev/hdd - hdd)

Edit the /etc/lilo.conf (assuming you are using lilo.conf) and add the appropriate line such as append=" hdd=ide-scsi" after the "read-only" statement. E.g.,

prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.18-3
        label=linux
        initrd=/boot/initrd-2.4.18-3.img
        read-only
        append="hdd=ide-scsi"
        root=/dev/hda2

Type lilo -v for this to update the boot setup then reboot.

Then do the following as root to make sure this has worked:

cdrecord -scanbus which should tell that this has worked.

Check that Redhat 7.3 has relinked the DVDram correctly by doing ls -al /dev/cd*

[root@mill dev]# ls -al cd*
lrwxrwxrwx    1 root     root            8 May 10 12:24 cdrom -> /dev/hdc
lrwxrwxrwx    1 root     root            9 May 10 16:39 cdrom1 -> /dev/scd0

If not do (in this example):

ln -sf /dev/scd0 /dev/cdrom1

Running as root:

cdrecord -scanbus

should now see the Atapi/IDE DVDRAM device as a SCSI device as per the following:

[root@mill root]# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
        0,0,0     0) *
        0,1,0     1) *
        0,2,0     2) 'SEAGATE ' 'ST373405LC      ' '0002' Disk
        0,3,0     3) 'SEAGATE ' 'ST336737LC      ' '0105' Disk
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) 'MATSHITA' 'DVD-RAM LF-D310 ' 'A112' Removable CD-ROM
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *
[root@mill root]#

Using cdrecord dev=1,0,0 -toc

[root@mill root]# cdrecord dev=1,0,0 -toc
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'MATSHITA'
Identifikation : 'DVD-RAM LF-D310 '
Revision       : 'A112'
Device seems to be: Generic mmc2 DVD.
Using generic SCSI-3/mmc CD driver (mmc_cd).
Driver flags   : SWABAUDIO
first: 1 last 1
track:   1 lba:         0 (        0) 00:02:00 adr: 1 control: 4 mode: -1
track:lout lba:   1218960 (  4875840) -1:59:74 adr: 1 control: 4 mode: -1

Installing UDFtools (this is optional)

Download the following; compile and install in your (latest) linux distribution.


Formatting and using dd to write a bootable ISO image to DVD-RAM (in this case the device in on /dev/scd0)

  • This seems to be optional - but good information to know about) mkudffs - Format a device, creating an empty UDF filesystem
    • mkudffs --media-type=dvdram /dev/scd0
    • (Or if CD-RW): mkudffs --media-type=cdrw /dev/scd0

  • Rather than the above: try mke2fs -b 2048 /dev/scd0 to create a blank filesystem or wipe the previous disk.

  • Then to write the ISO image (in this case created by mondorescue), do
    • dd if=/tmp/isos/1.iso of=/dev/scd0

      (make sure you are writing to a valid device or you will fill up your /dev area pretty quickly)


Infrormation on making bootable CDs on Linux


[CCP14 Home: (Frames | No Frames)]
CCP14 Mirrors: [UK] | [CA] | [US] | [AU]

(This Webpage Page in No Frames Mode)

If you have any queries or comments, please feel free to contact the CCP14