ゴジラ

Find partition number on Linux

We use the parted command to list the partition numbers,

parted -l

Ideal output,

[root@box ~]# parted -l
Model: HP LOGICAL VOLUME (scsi)
Disk /dev/sda: 4001GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  211MB   210MB   ext4
 2      211MB   86.1GB  85.9GB  ext4
 3      86.1GB  88.3GB  2147MB  linux-swap(v1)
 4      88.3GB  4001GB  3912GB  ext4

Last modified: December 06 2019 14:21:55