Users who are new to Linux may be confused about hard disk partitioning. Linux systems can be used as different servers, and there will be different partitioning schemes for hard disk partitions.
Let's talk about the features of several directories under the mount point during partitioning:
/If the system root directory is a beginner, all the space except swap partitions will be stored in this directory. The directory below is good regardless of capacity.
The partition of the/boot file is 50 MB.
The/home partition stores your own data and leaves the remaining space to this partition;
/Tmp temporary files to be used ., After var is introduced, it is created in var/tmp;
/Usr partitions store a large number of files used to support the system;
The/var partition stores the mailbox, and prints the buffer zone and log files;
/Usr/local stores a large number of files installed from ports (7.
/Opt stores all sorts of files, including bakeup, store, mp3, flahs, movie, and home.
To select a Linux partition scheme, you need to consider your system application. The workstation and server can have different Linux partition schemes.
0. For Beginners, the Linux partition scheme can be divided into 1 GB swap partitions, and all the remaining partitions are assigned to the root partition/
1. I often set up a Linux partition solution for the file system: m root, 1g swap, M/var/tmp, 3g/usr, and leave the remaining space to/home.
2. My web server Linux partition solution:
/Boot (100 MB)
Swap 1G (1g ram) --- mandatory
/(1 GB)-0 --- if no other score exists, the rest will be given here .)
/Tmp (2G)
/Var (2G)
/Usr (10G)
/Home (all remaining space)
3. My dual-system Linux partition solution: a web server in Linux, a 40 Gb hard disk, windows2003 & Redhat Linux9.0 dual system.
30Gwindows2003, 10 Gb for linux, 10 Gb for linux.
/Dev/hda the first hard disk of the entire ide interface, sd for scii hard disk)
/Dev/hda1 ntfs
/Dev/hda2 ntfs
/Dev/hda3/boot ext3
/Dev/hda4 extended partition this partition is because the primary partition of a hard disk cannot exceed hda4)
/Dev/hda5 swap Memory double 1 GB
/Dev/hda6/ext3 root directory. Put all the contents in this directory.
/Dev/hda7/usr ext3 2G
/Dev/hda8/var ext3 2G
/Dev/hda9/tmp ext3 2G
Question: Is the partition ordered? Is/boot always the primary partition? Will swap partitions be before other partitions?
Attachment: H3C storage principle. Main directory structure of Linux File System
/: Linux File System entry, the highest level directory
/Bin: the commands required by the basic system are located in this directory.
/Boot: files required for Linux kernel and boot system programs
/Etc: the location of the System Configuration File
/Lib: library file storage directory
/Home: the root directory of the home directory of the common user by default.
/Dev: the directory for storing device files, such as network cards and disks.
H3C storage principle. Other directory structures in Linux File System
/Lost + found: directory of file fragments generated when the system unexpectedly crashes or the machine is accidentally shut down
/Mnt: stores mounted storage devices.
/Opt: the installation package can be installed in this directory
/Proc: stores process information and kernel information during system running.
/Root: root's main directory of the Linux super privilege user
/Sbin: used to store commands related to system management
/Tmp: temporary file directory
/Usr: directory for storing programs in the system
- Linux disk management commands
- Full parsing of Linux File Types
- Six advantages of Linux
- Linux CVS check whether xinetd is installed in the system
- Linux configuration files and user management related system files