Linux hard disk partition commands and operations

Source: Internet
Author: User
Linux hard disk partition command and Operation linux partition fdiskcylindermountlinux partition, space is measured using cylinders as a unit. There are many related concepts, mainly including header and sector) cylinder, track, hellip, and hellip... linux hard disk partition command and Operation linux partition fdiskcylindermount linux partition, space is measured in cylinders as a unit there are many related concepts, mainly including head (header), sector (sector) cylinder, track )...... It can be seen that the hard disk space can be expressed by the number of cylinder, but the space contained in each cylinder is different for different hard disks. If a 2G hard disk contains 4 cylinder, each cylinder is 512 M. If there are 2 cylinder, each cylinder is 1G (of course not such a large cylinder, here is just an example) use the fdisk-l command to view the hard Disk information Disk/dev/vdb: 214.7 GB, 214748364800 bytes 16 heads, 63 sectors/track, 416101 cylinders Units = cylinders of 1008*512 = 516096 bytes Disk identifier: 0xd65fd355 this hard Disk is 214.7 GB in total, including 416101 cylinders, the space of each cylinders is 504 KB. cylinder is used as the indicator because cylinder start and end numbers must be specified when fdisk is used for partitioning. A partition is composed of many cylinder, which is used to set the number of cylinder partitions in each partition: device Boot Start End Blocks Id System/dev/vdb1 1 116258 58594000 + 83 Linux/dev/vdb2 116259 232516 58594032 232517 83 Linux/dev/vdb3 416101 92526840 83 Linux no extended partitions, all partitions are primary partitions. If no more than four partitions are prepared, you can set them to primary partitions from/dev/vdb1-/dev/vdb4. if more partitions are required, you need to set up an extended partition, and then divide the extended partition into logical partition partitions and file systems are two independent concepts. Linux is a tree-like file structure. after the directory structure is planned, mount the partition to the directory. The mounted directory is called a mount point.
Related Article

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.