The “fdisk” command can be used to see disk geometry, partitions, size of each partition and their file system ID etc. The following shows the usage. This command requires super user privileges to run.

[root@neo neo]# fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x282d282d

Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1657    13309821   83  Linux
/dev/sda2   *        1658        5913    34186320    7  HPFS/NTFS
/dev/sda3            5914        8159    18040995   83  Linux
/dev/sda4            8160       14593    51681105    5  Extended
/dev/sda5            8160       13145    40050013+  83  Linux
/dev/sda6           13146       14483    10747453+  83  Linux
/dev/sda7           14484       14593      883543+  82  Linux swap / Solaris
[root@neo neo]#