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?