Selection of partitioning for Linux system installation

Source: Internet
Author: User
Tags ide hard drive

Scenario: The partition of Linux system is always fascinated by the boundless, or practice less, the foundation is not solid.

Prior to the first knowledge of Linux, the Linux system installation of the choice of partition, a little did not understand, resulting in a few times can not be installed next, so calm down, dedicated to take time to study this knowledge;

The following are some of the previous knowledge of the partitioning of the Linux installation process, as well as a backup, and hopefully some help for Linux beginners.

1 straight to the subject

In general, there are at least two mount points in the Linux system, namely / (root directory) and swap(swap partition), in which,/ is required;

See below for details:

Recommended list of directories to mount:

/------- root directory, the only directory that must be mounted. Don't hesitate to choose a partition and mount it! (in the vast majority of cases,  2G capacity should be sufficient.) Of course, a lot of things are more and more. Swap---- swap partition may not be necessary, but by tradition, and take care of your security, just mount it. Its capacity  is just about equal to your physical memory, which is a waste if it exceeds your physical memory by twice times the capacity. / Home---This is your family directory, usually you create your own files, are saved here, you'd better assign it a partition /usr---- application directory. Most of the software is installed here, if you plan to install many software, it is recommended to assign it a partition /var---- If you want to do some server applications, you can consider assigning it a larger partition / Boot---If your hard drive does not support LBA mode (unlikely), you might want to mount it, and if you mount it, mount it on the first partition of the hard disk  and it should be more secure. In general, the mounted partition will suffice if it is 100M in size.

Whether you want to separate these mount points is dependent on your planning needs. Refer to the following recommendations:

1. Initial contact for novice or hard disk space Limited desktop installation recommendations:

  mount point        device                      description          /           /dev/hda1        free space-swap size all space       swap       /dev /hda2         about memory size recommended at least 512MB

2. Installation recommendations for advanced user desktop:

     mount point           device                      description        /               /dev/hda1                10~15G foot        /home       /dev/  Hda2              Maximum remaining space    swap         /dev/hda5 approx.         memory size (at least 512MB recommended  )

or

     mount point         device                          description       /               /dev/hda1                10~15G foot           /home       /dev/hda2              Maximum remaining          space /boot        /dev/hda3                 100MB          swap         /dev/hda5         approximately memory size (recommended at least 512MB )    

3. Installation recommendations for Advanced Server users:

     mount point           device                      description          /               /dev/hda1               10~15G foot         /home       /dev/ Hda2              The largest remaining space         /boot         /dev/hda3                100MB        can swap         /dev/hda5        approx. memory size (at least 512MB        recommended) /var          /dev/hda6      depends on server function size, at least 1GB

Or

   mount point           device                        description     /             /dev/hda1               10~15G foot        /home         /dev/  Hda2 the              largest remaining space of half        /boot          /dev/hda3                100MB can       swap           /dev/hda5        approx. memory size (at least 512MB       recommended) /var            /dev/Hda6 Depending on the      server function size, at least       1GB or more than /usr            /dev/hda7 the              largest remaining space of half

Note 1:linux There is no partition, only mount point, similar to the partition under window

NOTE 2:swap size is approximately equivalent to your memory size, or slightly larger, it is recommended to set at least 512MB Note 3: About file systems under Windows, we often see file systems with FAT, FAT32, NTFS

The file systems available with Linux are:

EXT2: Early format, no log feature supported

EXT3:EXT2 modified version, added the log function, is the most basic and most commonly used format

EXT4: Extended journaled File system for EXT3 systems, a successor to the Ext3 file system

ReiserFS: also has the log function, its characteristic is the processing small file speed quickly.

XFS: Stable and efficient, with superior performance in mixed-size file systems.

JFS: Feature is the least CPU-intensive, if your computer is old then this is the best choice.

2 Section Description

In order to emphasize the emphasis, the important content of the picture, write again.

/          root directory        ext3       hda1/home    User directory        ext3        hda2swap     swap partition        swap       Hda3

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 is the primary partition, starting from the 5th logical partition, Max to

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

A physical hard disk can only have: one to four primary partitions (but only one of which is the active primary partition), or one to three primary partitions, and one extended partition. correspond to HDA1,HDA2,HDA3,HDA4 respectively.

Refer to:http://www.cnblogs.com/lixuwu/p/6100531.html

3 storage units in the computer

Storage unit of computer:
Computer storage units are generally represented by B,KB,MB,GB,TB,PB,EB,ZB,YB,BB, and the relationships between them are:

1KB (kilobyte KB) =1024b-----------------------------------------------------------------------1k=10^3,100 MB (megabyte megabyte abbreviated "mega"; MJ-level notation is "million" bytes;)=1024KB-----------1m=10^6 trillion 1GB (Gigabyte gigabytes, also known as "gigabit"; MJ-level notation is "1 billion" bytes)=1024MB------------1g=10^9 Myr 1TB (trillionbyte; MJ-level notation is "mega" bytes)=1024GB----------------------------1t=10^12 1PB (petabyte bytes; MJ-level notation is "gigabit" bytes)=1024TB-------------------------1p=10^15 beats 1EB (Exabyte-byte; MJ-level notation is "hundred-jing" bytes)=1024PB--------------------------1e=10^18 ai 1ZB (Zettabyte-byte; MJ-level notation is "ten gai" bytes)= 1024x768 EB--------------------------1z=10^21 ze 1YB (Yottabyte-Yao byte; MJ-level notation is "trillion" bytes)= 1024x768 ZB-----------------------------1y=10^24 Yao 1BB (brontobyte in the "Thousand Trillion" byte in the Count method)= YB------------------------------------1bb=10^27[1]

Note: "Trillion" in the "Millennium counting method" for "million" level of quantity units, and "trillion" in "MJ-level counting method", refers to "trillion". If you do not understand the "MJ-level Counting method" count unit name, please check the "number" of the Baidu Encyclopedia. This is a 1024 of the rate of input between each byte unit. 1024 is 2 of the 10-time side.

(RPM) Partitioning selection for Linux system installation

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.