Mount 2T New Hard Drive

Source: Internet
Author: User

Cause: After formatting with fdisk partition, Mount Discovery reads only hundreds of MB of space, which is larger than 2T to use parted format to GPT partition.

Solve:

1. Use the fdisk-l command and LSBLK to view disk information (/DEV/SDC)

2. Installing parted

# Yum Install parted

3. Partitioning

① You can enter p to print disk information, view the partition, and find the start and end locations

# PARTED/DEV/SDC

② Setting the partition type to GPT

# Mklabel GPT

③ primary refers to the partition type as the primary partition, 0 is the start of the partition, and 100% is the end of the partition. The same command is: Mkpart primary 0-1 or Yes: Mkpart primary 0 xxx End of space

# Mkpart Primary 0% 100%

④ Print the current partition to see if the partition settings are correct

# Print

quit with quit after ⑤ completed

# quit

4. format the disk, if supported EXT4 selectable format to EXT4

# MKFS.EXT3/DEV/SDC1

5. mount to the/SANDIB2B directory

# mkdir/sandib2b# MOUNT/DEV/SDC1/SANDIB2B

6. Set Restart Auto Mount partition

# Vi/etc/fstab Add a line:/dev/sdc1/sandib2b ext3 defaults 1 2


This article is from the "Freedom Trail" blog, be sure to keep this source http://wangy8961.blog.51cto.com/10174968/1640915

Mount 2T New Hard Drive

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.