Reputation: 1305
My only experience in O/S development before this has been to create a 'Hello World' OS running from a Floppy drive.
What I need now is to develop a simple O/S to boot from a USB stick. And I have a few roadblocks:
How do I write to the boot "sector" of a USB stick? Are there any tools available?
Do you know of any good tutorials or guides directed towards USB bootloading?
I need to be able to read files on the USB; what is the standard file system on a USB stick? FAT? Does Linux natively use FAT to store/read files on a USB?
NB: I am doing this just for learning all the dirty low level tricks, that's why I don't want linux on a stick to do this job.
Upvotes: 2
Views: 297
Reputation: 3196
Upvotes: 2
Reputation: 7720
Just some answers off the top of my head (since I deal with low-level disk structure a lot):
You can just use a good hex editor that will let you write directly to a disk (such as HxD), or roll your own app that uses the CreateFile API (or the Linux equivalent).
You can check out something like BartPE, which allows you to make a bootable XP image on a USB device.
USB drives are 99% FAT. Linux does indeed support FAT natively for reading USB mass storage.
Upvotes: 1
Reputation: 20956
Just adding an information. Mac on Stick will be a useful thing. You can get the core idea on file structure etc. Having a careful look will solve most of the above problems. :)
Upvotes: 0