How to Add a New Disk Larger Than 2TB to An Existing Linux
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Have you ever tried to do the partitioning of hard disk larger than 2TB using fdisk utility and wondered why you end up getting a warning to use GPT? Yes, you got that right. We cannot partition a hard disk larger than 2TB using fdisk tool.
In such cases, we can use parted command. The major difference lies in the partitioning formats that fdisk uses DOS partitioning table format and parted uses GPT format. TIP: You can use gdisk as well instead of parted tool.
In this article, we will show you to add a new disk larger than 2TB to an existing Linux server such as RHEL/CentOS or Debian/Ubuntu.
You can use this technique for adding disk to other Gnu/Linux be sure you have gdisk & parted. gdisk tutorial can be additional help, plus you will find additional links at the gdisk tutorial. parted wiki may also help you to understand usage.
Yes, newer fdisk does use the experimental use for GPT libs for gdisk. Not all Gnu/Linux have moved to the newer fdisk utility. The tutorial does show the use for 'parted' to create GPT.
GPT fdisk can be used but the author even recommends the use of Gparted or parted to create GPT.
Users do have choices!
Hope this helps.
Have fun & enjoy!
Last edited by onebuck; 05-07-2017 at 10:10 AM.
Reason: add link
And you don't have to use gpt - but with a new disk it makes sense to these days.
I have a 3T disk fully occupied using MBR. You just need to take care with partition placement.
And, if you happen to have a disk with "Advanced 4Kn Format" (4K native: 4096 physical, 4096 logical), you can go all the way to 16TiB with MBR partitioning, though why you would want to do that would be interesting to hear.
Also be sure to use LVM = Logical Volume Management so that you can allocate disk space to applications without regard to the number and size of physical disks and partitions. (This is an operating system feature, not a disk feature.)
Well, since it's a running system already - you don't need to partition the disk at all.
You can just use it...
if it's for example /dev/vdc - then you can either format a file system on it (mkfs), or you can use
lvm and cut the disk up and allocate it that way.
I generally only like to partition root drives to create swap, boot, root, etc. after that, I'm just looking for whole drives or lvm subcomponents.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.