egor duda wrote:
> 
> 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.

A direct solution to the problem even it it is dirty. I find, however,
that
the bs should be 2048 in the last dd command as it is in all of the
others.
The boot_size should be in 2k blocks, instead of kB. The script works
for both
1440 kB and 2880 kB boot blocks if boot_size=720 or boot_size=1440,
respectively.

Dave


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

Reply via email to