Si possono usare sostanzialmente tre metodi:
# fdisk -l
root@Debianbox:/home/edmond# fdisk -l
Disk /dev/sda: 500 GB, 500105249280 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 22370 179686993 5 Extended
Warning: Partition 1 does not end on cylinder boundary.
/dev/sda5 1 6079 48821535 83 Linux
Warning: Partition 5 does not end on cylinder boundary.
/dev/sda6 6079 6201 979965 82 Linux swap
Warning: Partition 6 does not end on cylinder boundary.
/dev/sda7 6201 12280 48829567 83 Linux
Warning: Partition 7 does not end on cylinder boundary.
/dev/sda8 12280 18602 50781465 83 Linux
Warning: Partition 8 does not end on cylinder boundary.
/dev/sda9 18602 22249 29294527 a5 FreeBSD
Warning: Partition 9 does not end on cylinder boundary.
/dev/sda10 22249 22370 971932 82 Linux swap
Warning: Partition 10 does not end on cylinder boundary.
/dev/sda2 * 22371 25000 21117442 83 Linux
Disk /dev/sdb: 203 GB, 203925012480 bytes
240 heads, 63 sectors/track, 26342 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 14 105808 7 HPFS/NTFS
Warning: Partition 1 does not end on cylinder boundary.
/dev/sdb2 14 14900 112538160 7 HPFS/NTFS
Warning: Partition 2 does not end on cylinder boundary.
/dev/sdb3 14900 26343 86509080 83 Linux
Warning: Partition 3 does not end on cylinder boundary.
# blkid -c /dev/null
root@Debianbox:/home/edmond# blkid -c /dev/null
/dev/sda2: LABEL="/" UUID="40a05e22-1f45-4740-a908-09400b2ed2ed" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda5: UUID="a351ff3b-97d3-4a18-b2e5-e2459ffcfbc9" TYPE="ext4"
/dev/sda6: UUID="a5affd48-bcae-4ab6-b139-9d42a9b989a8" TYPE="swap"
/dev/sda7: UUID="1fe3519a-e4f7-4570-bef5-7211dfc76990" TYPE="ext4"
/dev/sda8: UUID="0bcbe3f3-792a-42c5-a0b8-93cc2634fb41" TYPE="ext4"
/dev/sda10: LABEL="SWAP-sda10" TYPE="swap"
/dev/sdb1: LABEL="System Reserved" UUID="D41452ED1452D25A" TYPE="ntfs"
/dev/sdb2: UUID="A61864141863E233" TYPE="ntfs"
/dev/sdb3: UUID="c5fce1fb-6cbd-40ae-825e-167a5dadcebb" TYPE="ext4"
$ tail -f /proc/partitions
root@Debianbox:/home/edmond/Desktop# tail -f /proc/partitions
8 7 48827392 sda7
8 8 50781433 sda8
8 9 29294496 sda9
8 10 975872 sda10
8 16 199147487 sdb
8 17 102400 sdb1
8 18 112537600 sdb2
8 19 86505472 sdb3
11 0 1048575 sr0
11 1 1048575 sr1
tail: /proc/partitions: file troncato
major minor #blocks name
8 0 488386584 sda
8 1 1 sda1
8 2 21125475 sda2
8 5 48827392 sda5
8 6 975872 sda6
8 7 48827392 sda7
8 8 50781433 sda8
8 9 29294496 sda9
8 10 975872 sda10
8 16 199147487 sdb
8 17 102400 sdb1
8 18 112537600 sdb2
8 19 86505472 sdb3
11 0 1048575 sr0
11 1 1048575 sr1
^C
enjoy π