Hi!

Monday, 28 May, 2001 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

das> I have an existing bootable CD and I need to change a couple of files. But
das> I can't find an image of the bootable diskette, that seems to be used for
das> El Toritto boot.

das> Is it somehow possible to extract the image from the CD (if one is not
das> available as file)?

as a _very_ quick and _very_ dirty solution you can use something like
this:

#! /bin/sh
# change this to your cd drive dev
cd_dev=/dev/hdc
# boot size in kB
boot_size=1440
dd if=$cd_dev bs=2048 count=1 skip=17 >sect
position=`hexdump -n 4 -s 0x47 -e '"%u"' sect`
dd if=$cd_dev bs=2048 count=1 skip=$position >sect
position=`hexdump -n 4 -s 0x28 -e '"%u"' sect`
dd if=$cd_dev bs=1024 count=$boot_size skip=$position >boot_image

it'll work only for single-session, single-boot, 1.44M-boot-image cd,
but you can tweak it as you want.

Egor.            mailto:[EMAIL PROTECTED] ICQ 5165414 FidoNet 2:5020/496.19



--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to