How To List All Partitions Of A Disk In Linux

Operating systems use storage or disks to save data persistently. Disks are used with partitions to manage them easily. Generally operating system and data partitions are placed separately. Home directory of the linux is separeted because a problem in the home directory like fulling do no effect to the general system. Modern Linux system use a lot of partitions. And here is the question How can I list partitions exists in my linux system.

List Partitions With fdisk

fdisk is number one tool used by system administrators to manage disk. fidks provides creating, deleting, listing of partitions.

1

2

3

4

5

6

7

8

9

10

11

$fdisk-l

Disk/dev/vda:8589MB,8589934592bytes,16777216sectors

Units=sectors of1*512=512bytes

Sector size(logical/physical):512bytes/512bytes

I/Osize(minimum/optimal):512bytes/512bytes

Disk label type:dos

Disk identifier:0x0000aebb

Device BootStartEndBlocksIdSystem

/dev/vda1*204816777215838758483Linux

There is a lot of information from system administrator persfective.

/dec/vda is disk to list partitions

/dev/vda1 is the partition of the disk

List Partitions with /proc/partitions

We can get more simpler list by using kernel provided information like below