Getting started with Linux: disk partitioning (theoretical)

Source: Internet
Author: User
I. Introduction to disk partitioning Theory

One sector of a disk has 512 bytes. the first sector stores the MBR and partition table. The Boot Loader is the program that loads the kernel. For example, grub is the most commonly used boot loader;

MBR: Master Boot recorder, 446 bytes, where the boot loader is stored. Of course, the boot loader is not only MBR, but also the boot sector of each partition );

Note: One computer has only one MBR., Even if there are two disks, there is only one MBR;

Partition Table: 64 bytes, where the partition status is stored, a maximum of four primary partitions or extended partition records can be stored. The extended partition logical partition table is in one slice of the extended partition;
The smallest unit of a partition is a cylindrical disk;
Relationships between primary partitions, extended partitions, and logical partitions:
Extended partitions cannot be formatted directly. Primary partitions and logical partitions can be formatted; # Primary partition + # extended partition <= 4; # Up to one extended partition can be created;Number of logical partitions: For the IDE interface, a maximum of 59 logical partitions can be created. For the SATA interface, a maximum of 11 logical partitions can be created;
In fact, the partition concept in the disk is embodied in the partition table. In the partition table, set (1) the start and end cylinders of the primary partition; (2) the name of the file system;
As shown in:
Therefore, if you want to install a dual system, you must leave a disk (d disk, e disk, etc.) in Windows for Linux installation, so that Linux can continue partitioning the disk; TIPS:
1. Introduction to the file system(1) Ext2: The early Linux file system was replaced by ext3; (2) Ext3: In the popular Linux File System, the Journal File System (Log File System) is added on the basis of ext2 to quickly restore the system. (3) Vfat: Windows and Linux compatible file systems; (4) Software raid: A file system that simulates raid behavior; 2. Swap Introduction
Swap is an area in a disk. It is used to store data that is not commonly used in the memory to the swap area when the memory is insufficient. Therefore, if the memory is not large enough, you can use the swap area; therefore, swap does not need a mount point. Generally, it is 1.5 times the memory size ~ 2x; 3. File Name of the hardware device in LinuxIDE:/dev/HD [a-d] SATA:/dev/SD [A-p] floppy:/dev/FD [0-1] printer: /dev/lp nic:/dev/ethcdrom:/dev/CDROM

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.