LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-16-2015, 06:26 PM   #1
wtdedula
LQ Newbie
 
Registered: Feb 2015
Posts: 14

Rep: Reputation: Disabled
Question about partitioning a 4TB drive


Hello All;
I am building a Linux media server in my home and I am new to Linux.

Right now I am at the point where I am partitioning and formatting each of my 4TB drives.

I ran sudo parted on /etc/sdb
Then I set mklabel to gpt.

Now my question is about mkpart.

In order to use the full 4TB disk for data (Only one partition)

Do I set mkpart primary 0GB 3725GB
or
do I set mkpart primary 0GB 4000GB?

I don't want to enter a larger capacity than my disk will allow but I also want to be sure I am taking advantage of all of the available space.

Thanks.

Tim
 
Old 02-16-2015, 07:34 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,529

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Parted is (now) pretty smart - do what you think will work; maybe better to use 0% and 100%; saves all the algebra angst.
Start it with "-a optimal" to force alignment.

Last edited by syg00; 02-16-2015 at 08:04 PM. Reason: removed primary comment
 
Old 02-16-2015, 08:35 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,352

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
Hello and welcome to LQ.
 
Old 02-16-2015, 10:24 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,089

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:

In order to use the full 4TB disk for data (Only one partition)
well it is YOUR hardware

i would use 4 partitions

but for a big drive and ONE partition ( 4 tb's is big )
you need to use GPT
then a rather NEW!!!! operating system with a new version of fdisk

older versions of fdisk and parted or gparted can NOT read the GPT partition table

Last edited by John VV; 02-16-2015 at 10:28 PM.
 
Old 02-18-2015, 10:01 AM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,973
Blog Entries: 1

Rep: Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620
You need to use the GPT partitioning scheme for drives > 2TB. With various quirks when you do use GPT depending on the age of your utilities.
 
1 members found this post helpful.
Old 02-18-2015, 05:57 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,529

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Not true.
If you need partition(s) greater than 2G you need gpt - but a 4G disk may be partitioned to multiples each less than 2G using classic MBR partitioning.
 
1 members found this post helpful.
Old 02-18-2015, 08:02 PM   #7
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,399

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
Quote:
Originally Posted by syg00 View Post
Not true.
If you need partition(s) greater than 2G you need gpt - but a 4G disk may be partitioned to multiples each less than 2G using classic MBR partitioning.
How is that MBR partition table going to represent, in its 32-bit fields, the starting or ending LBA of a partition that lies beyond the 2TB boundary?
 
Old 02-18-2015, 08:12 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,529

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Excellent question. My apologies to @Shadow_7.
 
Old 02-19-2015, 10:32 AM   #9
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 811

Rep: Reputation: 264Reputation: 264Reputation: 264
Quote:
Originally Posted by syg00 View Post
Not true.
If you need partition(s) greater than 2G you need gpt - but a 4G disk may be partitioned to multiples each less than 2G using classic MBR partitioning.
I think you mean TB... I've never had any issues using MBR on any of my disks, and all of my partitions are greater than 2GB.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Complete frustration: trying to share a Seagate 4tb drive (usb) on windows network MrDooDooHead Linux - Newbie 5 02-02-2015 04:31 PM
4TB HDD on bios question babbab Linux - Hardware 2 06-19-2014 01:31 PM
[SOLVED] New 4TB drive install in debian 6 bcyork Linux - Newbie 6 09-30-2013 04:24 PM
question about partitioning hard drive. jacksonb Linux - Software 8 01-09-2006 03:02 PM
Hard drive partitioning question russonlinux Slackware 4 10-28-2003 07:39 PM


All times are GMT -5. The time now is 06:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration