Bootable Fat32 USB

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Bobalandi
Member
Member
Posts: 107
Joined: Mon Dec 03, 2007 7:26 am
Location: Near Boston, MA
Contact:

Bootable Fat32 USB

Post by Bobalandi »

How would one go about booting their operating system from a usb drive.? If it was a fat16 usb drive, I might have better ideas, but as far as fat32 usb drives, how is it done.? I have found little information on this. Thanks in advance.
NULL
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Post by 01000101 »

http://www.bootdisk.com/pendrive.htm

the HP utilities are wonderful for getting a USB flash drive formatted correctly, then you can use winwrite or whatever to put your OS on the drive. I'm not entirely sure if it is fat16 or 32.
Last edited by 01000101 on Mon Apr 28, 2008 9:03 pm, edited 1 time in total.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

There has been many differant methods tyred, some more successful than others.
It seem more to do with what BIOS you have, as to whether it works or not.
You will find some info and links here:
http://menuet.2.forumer.com/index.php?showtopic=1112
User avatar
Steve the Pirate
Member
Member
Posts: 152
Joined: Fri Dec 15, 2006 7:01 am
Location: Brisbane, Australia
Contact:

Post by Steve the Pirate »

I've done this - as far as I remember, it was as easy as running the Grub installer (this was on Linux), selecting root as the USB drive, and then typing Install or something.

I think this is the article I followed.
My Site | My Blog
Symmetry - My operating system.
Bobalandi
Member
Member
Posts: 107
Joined: Mon Dec 03, 2007 7:26 am
Location: Near Boston, MA
Contact:

Post by Bobalandi »

Is it possible to use a fat12/fat16 bootloader, or must I create a fat32 one.?
NULL
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

Here how i understand it, first some BIOS use floppy emulation and some use hdd emulation, so its down to your BIOS.
Try putting a usb fob in the PC and booting, then enter the BIOS setup, look under boot priority (or something like that), see if it see the usb as a fdd or hdd etc.
It depends what you see in there as to what you can use.

Next as for fat16, its down to the size of the USB fob, theres a limit. if it's less than 2GB it will useally be formatted FAT (this is most likely fat16), if it says FAT32 its will be fat32.

A good and easy way to use USB to boot is to use Dos as a bootloader, to do this you first format it under win and click add sys files, then by adding you second stage bootload to the autoexe.bat it will boot your OS (if its a com file or mz exe).
Last edited by Dex on Wed Apr 30, 2008 6:52 pm, edited 1 time in total.
TomT
Member
Member
Posts: 42
Joined: Sat Mar 15, 2008 7:20 am
Location: Wisconsin, USA
Contact:

Post by TomT »

If you have your own bootloader that can boot an image file from a floppy, then add this code to boot from usb pen drive or floppy or cd:


;int 13h/8
;get sectors/track and qtyheads
;for possible booting from alternative medium like pen drive
;can boot from pen drive on Dell laptop at work
mov ah,8
mov dl,[0x505] ;drive#
int 13h ;GetCurrentDriveParameters
;test for error ??
and cx,111111b ;low 6 bits of cl contains sectors/track
mov [sectors_per_track],cx
movzx ax,dh ;this is highest head num not qty
inc ax
mov [qtyheads],ax

I tested this on only 1 machine. And as Dex says your Bios must support the floppy emulation.

TomT
Post Reply