[windows] Readable boot disk
Posted: Fri Jan 24, 2003 1:44 am
Programs such as partcopy and copyboot often overwrite all data on the disk, thus making windows and other operating systems not be able to read it seeing as its not stored in a valid FAT12 format. Anyway, I've seen some tricks out there to help fix this up for you:
--make.bat
Along with that you need to make your boot sector skip some bytes, its recommended by http://osdev.neopages.net/tutorials/usingpcopy.php to do that in this way:
--Example 1
The problem I've noticed with this is it doesn't work, on Windows XP at least. I'm not sure as to what may have changed in XP over other versions but this method just doesn't work.
So anyway, I thought it might be to the benifit of many if I post this information here and possibly put a post up if I find the right way to do it, or one of you post if you happen to know.
Thanks,
Kyle LaDuke
--make.bat
Code: Select all
nasm -f bin -o boot.bin boot.asm
partcopy boot.bin 0 3 -f0
partcopy boot.bin 3e 1c2 -f0 3e
pause
--Example 1
Code: Select all
start:
jmp short begin
nop
times 0x3B db 0
So anyway, I thought it might be to the benifit of many if I post this information here and possibly put a post up if I find the right way to do it, or one of you post if you happen to know.
Thanks,
Kyle LaDuke