Linux&win7 Dual System Installation
Hard disk size allocation scheme
/= = Storage System File = =
/swap 4G = = Swap partition, is also a file system, it is the role of Linux as a virtual memory. Under Windows, virtual memory is a file: Pagefile.sys; while Linux, virtual memory requires the use of separate partitions, which is said to improve the performance of virtual memory. Physical memory is less than or equal to 512MB, it is recommended to allocate the actual physical memory capacity of twice times the size of swap, physical memory is greater than 512MB, it is recommended to allocate capacity swap with physical memory. ==
/home
/var
/boot = = contains the kernel of the operating system and the files to be used in the process of booting the system. In many old tutorials, users are asked to mount a separate partition of about 100MB in the/boot directory and recommend that the/boot be placed in front of the hard drive-before the 1024 cylinder. In fact, it was a relic of the era when Lilo failed to boot the OS kernel after 1024 cylinders. Of course, it is also said that the advantage of standalone//boot is that multiple Linux can share a/boot. In fact, there is no need to separate the/boot partition for any of the above reasons. First, grub can boot the Linux kernel after 1024 cylinders, and secondly, even if you have multiple Linux installed, you can completely not share boot. Because the/boot directory size is usually very small, about 20MB, dividing a 100MB partition is undoubtedly a waste, but also put the hard disk fragmented, inconvenient management. In addition, if you let two Linux share a/boot, each upgrade of the kernel, will cause the grub configuration file conflicts, causing unnecessary trouble. Furthermore, the non-standalone/boot partition takes up approximately 20MB of space in the root directory and does not have any impact on the use of the root directory at all.
But it's worth noting that the inability to boot the Linux kernel is recurring as hard disk capacity increases. This is also known as the 137GB limit. Unfortunately, Grub is unable to boot the Linux kernel in the partition after 137GB. If you happen to be in a situation like this, consider mounting the/boot standalone into a separate partition in front of the 137GB, or simply put the
Linux partitions are moved forward, so that the root directory is located before the partition is 137GB. ==
4,/usr/local: Is the place where Linux systems store software.
suggest a separate tutorial for/opt,/usr or/usr/local, It's basically very old. When using Ubuntu, we usually install software using the system's Package manager and seldom compile and install the software ourselves. The reason to suggest independent/usr,/opt,/usr/local is simply to use the previously compiled version without recompiling the software when reloading the system. For most ordinary users, however, this advice is usually meaningless.
5,/var: is the system log record partition.
6,/tmp partition, used to store temporary files.
recommends that you separate the/var and/tmp tutorials to be server-oriented. Because high-load servers often produce a lot of log files, temporary files, these files often change, so the/VAR,/tmp Independent to improve server performance. But we use Ubuntu is to do desktop, and even some users never care about the system log this thing, so there is no need to separate for/VAR and/tmp mount partition.
7,/home: is the location of the user's hometown directory.
This may be the only directory that is worth mounting partitions independently. /home is where the user folder resides. A user may store a large number of files in the/home/user, if the independent Mount home/home, even if you encounter the embarrassing situation of the accidental death of Ubuntu, you can immediately re-install the system to obtain their own file information. Therefore,/home is the only directory where you can consider a separate mount partition.
The meaning of x number in Sdax
Under Linux, the number of the number x in/dev/sdax is limited, and the largest partition number is 16.
Therefore, the primary and extended partition numbers occupy 1~4, and logical partitions occupy 5~16. Even if you have only one primary partition (for example,/DEV/SDA1) and one extended partition (/DEV/SDA2) on your hard disk, the remaining two primary partition numbers:/DEV/SDA3,DEV/SDA4 are not assigned to logical partitions. The first logical partition must be numbered starting with/DEV/SDA5.
---restore content ends---
Linux&win7 Dual System Installation