


The fdisk command that stands for Format-disk or Fixed-disk is basically used to create or delete hard disk partitions. Get list of partitions with the fdisk command MountPoint – The mount point of the device(if applicable).Type – Type of device, i.e, if it is a disk or partitions, etc.RO – Is the device read-only(1) or not (0).RM – Whether the device is removable(1) or not (0).In the above output, you can see all the logical partitions from sda1 till sda5 for my sda device. Enter the following command in your Terminal to list the partition table: $ lsblk The lsblk command lists all the block devices of your system along with their logical partitions.

View partition table through the lsblk command We have run the commands and procedures mentioned in this article on an Ubuntu 20.04 LTS system. You can open the Ubuntu command line, the Terminal, either through the system Dash or the Ctrl+Alt+T shortcut. We will be using the CLI to run these commands. This article lists and explains the use of various Linux commands for you to view the partition table of your device. For example, /dev/sda will be the first SATA/SCSI hard disk, /dev/sdb will be the second SATA/SCSI hard disk.

The sd* device refers to SCSI or SATA disks on your system. Your device is listed in the partitions table as /dev/sda, /dev/sdb, and so on. The partition table, that contains the information about all your logical disks or partitions, resides in the 0 sector of your hard disk. You can create no more than four primary partitions on a hard disk but a number of logical or extended partitions, depending on the size of the hard disk you have installed on your system. This helps us in re-organizing old drives by making space for further partitioning and also create space for new drives if necessary. As Linux administrators, we need to view the partition table of our hard disk time and again.
