Booting from USB drive
Booting from USB drive
I am trying to make a bootloader load off the USB drive. I can't find sample, lowlevel code anywhere that shows how to move data from or to the usb drive. Help!
-
- Member
- Posts: 2566
- Joined: Sun Jan 14, 2007 9:15 pm
- Libera.chat IRC: miselin
- Location: Sydney, Australia (I come from a land down under!)
- Contact:
Two things you have to do, both of which are reasonably easy.
Firstly, get the bootloader into the bootsector of the USB drive. This is easy with a program that can directly edit disk sectors and allow copying of the data in them. I use Hex Workshop, but you can use whatever you want.
Secondly, the BIOS has to support booting off a USB. New BIOSes (after about 2004-05) allow you to boot off a USB, so just go through the SETUP utility and look for a USB-boot option.
I hope this helps!
Firstly, get the bootloader into the bootsector of the USB drive. This is easy with a program that can directly edit disk sectors and allow copying of the data in them. I use Hex Workshop, but you can use whatever you want.
Secondly, the BIOS has to support booting off a USB. New BIOSes (after about 2004-05) allow you to boot off a USB, so just go through the SETUP utility and look for a USB-boot option.
I hope this helps!