Over 2T, disk partitioning

Source: Internet
Author: User

MBR:MBR partition table (that is, master boot record) Everyone is familiar with it. Maximum supported volumes: 2T, with restrictions on partitions: up to 4 primary partitions or 3 primary partitions plus one extended partition

Gpt:gpt (that is, the GUID partition table). Is the standard of a newer disk partitioning table structure originating from the EFI standard, which is the primary form of future disk partitioning. Compared with MBR partitioning method, it has the following advantages. The MBR 4 primary partition limit is exceeded, with a maximum of 128 partitions per disk. Supports partitions larger than 2T, with a maximum volume of up to 18EB.

-. Using parted

No parted command.

# yum-y Install parted

1, the DEV/SDB partition

Parted/dev/sdb

2. Set the type of partition

(parted) Mklabel GPT

3. Print partition information

(parted) p

4. Partitioning

0TB

0.00B to0TB.                   17.4kB to0TB. Is this still acceptable? Yes/no? Yes (enter Yes)                                                             for Best performance. Ignore/cancel? I (Input i)

5. View partition partition information and exit

/dev/sdb:40. 0TB Sector Size (logical/physical): 512b/4096B Partition table:gpt number  Start    End     Size    File system  Name     Flags   1      17.4kB  40.0TB  40.0TB               Primary
(parted) quit

Second, XFS format large partition

# Yum install kmod-xfs xfsprogs # modprobe XFS       //Loading XFS file system module #lsmod |grep xfs    //See if XFS modules are loaded

Format and Mount with XFS

# mkfs.xfs-f/dev/sdb1 # Mount/dev/sdb1/data

Set system boot Auto mount partition

# cat  /etc/fstab     /dev/sdb1  /data xfs  defaults  0  0

View the status of all disks

# parted-l

Delete Partition

(parted) p                                                                 /dev/sdb:21. 5GBSector size (logical/physical): 512b/512BPartition table:gptnumber  Start    End      Size    File system  Name  1      17.4kB  21.5GB  . 5GB               Gzh (parted)   1

Deleted partition by mistake recovery

(parted) p Model:vmware, VMware Virtual S (SCSI) Disk /dev/sdb:21. 5GBSector size (Logical/physical): 512b/512BPartition table:gptnumber StartEndSize File system Name Flags2 17. 4kB 3000MB 3000MB xfs Gzh1 10.0GB 21.5GB 11. 5GB XFS GG (parted) RM2(parted) p Model:vmware, VMware Virtual S (SCSI) Disk/dev/sdb:21. 5GBSector size (Logical/physical): 512b/512BPartition table:gptnumber StartEndSize File system Name Flags1 10.0GB 21.5GB 11. 5GB XFS GG (parted) rescue Start?0KBEnd?3GB information:a XFS Primary partition was found A T17.4kB, 3000MB. DoDo want to add it to the partition table?Yes/no/cancel?Yes (parted) p Model:vmware, VMware Virtual S (SCSI) Disk/dev/sdb:21. 5GBSector size (Logical/physical): 512b/512BPartition table:gptnumber StartEndSize File system Name Flags2 17. 4kB 3000MB 3000MB XFS1 10.0GB 21.5GB 11.5GB xfs GG
RM

Over 2T, disk partitioning

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.