CentOS6.5 partition and file system, centos6.5 partition File

Source: Internet
Author: User

CentOS6.5 partition and file system, centos6.5 partition File

[Do not repost the original files posted by CleverCode on the csdn blog. Original address: http://blog.csdn.net/clevercode/article/details/46377841]
1 partition introduction linux partition is different from windows, linux hard disk device name (IDE hard disk is hdx (x is from a-d) Because IDE hard disk is up to four, SCSI, SATA, the USB hard disk is sdx (x is a-z), and the primary partition of the hard disk is up to four. You do not need to know that ..... Therefore, the primary partition starts from sdb1 to sdb4, and the logical partition starts from sdb5 (the logical partition always starts from sdb5 ...) You can use fdisk-l to view the device name.


2. The main directory/------- root directory, which must be mounted. Do not hesitate to select a partition and mount it! (In most cases, 2 GB of capacity should be enough. Of course, many things are more beneficial)
Swap-swap partition, which may not be necessary, but according to the tradition and takes care of your security, mount it. The capacity is equal to or equal to your physical memory. If the capacity exceeds twice your physical memory, it is a waste.
/Home --- this is your home directory. files created by yourself are usually stored here. You 'd better allocate a partition to it.
/Usr ---- application directory. Most of the software is installed here. If you plan to install many software, it is recommended to allocate a partition to it.
/Var ---- if you want to make some server applications, you can allocate a large partition to it. Sina's second-hand house uses the/data0 directory to replace the/var directory.
/Boot --- if your hard disk does not support LBA mode (not likely), You 'd better mount it. If it is mounted, it should be safer to mount it to the first partition of the hard disk. Generally, the size of the mounted partition is only MB.


3. Introduction to file systems in linux:
Ext2: earlier format, does not support the log function
Ext3: improved version of ext2, with the log feature added. It is the most basic and commonly used format.
Ext4: an extended Log File System for the ext3 system. It is a later version of The ext3 file system.
ReiserFS: also has the log function, which features fast processing of small files.
XFS: stable and efficient, with superior performance in a mix of large and small files.
JFS: It features no CPU resources. If your computer is old, this is the best choice.


4. Common partition solutions 1) view the disk size. Ip1: 192.168.85.90, Ip2: 192.168.185.85. Through fdisk-l, we can see that the disk size of the 192.168.85.90 server is about GB, and that of the 192.168.185.85 server is 2 TB ..
1) 192.168.85.90
 

2) 192.168.185.85


 

2) Partition configuration. You can see it through df-hT. Partition and mount information.
192.168.85.90
Filesystem Type Size Used Avail Use % Mounted on
/Dev/sda1 ext3 2.0G 336 M 1.6G 18%/
/Dev/sda7 ext3 501G 69G 406G 15%/data0
/Dev/sda6 ext3 3.9G 1.1G 2.6G 30%/var
/Dev/sda5 ext3 3.9G 299 M 3.4G 8%/tmp
/Dev/sda3 ext3 9.7G 2.2G 7.1G 24%/usr
Tmpfs 3.9G 0 3.9G 0%/dev/shm

/Dev/sdb4 vfat 7.5G 430 M 7.1G 6%/mnt


5. Conclusion The Mount partition can be analyzed. When you set a partition for the server.
/-- Root directory. Usually set 2G.
/Var-directory. Usually set 2G-4G.
/Tmp-directory. Usually set 2G-4G.
/Usr-directory. It is usually set to around 10 Gb.
/Mnt-directory. It is usually about Gbps.
/Boot-directory. Usually 128 M.
/Dev/shm-directory. Usually 7.9 GB.
/Data0-directory. 90 is 500 GB. 85 is 1.8 TB. The remaining disk space is allocated to the/data0 directory.
The image directory is mounted under the/data0 directory.


Copyright statement: 1) original works are from the "CleverCode blog". Do not reprint them. Otherwise, the copyright is held legally liable.
2) original address: http://blog.csdn.net/clevercode/article/details/46377841.
3) Linux commonly used software installation and configuration-Directory: http://blog.csdn.net/clevercode/article/details/45740431 (directory continuous updates, please add to favorites ).
4) blog column address (Linux commonly used software installation and configuration): http://blog.csdn.net/column/details/linuxsoftwareinstall.html (blog continues to increase, Attention Please favorites ).
5) Welcome to my blog for more highlights: http://blog.csdn.net/clevercode.

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.