Linux partition notes-general Linux technology-Linux technology and application information. For more information, see the following section. There is no drive letter in Linux. we manage it in the form of directories.
What is a directory:
Is it hard to find tens of thousands of fruits in a basket? However, if we put an apple in a basket called an apple, and put it in a basket called a pear ...... Does this greatly simplify our search for specific fruits? If these fruits are our files, the baskets we use are called directories.
A new problem occurs. Even if we put peaches in a basket called Peaches, it is still difficult to find peaches from thousands of peaches in longquanyi, Chengdu, Sichuan province. If you are smart, you must think of putting a lot of peaches in the baskets called Sichuan, Hebei, and Guangzhou, and putting peaches from different origins. Yes! That's it! We can create a new file directory under a file directory to manage the files very carefully.
Here you understand what is called a directory, and you can also understand that a directory can be nested. Directory technology manages resources based on software. Return to Linux's hard disk management: in Linux, we do not have the concept of drive letters. We manage them in the form of directories. Maps each partition to a directory. In the future, operations on this directory will be performed on this partition. In this way, hardware management methods and software Directory management methods will be unified.
The process of attaching a partition to a directory is called mount. This relationship can be interrupted and changed by the user at any time.
What is the partition format:
Today I have talked about a lot of hard disk-related issues. Now I want to add a partition format. The hard disk is just a medium for recording information in electromagnetic mode. We can manage it in different formats.
Different operating systems use different formats. The same operating system may also support multiple formats.
Microsoft's operating system uses the Fat16 format as the DOS partition format. Later, Windows95 and Windows98 support the Fat32 format, WindowsNT uses the NTFS4 format, and Windows2000 and XP support the NTFS5/Fat32 format, however, they do not support common partition formats in Linux.
Linux is an open operating system. It initially uses the Ext2 format and later uses the Ext3 format, but it also supports a lot of partition formats, including XFS format used by UNIX on the mainframe, it also includes the Fat and NTFS formats of Microsoft.
When partitioning a hard disk, you must specify the partition format.
SWAP partition:
You are familiar with partition knowledge. here we need to mention swap partition.
If we do not have enough memory, we may not be able to run some large software. The solution is to draw an area on the hard disk as a temporary memory, as if the memory has become larger.
In Windows, this region is called virtual memory, and in Linux it is called Swap.
Although the memory is no longer limited as the hardware price drops, the concept of swap partition is retained, and there are reasons for continuing to keep it, of course, it involves kernel issues, we will not discuss it much. It should be noted that when you create swap partitions during Linux installation, if your memory is only 64 M or 128 M, it is best to set swap partitions to three times of it, if your partition is large enough with 512 M or M, set it to the same size.
But please note that it is best to have a number of N power numbers of 2.
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