Linux on disk partition formatting greater than 2T

Source: Internet
Author: User


Occasionally, disks larger than 2T are encountered, and because the MBR partition table supports only 2T disks, disks larger than 2T must use GPT partitioned tables.

        GPT: Globally unique identity partition table GPT format disk is equivalent to the original MBR disk in the original reserved 4 partition table 4*16 bytes, leaving only the first 16 bytes, similar to the extended partition, the real partition table after 512 bytes, GPT disk does not have four primary partition limit.

    fdisk is not supported for GPT partitions, we can use parted to operate on GPT disks.



Added a 2200G hard drive

# fdisk-l

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/82/C3/wKiom1dgIp2A3VhuAAEHUaIlA-k377.png-wh_500x0-wm_3 -wmp_4-s_231791158.png "title=" Cf695fbf-a365-45a8-bc54-0468cce41e1f.png "alt=" Wkiom1dgip2a3vhuaaehuaila-k377.png-wh_50 "/>

# # #分区

# PARTED/DEV/SDB

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/82/C2/wKioL1dgI8bwjP7LAACtGwFKHTA393.png-wh_500x0-wm_3 -wmp_4-s_3968572864.png "style=" Float:none; "title=" 8a215a60-091f-4f21-a018-d069f68fd4fc.png "alt=" Wkiol1dgi8bwjp7laactgwfkhta393.png-wh_50 "/>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/82/C2/wKioL1dgI8bwiyq9AAGpPl2gqXc510.png-wh_500x0-wm_3 -wmp_4-s_1369573534.png "style=" Float:none; "title=" 7f8cfd3e-349e-43de-9d4c-cfa105a5c12d.png "alt=" Wkiol1dgi8bwiyq9aagppl2gqxc510.png-wh_50 "/>


# # #格式化

# MKFS.EXT4/DEV/SDB1

# # #挂载到data目录

# Mount/dev/sdb1/data


parted command

[Email protected] ~]# parted--help
Usage: parted [options] ... [Device [command [parameters] ...] ...]
Apply the command with "parameters" to "Device". If the command is not given, it runs in interactive mode.

Options:
-H,--help displays this help message
-I,--interactive prompts the user when necessary
-S,--script never prompt the user
-V,--version display version

Command:
Check the MINOR for a simple check of the file system
CP [From-device] From-minor to-minor Copying the file system to another partition
Help [command] print general assistance information, or information about the command
MklabelLabel type create a new disk label(partition Table)
MKFS MINOR file system type in MINOR creates a file system of type "file system type"
MkpartPartition type [file system type] Start point termination pointCreate a partition
MKPARTFS partition type file system type start point end point Create a partition with a file system
Move MINOR start point moving the partition numbered MINOR
Name MINOR names the partition with number MINOR named "Name"
Print[MINOR]Print partition table, or partition
Quit quitting the program
Rescue start point end point saves missing partitions near "start point", "End point"
Resize MINOR Start point change the size of the file system in the partition numbered MINOR
RMMINORto delete a partition numbered MINOR
Select Device Choose the device to edit
Set MINOR Flag Status change flag for partition numbered MINOR


This article is from the "ngames" blog, make sure to keep this source http://ngames.blog.51cto.com/3187187/1789355

Linux on disk partition formatting greater than 2T

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.