in reply to Re^2: get the size of a special device (drive)
in thread get the size of a special device (drive)

Unfortunately what I am writing is a filesystem... But I went browsing through /proc and found /proc/partitions, when I cat that it shows partitions and sizes in blocks (1024 bytes each I believe) Is this standard and reliable from linux system to linux system?

I think something changed between 2.4 and 2.6, but I wouldn't take my own word as the ultimate Truth™ as I'm far from being an expert...

  • Comment on Re^3: get the size of a special device (drive)