In this chapter:
- disk partition
- format
- Hardware device file name
- Mounting
- Configure the IP address
First, disk partition
- Definition: partition using a disk editor (partition editor) several logical partitioning portion on the disk. Once the disc is divided into a plurality of partitions (Partition), different types of directories and files can be stored into different partitions.
- Two kinds of partition table form:
- MBR partition table: maximum support 2.1TB hard drive, supports up to four partitions;
- GPT partition table (globally unique identifier partition table): GPS support 9.4ZB hard disk (1ZB = 1024PB, 1PB = 1024EB, 1EB = 1024TB), supported by the theoretical number of partitions is not limited, but a Windows limitation of 128 primary partitions.
- Partition type:
- Primary partition: You can only have up to four;
- Extended partition:
- At most one;
- Primary partitions plus an extended partition can have up to four;
- Data can not be written, only contains logical partitions.
- Logical partitions
Second, the format
- Definition: formatting (high-level format) , also known as logical formatting, which is selected by the user file system (e.g., FAT16, FAT32, NTFS, EXT2, EXT3, EXT4 , etc.), specific data is written in a specific area of the disk in accordance with, in partitioning the disk space used to store a file allocation table, such as table of contents for the file management.
Third, the hardware device file name
- Partition device file name
- / Dev / hda1 (IDE hard disk interface)
- / Dev / sda1 (SCSI hard disk interface, SATA hard disk interface)
Fourth, the mount
- You must be partitioned
- You must be partitioned
- / (Root partition)
- swap partition (swap)
- If real memory is less than 4GB, swap twice the memory;
- If real memory is larger than 4GB, swap and memory consistency;
- Recommended Partition
- / Boot (boot partition, CentOS6 lowest 200M, CentOS7 minimum 1GB)
- Frequent Partitions
- / Home (for file servers)
- / Www (for Web servers)
- You must be partitioned
5, configuration IP address
- Command line, enter Setup (only in CentOS6 available), select Network conf iguration , and then select Device conf iguration , enter eth0 card, find On boot is selected, click on the OK , and then click the Save , then click the Save & the Quit , then click the Quit , then in command line input Service Network restart .