Linux Learning---Magnetic division/relationship + Download + Presentation method

Source: Internet
Author: User
Tags ide hard drive


Explanation of the HDA1:

Hd:ide hard drive. If it is a SCSI hard disk, then SD, this can only remember, there is no better way.

A:: First hard drive. If it is a second hard disk, then B, and so on c,d ...

1: Primary partition. Where 1,2,3,4 are primary partitions, starting from the 5th logical partition, up to 16

the relationship between disk capacity and primary partition, extended partition, logical partition :

Capacity of the hard disk = capacity of primary partition + capacity of extended partition

Capacity of the extended partition = The sum of the capacity of each logical partition

--------------------------------------
Cd/mnt
mkdir Winc
mkdir Wind
mkdir Wine
Mount/dev/hda1/mnt/winc
Mount/dev/hda5/mnt/wind
Mount/dev/hda6/mnt/wine
There is a maximum of 4 primary partitions, so the logical partition starts at 5
----------------------------------------
In the partition representation of Linux, the hard disk is HD, the first hard disk is HDA, and the second is HDB. A hard disk can be divided into four primary partitions, DOS primary partition, DOS extended partition, Linux root partition and Linux swap partition belong to primary partition, 4 primary partitions are represented by numbers respectively. If it's the first hard drive, it's Hda1,hda2,hda3 and hda4. The extended partition can also be divided into logical partitions, numbering from 5 to the next order. In Windows, the C disk is the DOS primary partition, is HDA1, D disk is generally the first logical partition on the DOS extended partition, is Hda5, E is Hda6, F is hda7, and so on. Under Linux, you can mount a Windows partition to a folder by using the Mount command (this folder is called a mount point), and you can access the Windows partition through this folder.

Mount-t Vfat/dev/hda1/mnt/winc-o codepage=936 iocharset=936

By the way, mount the CD and ISO image and mount the USB flash drive command:

Mounting discs and ISO images

Mount-t ISO 9660-o loop name. ISO mount point

Mount USB Drive

Mount-t Vfat/dev/sda1/mnt/usb


On the Internet, a slap on the face of the problem, the following:

in Linux, partitioning is the primary partition, extended partition, and logical partition, and the partition information is obtained using the FDISK–L command as follows:
disk/dev/hda:240 heads, sectors, cylinders
units=cylinders of 15120 * Bites
Device Boot Start End Blocks Id System
/dev/hda 1 286 2162128+ C Win95 FAT32 (LBA)
/dev/hda2 * 288 1960 12496680 5 Extended
/dev/hda8 984 1816 6297448+ -up Linux
/dev/hda9 1817 1940 937408+ -Up Linux
where the extended partition belongs to the(5).
Use the DF-T command to obtain the information section as follows:
Filesystem Type 1k Blocks used avallable use% mounted on
/dev/hda6 relserfs 4195632 2015020 2180612 49%/
/dev/hda1 vfat 2159992 1854192 305800 86%/windows/c
which is not part of the Linux system partition is(6).
Answer:
(5)/dev/hda2, (6)/dev/hda1 


in the Linux There are two ways to represent a hard disk in:

The first method:IDEThe entire drive in the interfaceLinuxrepresented in the system as/dev/hd[a-z], such as/dev/hda,/dev/hdb ...and so on, sometimes/DEV/HDCIt may indicate thatCDROM. This method actually represents the physical location of the hard disk, and the label will not change as long as the connection position of the hard disk is not changed.
for/dev/hdaa similar way of expressing is not unfamiliar to us;Linuxthroughfdisk-lyou can find out if the hard drive is/dev/hdaor is/dev/hdb.

another way to express this is:Hd[0-n] , where n is a positive integer, such as hd0,hd1,hd2 ... hdn ; number starting from 0 , follow the BIOS in the order in which the hard drives are found , if there is only one hard disk in the machine, whether weFdisk-llisted are/dev/hdaor is/dev/hdb, arehd0;If there are two or more hard disks in the machine, the first hard drive/dev/hdaAnother method is expressed ashd0,Second hard drive/dev/hdb, the other table method isHd1 .
Now the new machine, in the BIOS , in the boot disk set that block, the hard disk is hd0,hd1 and the like, this is a hard disk representation method.

in theLinux, theSataand theScsiThe representation of the hard disk of the interface andIdeinterface is the same as the hard disk, justhdReplaceSd, such as a hard drive in your machine is/dev/hda, there is also a hard drive that is/dev/sda, it/dev/sdathe hard drive should beSd0;specific for each partition(sd[0-n],y)the presentation method andIdethe same algorithm in the interface, such as/dev/sda1is that(sd0,0).

>>> following from Baidu Encyclopedia

Disk and partition device Management in Linux, each hardware device is mapped to a system file, and is no exception for IDE or SCSI devices such as hard drives, optical drives, and so on. Linux assigns a variety of IDE devices to a file composed of HD prefixes, and for various SCSI devices, a file consisting of an SD prefix is assigned.

For example, the first IDE device, Linux is defined as HDA, and the second IDE device is defined as a HDB; SCSI devices should be SDA, SDB, SDC, and so on.

  The number of partitions to partition must be done for each hardware device, which could be an IDE hard drive or a SCSI hard disk. For each hard disk (IDE or SCSI) device, Linux allocates a sequence number from 1 to 16, which represents the partition number above the hard drive.

  For example, the first partition of the first IDE hard disk, which is mapped under Linux, is hda1, and the second partition is called Hda2. For SCSI hard drives, it is sda1, sdb1 and so on.


Linux Learning---Magnetic division/relationship + Download + Presentation method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.