LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   int13 use to retrive harddrive parameters (https://www.linuxquestions.org/questions/linux-software-2/int13-use-to-retrive-harddrive-parameters-91672/)

satyenck 09-11-2003 12:36 PM

int13 use to retrive harddrive parameters
 
I am porting a DOS utility to linux.
DOS code uses, int13.
I used ioctl() in linux code. (with HDIO_GETGEO).

The number of cylinders retrieved by DOS and linux differs.
The harddrive has more than 1024 cylinders.

Can I use the same int13 calls in linux? or is there any other way
in linux so that number of cylinders retrived is same as that in DOS?

Thanks,
satyenck

DrOzz 09-11-2003 12:50 PM

well all i can tell you from that, is no matter what it is, it will have to use INT13 because that is the interrupt number used for input and output to harddrives..

kev82 09-11-2003 12:53 PM

by satyenck
Can I use the same int13 calls in linux?

no, all interrupts below 32dec are reserved for processor in protected mode so the bios interupts are not available

by satyenck
or is there any other way in linux so that number of cylinders retrived is same as that in DOS?

why would you want to, surely the application will run better if it knows the correct number of cylinders rather than what the 16bit bios incorrectly thinks?


All times are GMT -5. The time now is 09:16 PM.