Disk Partitioning in Linux, fdisk, and mkfs in Linux. in linux, you can select/boot/as the mount point path. About MB. In front of the hard disk. /: The root directory stores the basic system files. About 10-15 GB. Swap: swap partition for temporary data storage, which is equivalent to virtual memory. The memory size is twice the memory size. The memory size is 1 GB. /Usr/: All software. Around 15 GB. /Usr/local/: software installed by the user. As an independent partition, select either/usr or path. About 10 Gb. /Home/: User personal data. If it is an individual user, try to be as big as possible. (25 GB)/var/: log and Network Service data. If it is a server, try to be as big as possible. (25 GB)/tmp/: stores temporary files. Read/write frequency. It is necessary for the server. (2G) the purpose of partitioning is to ensure the independence and security of different types of data. For example, if you want to reinstall the system, you can keep other partitions and only Erase/root directories. Fdisk partition fdisk-l [device] to view the partition table of a specific device. The device parameter can be/dev/sda or/dev/hda. If no device parameter exists, view the partition tables of all hard disks of the system. Run the Linux Code # fdisk-l fdisk device to view all hard disk partitions. Menu-driven partitioning. For example, partition the first hard disk: Linux Code # fdisk/dev/sda mkfs format mkfs [-t type] device-t type: formatted file system format. Device: similar to/dev/hda1,/dev/sdb2. In this example, the first partition of the first hard disk is formatted: Linux Code # mkfs-t ext4/dev/sda1