Date: 24 Sep 2002 01:53:42 GMT Newsgroups: comp.os.linux.misc
> > I have a bootable CD, which includes a kickstart file for installing > > linux. Is there a way to image the CD, so that I retain the boot > > portion (the boot portion is not linux), mount the image, and overwrite > > the specific kickstart file and reimage a new cd.
> Try using dd to extract the image to a regular file then mount the > file (cd image) using loopback and make sure you pass the rw option.
Won't work. ISO9660 filesystem support is read-only (append-only if you want to get pedantic) because of the way ISO9660 is structured. The filesystem is so minimal that there's just no provision for overwriting existing files.
The best way for the OP to go about doing what he wants to do is to figure out what the bootable image on the CD is and then feed that into the mkisofs command. After doing a quick "od -xc /dev/cdrom | more" on my SuSE 8.0 CDs, I found the mkisofs command used to create the ISO at offset 0xA000 . So if I wanted to do something similar to my SuSE CDs, I'd copy the entire CD to somewhere on the hard disk, change the files I needed to change, then execute the mkisofs command at offset 0xA000 and feed the resulting ISO to cdrecord.
Matt G