flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Test Boot Sector

Author
Thread Post new topic Reply to topic
JMD



Joined: 24 Sep 2003
Posts: 32
JMD 25 Jan 2007, 23:44
Hi

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.


Description: test boot sector for Fat32 formatted drives.
Download
Filename: Test Boot.zip
Filesize: 2.99 KB
Downloaded: 718 Time(s)

Post 25 Jan 2007, 23:44
View user's profile Send private message Reply with quote
JMD



Joined: 24 Sep 2003
Posts: 32
JMD 07 Jun 2007, 06:12
Hello,

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.

Jason


Description: USB Bootsector
Download
Filename: BootUSB.zip
Filesize: 5.78 KB
Downloaded: 715 Time(s)

Post 07 Jun 2007, 06:12
View user's profile Send private message Reply with quote
JMD



Joined: 24 Sep 2003
Posts: 32
JMD 07 Jun 2007, 09:36
EDIT
Post 07 Jun 2007, 09:36
View user's profile Send private message Reply with quote
Hayden



Joined: 06 Oct 2005
Posts: 132
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.
Post 07 Jun 2007, 21:48
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.