Hi!

Wednesday, 30 May, 2001 David Lerner [EMAIL PROTECTED] wrote:

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

of course. silly me. this should read:

#! /bin/sh
# change this to your cd drive dev
cd_dev=/dev/hdc
# boot size in 2kB-blocks
boot_size=720
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=2048 count=$boot_size skip=$position >boot_image

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