How do I add a new disk larger than 2TB to Linux?

Source: Internet
Author: User

Have you ever tried to partition a hard disk larger than 2TB using FDISK and wondered why you would get a warning to use GPT? Yes, you see that right. We cannot partition a hard disk larger than 2TB using FDISK.

In this case, we can use the parted command. The main difference is that Fdisk uses the DOS partitioning table format and parted uses GPT.

Tip: You can use Gdisk instead of parted.

In this article, we'll show you how to add a new disk larger than 2TB to an existing Linux server, such as Rhel/centos or Debian/ubuntu.

I am using Fdisk and parted to do this configuration.

First, use the FDISK command to list the current partition details.

For the purposes of this article, I added a 20GB disk, which can also be a disk larger than 2TB. After you add the disk, use the same fdisk command to verify the partition table.

Tip: If you add a piece of physical disk, you may find that the partition has already been created. In this case, you can use Fdisk to delete it before using parted.

Important: You need to be careful when deleting partitions. This erases the data on the disk.

Out of curiosity, let's look at the new partition with Fdisk.

Now format and mount the partition and add the same information in/etc/fstab, which controls mounting the file system at system startup.

That's it! In this article, we show you how to use the parted command

Http://www.oschina.net/news/83866/linux-2tb

How do I add a new disk larger than 2TB to Linux?

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.