| Don't Forget to Configure the Kernel/System First
|
- Do NOT forget to append "hdc=ide-scsi" to Lilo/Grub for boot config changes
|
| Test You Can Access the CD-RW Drive
|
- cdrecord -scanbus
- your cd-rw drive should be listed
- note the BusID ( 0,0,0 )
- note the drive write speed ( listed on your cdrw hardware )
- cdrecord -eject dev=0,0,0
- cdwrite --eject --device /dev/sgc
|
| Verify the ISO Image before Writing to CDROM
|
- mount -t iso9660 -o ro,loop=/dev/loop0 cd_image.iso /mnt/cdrom
-- or --
mount -t iso9660 -r -o loop cd_image.iso /mnt/cdrom
ls -la /mnt/cdrom
umount /mnt/cdrom
|
| Write/Burn the ISO9660 Image to the CD media
|
- cdrecord -v speed=4 dev=0,0,0 -data cd_image.iso
- write speed=xx per specs as marked on your cdrw disk drive
- dev=a,b,c defined from cdrecord -scanbus
-- or --
- cdwrite --device /dev/sgd cd_image.iso
|
| Verify you can Mount the Bootable CDROM
|
- Sometimes, things just doesn't do what you expect ..
- mount -t iso9660 -o ro /dev/cdrom /mnt/cdrom
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)
- mount -t iso9660 -o ro /dev/scd0 /mnt/cdrom
it seems to like it better
- So fix the links, cd /dev ; ln -s ./scd0 cdrom for IDE-SCSI cdroms
- Checking the contents of the cdrom vs your original data
- ls -laR /mnt/cdrom > /tmp/cdrom.copy.txt
- ls -laR /home/your-data-copied-to-dcrom > /tmp/cdrom.orig.txt
- diff /tmp/cdrom.copy.txt /tmp/cdrom.orig.txt
- diff -rq /mnt/cdrom /home/your-data-copied-to-cdrom
- ( cd /mnt/cdrom ; tar cf - * ) | (cd /home/your-data-copied-to-cdrom ; tar dvf - )
umount /mnt/cdrom
|
| Boot the Standalone Bootable CDROM
|
- It's running off the cdrom when...
- "df" does NOT show any /dev/hda partitions
- you should have a rootfs and /dev/root
- you should have a read-write ramdisk
|
|
Filesystem
|
1K-blocks
|
Used
|
Available
|
Use%
|
Mounted on
|
|
rootfs
|
493440
|
493440
|
0
|
100%
|
/
|
|
/dev/root
|
493440
|
493440
|
0
|
100%
|
/
|
|
/dev/ram0
|
15325
|
211
|
15114
|
2%
|
/ramdisk
|
|
none
|
111888
|
0
|
111888
|
0%
|
/dev/shm
|
|
- it will seem to run a little slowly, its running from cdrom instead
- Boot it into Single User mode
- Boot it into "multi-user mode" w/ network capability
- Boot it into "X11"
|
| Audio and Video CDROMs, DVDs
|
|