$ fdisk -l

About fdisk -l command

List the partition tables for the specified devices and then exit. If no devices are given, those mentioned in /proc/partitions (if that exists) are used.

Syntaxfdisk [-u] [-b sectorsize] [-C cyls] [-H heads] [-S sects] device

Example

praveen@praveen-desktop:~$ sudo fdisk -l
[sudo] password for praveen: _

It will display like this

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000307ca

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         244     1951744   82  Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2             245        9730    76189671+   5  Extended
/dev/sda5            3891        9730    46899200   83  Linux
/dev/sda6             245        3890    29286463+  83  Linux

With Regards,
S. Praveen

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s