The Linux base fdisk partition

Source: Internet
Author: User

FDISK command:

1. View the partition information for the disk:

Fdisk-l [-u] [device ...] : Lists the partitions on the specified disk device;

Fdisk-l CENTOS6 start end represents the start, end cylinder

Centos7 start end represents the start, end sector

ID is 16 binary display

2. Managing partitions

FDISK device

FDISK provides an interactive interface for managing partitions, which has a number of subcommands for different management functions, all of which are done in memory, not directly synchronized to disk, and saved to disk using the W command;

Common commands:

N: Create a new partition

D: Delete an existing partition

T: Modify the partition type

L: View all already ID

W: Save and exit

Q: Do not save and exit

M: View Help information

P: Show existing partition information

Note: In a new partition created on a disk device that has been partitioned and mounted on one of the partitions, the kernel may not be recognized directly after the creation is complete;

View: Cat/proc/partitions

Notifies the kernel to forcibly reread the disk partition table:

CentOS 5:partprobe [Device]

CentOS 6,7:partx, Kpartx

partx-a [Device]

KPARTX-AF [Device]

Partition creation Tool: parted, Sfdisk;


The Linux base fdisk partition

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.