Disk partitioning in Linux, fdisk, and mkfsLinux. 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: disk partition for temporary storage... disk partition for Linux, fdisk, and mkfs disk partition scheme for Linux. the path that can be used as a mount point in linux has the following options:/boot/: System startup file. 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
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.