LDA -> LBA b/c I'm dyslexic
This commit is contained in:
parent
99620c8d3b
commit
9bb4fe29c3
1 changed files with 4 additions and 4 deletions
|
@ -23,14 +23,14 @@ LOAD_SIZE="$(dumpet -i Win*.iso \
|
||||||
| grep -o "[^:]*$" \
|
| grep -o "[^:]*$" \
|
||||||
| cut -d ' ' -f2 \
|
| cut -d ' ' -f2 \
|
||||||
| head -1)"
|
| head -1)"
|
||||||
LDA="$(dumpet -i Win*.iso \
|
LBA="$(dumpet -i Win*.iso \
|
||||||
| grep "LDA" \
|
| grep "LBA" \
|
||||||
| tail -n 1 \
|
| tail -n 1 \
|
||||||
| awk '{printf $3}')"
|
| awk '{printf $3}')"
|
||||||
CDROM_SECTOR_SIZE=2048
|
CDROM_SECTOR_SIZE=2048
|
||||||
FLOPPY_SECTOR_SIZE=512
|
FLOPPY_SECTOR_SIZE=512
|
||||||
|
|
||||||
dd if=Win*.iso bs=${CDROM_SECTOR_SIZE} skip=${LDA} count=1 > win.dmp
|
dd if=Win*.iso bs=${CDROM_SECTOR_SIZE} skip=${LBA} count=1 > win.dmp
|
||||||
FLOPPY_SECTORS="$(file win.dmp \
|
FLOPPY_SECTORS="$(file win.dmp \
|
||||||
| sed -e "s/.*sectors\ //" \
|
| sed -e "s/.*sectors\ //" \
|
||||||
| awk '{printf $1}')"
|
| awk '{printf $1}')"
|
||||||
|
@ -42,7 +42,7 @@ CDROM_SECTORS=`expr $FLOPPY_SECTOR_SIZE \
|
||||||
dd \
|
dd \
|
||||||
if=Win*.iso \
|
if=Win*.iso \
|
||||||
bs=${CDROM_SECTOR_SIZE} \
|
bs=${CDROM_SECTOR_SIZE} \
|
||||||
skip=${LDA} \
|
skip=${LBA} \
|
||||||
count=${CDROM_SECTORS} \
|
count=${CDROM_SECTORS} \
|
||||||
of=win_efi_boot.img
|
of=win_efi_boot.img
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue