Hi All,
I'm currently writing the device manager of my OS which is proving to be a little challenging, but I'll get there! I use GRUB to load the manager as a separate module, so until this point I have *no* disk access in my OS.
I have just detected the floppy disks and was thinking, how can I be sure that the boot drive # passed to me by the BIOS can be correctly interpreted in PMode.
For example, HDDs have bit 7 set, fine. But if someone is using SATA and PATA drives simultaneously, how do I know which drive is 0x80? The same question applies for USB devices...
Cheers,
Adam
BIOS boot drive Number in PMode
its quite simple, dont rely on the BIOS
it is for this very reason linux needs a root=<device> parameter to boot
the BIOS may not even know about the device you are booting from
if you really _have to_ do this, look at the grub source, it tries to determine bios drive numbers when you run it from within linux
but its still a guessing game at best
it is for this very reason linux needs a root=<device> parameter to boot
the BIOS may not even know about the device you are booting from
if you really _have to_ do this, look at the grub source, it tries to determine bios drive numbers when you run it from within linux
but its still a guessing game at best