Product SiteDocumentation Site

17.4.3. Using the partx Command

The partx command allows you to display a list of disk partitions. To list the partition table of a particular disk, as root, run this command with the -s option followed by the device name:
partx -s device_name
For example, to list partitions on /dev/vda, type:
~]# partx -s /dev/vda
NR   START      END  SECTORS  SIZE NAME UUID
 1    2048  1026047  1024000  500M
 2 1026048 41943039 40916992 19.5G
For a complete list of available command line options, refer to the partx(8) manual page.