View Single Post
  #1  
Old 08-07-2006, 20:45
new_profile new_profile is offline
VIP
 
Join Date: Aug 2002
Posts: 153
Rept. Given: 27
Rept. Rcvd 7 Times in 7 Posts
Thanks Given: 56
Thanks Rcvd at 52 Times in 23 Posts
new_profile Reputation: 7
Hard drive parameters

Hi all,
Having a hard disk, how it is possible to know its paramaters : number of heads, cylinders, total number of sectors, serial number, ... ?
I'm not interested in Windows API as I'm actually working on an embedded system where all I've got is some API to read and write blocks from IDE Bus.
I've tryed reading the hdparms linux command but all what it does is using the IOCTL API.
Is there any special sector to read from or a special command to the controller to access these parameters ?

Thank you.
Reply With Quote