Best solution for hard drive partitions under Linux
2001-05-18 9:32
SWORD_MARTIN should first grab the hard disk, you should first figure out how big the computer should be worried and how large the hard disk is, but also the following questions: The first point is also the most important point, to know the version of the current LILO, because LILO2.21 and earlier versions are limited to hard disk size. If you install LILO to 1023 tracks, LILO cannot start. But some BIOS is older, Linux still cannot break through the limit of 1024 track, so these BIOS cannot recognize the hard disk space greater than 1024. The problems that need to be considered are: • Does the disk space size can be used for users? · Which software is needed in the system? · How big is the exchange partition? · Does the system have multiple hard drives? Below, we have put forward some suggestions according to the different partitions of the working nature. Of course, according to the actual situation, under the premise of satisfying system work, the following partition size can also be flexible. The partitioning program of the basic workstation assumes that the system's hard disk size is 10g. / boot 20m swap 128m / root 9.85g Creating a 20M / boot partition To avoid putting the system kernel files outside the 1024 track, if the / boot is used as a subdirectory of the root partition, the kernel file is installed in the root partition. Anywhere because the size of the hard disk exceeds 8G, so there is a problem in starting. It is recommended to set the size of the swap partition to twice the memory, where we assume that the system's memory is 64m. Finally, we give all the remaining spaces of the hard drive to the root partition. RED HAT Linux 6.2 and its earlier version of the basic server hard disk partition scenarioWay us, we assume that only several universal services, such as WWW services and FTP services, etc., have few users logged in through Telnet. Assume that its hard drive is 25G. / boot 20m swap 128m / 10g / home 13g / var 2G The most in front of the hard disk creates a 20m size / boot partition, the reason is the same. The size of the switching partition is also 128m because the size of the memory is 64m. /, That is, the root partition is 10G is so big because there is one / usr directory, which may occupy a lot of hard disk space, especially when the X Server is installed, running the graphical interface. The / Home partition is the largest partition in the hard drive, which seems to have some contradictions with us to assume that the number of system users. In fact, there is no several user directories in the / home directory, but in the Red Hat6.2 and earlier versions, the Apache server and the WU-FTPD FTP server are placed in the / home / httpd and / home / ftp directory. . So this partition is so much reasons. Finally, the / var directory has occupied a partition, because all logs of the system are written to the / var / log directory, which will take a lot of hard disk space. If the system log is recorded very detailed, the entire directory will soon be filled, resulting in system working. Of course, you can modify the log configuration through the system log background daemon syslogd to avoid this. The basic server partitioning scheme of Red Hat 7 and above is the same as the previous scenario, and the LINUX version is RED HAT 7.0 and its above. / Boot 20M SWAP 128M / 10G / VAR 15G is different from redhat6, and the directory of the HTTP service and FTP service in Redhat7 is now located in / var / www / and / var / ftp /, so the / var partition has 15G is not difficult. Understand. Multi-User Server Partition Scheme In this server system, there are multiple users through Telnet, SSH, RLOGIN or their way to remotely access the system.
There are three 35G hard drives in the system, with a total of 105G disk space. The RAID 5 technology is used in the system to do data redundancy. In this case, the administrator must allocate disk space for each user. For RedHat 6.2 and earlier, the partitions are as follows: Disk 1: / boot 20m / 4g / var 3GB / Home 27.98G disk 2: swap 20MB / 4GB / VAR 3GB / Home 27.98GB Disk 3: SWAP 20MB / 4GB / VAR 3GB / Home 27.98GB Reasons for this partition: First, the 20m / boot partition on Disk1 does not belong to any RAID array, otherwise if you put the / boot into the RAID array, you can't upgrade the system in the system. To facilitate management, 20M exchange partitions are established in other two hard disks. Such a server is generally equipped with more than 1G or more, so the size of the exchange partition is not problematic. If the exchange partition is increased, the RAID partition space will be reduced, so 20M is sufficient. The groups of the RAID partition are as follows: · 1-A, 2-A, and 3-a form a 8G RAID 5 drive, which is open as the / root directory. · 1-B, 2-B, AND 3-B composition 6GB RAID 5 drive, as a / var directory. · 1-C, 2-C, AND 3-C Composition 55.96GB RAID 5 drive, as / home. Catalog. This distribution scheme has a total of 55.96g of space allocated to all users and Apache and FTP services, using 6G space to make logs, mail, such a large space in / var, such a large space is sufficient. If you install Red Hat7 or above, you should give the / var partition a larger space because it also stores both directories of the Web and FTP services.