Determine which drive was booted?
Posted: Sat May 27, 2006 8:53 pm
Hey,
I'm trying to write a generic boot sector that can be used on hard drives and floppy disks with little change. The question I have is:
Is there a way to ask BIOS which drive the boot sector was loaded from?
That way I know which drive to load the second-stage bootloader from, etc.
Thanks,
Tyrel
I'm trying to write a generic boot sector that can be used on hard drives and floppy disks with little change. The question I have is:
Is there a way to ask BIOS which drive the boot sector was loaded from?
That way I know which drive to load the second-stage bootloader from, etc.
Thanks,
Tyrel