|
Yes
Example:
sfdisk -luM
Disk /dev/sda: 6608 cylinders, 255 heads, 63 sectors/track
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End MiB #blocks Id System
/dev/sda1 * 0+ 101- 102- 104391 83 Linux
/dev/sda2 101+ 51834- 51733- 52974337+ 8e Linux LVM
/dev/sda3 0 - 0 0 0 Empty
/dev/sda4 0 - 0 0 0 Empty
The above shows you partition 1 on disk sda is 102 MB (MiB) and partition 2 is 51733 MB (MiB). You could also figure this out without the -uM flag by looking at the line in sfdisk -l output that contains:
"blocks of 1024 bytes"
So 104391 * 1024 = bytes in sda1
52974337 * 1024 = bytes in sda2
Dividing the answers for above by 1048576 would convert the bytes into megabytes. This would be a little more exact that the MiB column as that one is rounding up to the nearest whole number.
|