LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 05-07-2017, 09:13 AM   #1
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Arrow How to Add a New Disk Larger Than 2TB to An Existing Linux


Hi,

How to Add a New Disk Larger Than 2TB to An Existing Linux

Quote:
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.

Hope this helps.
Have fun & enjoy!
 
Old 05-07-2017, 09:30 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Apparently the latest versions of fdisk incorporate gdisk.
 
1 members found this post helpful.
Old 05-07-2017, 10:03 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925

Original Poster
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

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
 
Old 05-07-2017, 06:20 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
Old 05-07-2017, 07:23 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,778

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
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.
 
Old 05-08-2017, 08:58 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
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.)
 
Old 05-09-2017, 12:33 PM   #7
Lnthink
Member
 
Registered: May 2010
Location: Lafayette, LA
Distribution: Ubuntu, RH, Fedora
Posts: 44

Rep: Reputation: 11
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.

-- J
 
Old 05-09-2017, 01:29 PM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
gpt supports up to 128 partitions.
 
  


Reply

Tags
fdisk, gdisk, parted, terabyte



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto dump partition table that larger than 2TB? edenCC Linux - Server 3 02-23-2009 11:28 AM
LXer: Linux Storage: Creating a Partition Size Larger than 2TB LXer Syndicated Linux News 0 11-06-2007 07:00 PM
Larger than 2TB volumes aforsyth1 Linux - Software 4 03-23-2005 07:05 AM
How to add an existing linux on a newly added disk to grub ? glenn69 Linux - Newbie 1 10-07-2004 09:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration