Linux fdisk partitioning tool

Source: Internet
Author: User

Fdisk comes from IBM's old partitioning tools, supports most operating systems, and almost all Linux distributions are installed with disk, including Linux's resure mode, which is still available.

Fdisk is a partitioning tool for opportunity MBR, and it is not possible to partition with Fdisk if you need to use GPT.

The FDISK command can only be run by the root user

Use Fdisk-l to list all installed disks and their partition information

Use fdisk/dev/sda/to partition the target disk

Type m to get help information

The steps to create a primary partition are as follows:

To create an extended partition, follow these steps:

The steps to create a logical partition are as follows:

After the partition is created, set the partition type:

After Setup, type W to save and exit.

Sometimes, after partitioning, you need to use Portprobe to let the kernel update the partition information

#cat/proc/partitions View partition information

Linux fdisk partitioning tool

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.