Page 1 of 1

Drive Number for CD

Posted: Tue Jun 18, 2013 8:17 pm
by gabemaiberger
What is the drive number for a CD? I would like my bootsector and bootloader to load sectors via int13 extended read.

Re: Drive Number for CD

Posted: Tue Jun 18, 2013 8:57 pm
by Brendan
Hi,
gabemaiberger wrote:What is the drive number for a CD? I would like my bootsector and bootloader to load sectors via int13 extended read.
If you booted from CD via. "no emulation" El Torito, then the drive number for the CD you booted from is whatever the BIOS left in DL.

If you booted from anything else (including "hard disk emulation" El Torito), then the drive number for the CD may not exist, and if it does exist then it could be anything (but 0xC0 or 0xE0 are more likely possibilities than other numbers if any number exists).

[EDIT:] Also note that it may or may not be possible to use "IBM/MS INT 13 Extensions - GET DRIVE PARAMETERS" to check each drive number to determine if it's a CD or not.[/EDIT]


Cheers,

Brendan