LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-11-2003, 12:36 PM   #1
satyenck
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
Question 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
 
Old 09-11-2003, 12:50 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
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..
 
Old 09-11-2003, 12:53 PM   #3
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to send or retrive file using vsftpd yspl Linux - Networking 4 09-29-2005 10:10 AM
many parameters... os2 Programming 3 07-30-2005 04:56 PM
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 09:33 AM
Need to replace full harddrive with new, larger harddrive pearlr Linux - Newbie 1 01-02-2004 12:59 PM
How to Retrive /etc(sys file) !! hitesh_linux Linux - General 4 02-08-2003 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration