In Linux, the naming convention for partitions on IDE drives is typically hdX
, where X
is a letter that represents the device and partition number.
For example, the first partition on the first IDE drive is typically hda1
, the second partition on the first IDE drive is typically hda2
, and so on. The first partition on the second IDE drive is typically hdb1
, the second partition on the second IDE drive is typically hdb2
, and so on.
This naming convention is used for both primary and logical partitions.
Note that the naming convention for partitions on SATA and SCSI drives is different. The naming convention for these drives is typically sdX
, where X
is a letter that represents the device and partition number.
For example, the first partition on the first SATA drive is typically sda1
, the second partition on the first SATA drive is typically sda2
, and so on. The first partition on the second SATA drive is typically sdb1
, the second partition on the second SATA drive is typically sdb2
, and so on.
This naming convention is used for both primary and logical partitions.
You can use the lsblk
command to list the block devices on your system, including the device files and labels of the partitions. To list the block devices on your system, you can use the following command:
$ lsblk
This will list the block devices on your system, including the device files and labels of the partitions. You can use this command to determine the naming convention for the partitions on your system.