Drive Number for CD

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
gabemaiberger
Member
Member
Posts: 40
Joined: Tue Nov 13, 2012 2:54 pm

Drive Number for CD

Post by gabemaiberger »

What is the drive number for a CD? I would like my bootsector and bootloader to load sectors via int13 extended read.

Code: Select all

var myCat="marshmallow"
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Drive Number for CD

Post 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
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Post Reply