Things to consider when booting from 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
User avatar
bloodhound23
Member
Member
Posts: 115
Joined: Wed Jan 23, 2008 7:13 pm
Contact:

Things to consider when booting from USB

Post by bloodhound23 »

Ok, I want to make my OS boot from USB. Is there anything that changes when you boot from usb, compared to booting from a hard disk.
I thought I wasn't thinking, I thought wrong.
cyr1x
Member
Member
Posts: 207
Joined: Tue Aug 21, 2007 1:41 am
Location: Germany

Post by cyr1x »

I think booting is no problem but if you switch to protected mode you won't be able to load files from it unless you write a USB driver or setup VM86 and use the int's.
User avatar
bloodhound23
Member
Member
Posts: 115
Joined: Wed Jan 23, 2008 7:13 pm
Contact:

Post by bloodhound23 »

I'm entering long mode! Anyway that is no different than if you were booting from a HD, no BIOS ints to help you out.
I thought I wasn't thinking, I thought wrong.
User avatar
jerryleecooper
Member
Member
Posts: 233
Joined: Mon Aug 06, 2007 6:32 pm
Location: Canada

Post by jerryleecooper »

cyr1x wrote:I think booting is no problem but if you switch to protected mode you won't be able to load files from it unless you write a USB driver or setup VM86 and use the int's.
Unfortunately, using int 0x13 doesn't seem to work in vm86.
You need to write the drivers.
Ready4Dis
Member
Member
Posts: 571
Joined: Sat Nov 18, 2006 9:11 am

Post by Ready4Dis »

Yeah, you'll have to make sure you have USB Mass Storage device drivers imlpemented in order to read the device after boot, but as far as the bootloader, there is no change, the bios treats the USB drive as a standard drive via int 0x13.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

You can go to and from pmode to realmode, to read/write to usb fob, this work well. But it very slow, and the slow is nothing to do with going back and forth.
Post Reply