On Tue, 3 Oct 2000, It appears Adam Beecher said.......
> > cat /proc/ide/hda/capacity
> >
> I'm getting 30008475 on a 15 gig HDD? (I know the capacity of one machine.)
> What's with that?
Hmmmmmmm 30008475 / 2 = 15004238 (15,004,238k ~= 15gb)
So, it looks like /proc/ide/hda/capacity is the number of 512byte blocks
on the drive, thats just a guess though :-)
DAve
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!