Message board for the users of flat assembler.
> OS Construction > Test Boot Sector
JMD 25 Jan 2007, 23:44
In attempting to figure out how to get my laptop to boot from a USB flash drive using Hard Drive emulation i created this small boot sector. This bootsector will use int 0x13 to access the USB drive through your motherboard bios remap emulation technique. The bootsector loads itself into memory and then starts dumping each sector of the USB Memory to the screen in hexidecimal format. At the end of each sector being printed, it will print the Head, Cylinder and Sector numbers in hexidecimal format from which the data on the screen orginated from.
To use this bootsector one must first format their USB Memory stick as Fat32. Secondly, i used "Hex Workshop" to write the secotr to the disk. To do this i opened up the compiled bootsector (the .bin file) in Hex Workshop and selected only the program code starting at offset 0x005A and continuing to the end of the file and selected the copy function. Next i opened the usb flash drive in Hex Workshop and again selected the program code starting at offset 0x005A and preceding to the end of file and choose the paste function. Finally i choose save option to save the changes to the disk.
Hex Workshop is easy to use and good for writing this bootsector to a Fat32 formatted USB Memory stick. However, Hex Workshop will not write to nor display the accual Master Boot Record on the memory device, although this will be the first sector dumped to screen after booting into the bootsector.
If you dont know what your doing, i would recommend not attempting to try it. I am not responisible if you somehow loose some important data or render your pc useless.
|25 Jan 2007, 23:44
JMD 07 Jun 2007, 06:12
I have created a Bootsector that allows me to boot into KolibriOS and soon hopefully MenuetOS (if option to boot to previously loaded image is add back to official release). It seems to work alright with my setup please try it and let me know if it works for anyone else.
|07 Jun 2007, 06:12
JMD 07 Jun 2007, 09:36
|07 Jun 2007, 09:36
Hayden 07 Jun 2007, 21:48
Here is a good freeware hex editor that can do complete sector read writes as well as view edit program memory ect...
HxD Editor: http://www.mh-nexus.de/
New User.. Hayden McKay.
|07 Jun 2007, 21:48
< Last Thread | Next Thread >
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.