Linux hard disk partition

xiaoxiao2021-03-05  47

LINUX's hard disk partition Linux device name

The first hard disk (SLAVE) / DEV / HDBIDE2 of the first hard disk (slave) / dev / hdbide2 of the first hard disk (SLAVE) / DEV of the first hard disk / dev / hdbide2 of the first hard disk of the disk device name IDE1 / HDDSCSI's second hard disk (SLAVE) / DEV / SDB of Master / dev / sdasc

Partition

Partition type

Main partition: When the first partition of the hard disk is usually designated as the primary partition. For example, in Windows, a hard drive only allows up to 1 primary partition. But you can create 4 primary partitions in Linux. Extended partition: You can create multiple logical partitions on the extension partition. In theory, there is no number of logical partitions. When the extension partition is created, it takes up a position of a primary partition. The extension partition is not used to store data directly, and its main function is to create a logical partition. Logical partitions: It must be attached to the extension partition and are restricted by the expansion partition size. Usually logical partitions are places where files and data are stored.

Partition name

Sub-Partition Partition Name Ide1 First Hard Disk (Master) The first primary partition / dev / hda1IDE1 The first hard disk (Master) of the second primary partition / dev / hda2IDE1 1st Hard Disk (MASTER) Subregion / dev / hda3ide1 The first hard disk (MASTER) 4th primary partition / dev / hda4IDE1 The first logical partition / dev / hda5IDE1 of the first hard disk (MASTER) 2nd Logical partition / dev / hda6 ............ IDE1 2nd hard drive (SLAVE) of the first primary partition / dev / hdb1ide1 2nd hard disk (SLAVE) 2nd Side Partition / dev / hdb2 ............ SCSI The first primary partition / dev / sda1scsi of the first hard disk / DEV / SDA1SCSI

For example, when the first hard disk (/ DEV / HDA) divided by IDE1, one primary partition is created, and an extension partition is divided and 3 logical partitions are created. At this time, the name of each partition of this hard drive is shown below.

转载请注明原文地址:https://www.9cbs.com/read-32901.html

New Post(0)