Use parted to mount disks larger than 2T in Linux

Source: Internet
Author: User

The normal mount disk under Linux is fdisk, but Fdisk does not support GPT partition (MBR partition table only supports 2T disk), so the disk to be mounted is larger than 2T to use parted for GPT disk operation!

Parted function is very powerful, both command line can also be used for interactive, at the prompt input parted will enter the interactive mode, if there are multiple disks, you need to run select SdX (x is disk) to choose the disk, you can also directly use parted/dev/ SDX specify the appropriate hard drive ~

The whole process is as follows:

     parted /dev/vdc    ( Partition the 3T hard drive with the part command)     mklabel gpt        ( Use GPT format to get 3TB in one partition)     unit TB             (set to TB)     mkpart logical 0 2  (set to a primary partition, size 3TB, start is 0, End is 3)     print                (show partition size for settings)     quit                 (Exit parted program)         MKFS.EXT4  /dev/vdc1   (after executing the above command, use Fdisk -l to view the disks that have been divided)     MOUNT /DEV/VDC1  /home 


This article is from "Life is waiting for Gordo" blog, please make sure to keep this source http://chenx1242.blog.51cto.com/10430133/1892588

Use parted to mount disks larger than 2T in Linux

Related Article

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.