How can i get the start and end sectors of the partitions of my harddisk via a bash script?
:) That gives block sizes.
baltusaj
2010-04-12 10:05:27
What's the interrelation between blocks and sectors?
baltusaj
2010-04-12 10:12:10
man fdisk : -u When listing partition tables, give sizes in sectors instead of cylinders.
Omry
2010-04-12 10:48:33
+2
A:
Look at /sys/block/sda/sda1/start
and /sys/block/sda/sda1/size
.
Replace sda
and sda1
with your device and partition.
Eric Seppanen
2010-04-12 22:24:38