4.2. Conventions for naming the disks and partitions

GNU/Linux uses a logical method for naming partitions. First, when numbering the partitions, it ignores the file-system type of each partition that you may have. Second, it names the partitions according to the disk on which they are located. This is how the disks are named:

The partitions are named after the disk on which they are found, in the following way (in the example, we have used the case of partitions on a primary master IDE disk):

So GNU/Linux will name the partitions as follows:

Figure 4-1. First example of partition naming under GNU/Linux

Figure 4-2. Second example of partition naming under GNU/Linux

So now you can cite the name the various partitions and hard disks when you need to manipulate them. You will also see that GNU/Linux names the partitions even if it does not know how to manage them initially (it ignores the fact that they are not native GNU/Linux partitions).

Note

For current 2.4 kernels, Mandrake Linux uses the Linux Devfs (Device File System). This system ensures full compatibility with the scheme described above, but this compatibility may disappear in the future. Actually, each device is dynamically added to the system as soon as it becomes available or needed.

For example, the first IDE hard drive now becomes:

[root@localhost root]# ll /dev/hda
lr-xr-xr-x    1 root     root           32 Sep  2 17:14 /dev/hda 
              -> ide/host0/bus0/target0/lun0/disc

Tux on Star from MandrakeSoft Linux is a registered trademark of Linus Torvalds. All other trademarks and copyrights are the property of their respective owners.
Unless otherwise stated, all the content of these pages and all images are Copyright MandrakeSoft S.A. and MandrakeSoft Inc. 2001.
http://www.mandrakelinux.com/