Disk Partition in Linux, fdisk, mkfs

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.