LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-31-2013, 06:39 AM   #1
luckyknight
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Rep: Reputation: 0
3.6T useable on a 4TB HDD?


I've purchased 2 x 4TB WD40EZRX SATA HDDS and setup in parted using a gpt label:

Quote:
GNU Parted 3.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: ATA WDC WD40EZRX-00S (scsi)
Disk /dev/sdb: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:


Number Start End Size File system Name Flags
1 1049kB 4001GB 4001GB ext4 primary
But df -h only shows 3.6T is useable - is this normal?

Quote:
/dev/sdb1 3.6T 855G 2.6T 25% /storage/sdb1
/dev/sdc1 3.6T 2.1T 1.4T 62% /storage/sdc1
Motherboard is a Gigabyte D525 Atom running Slackware 14.1. Disk was formatted using mkfs.ext4

Last edited by luckyknight; 12-31-2013 at 06:41 AM.
 
Old 12-31-2013, 07:00 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
There could be 2 things that could explain this:

1 - When you format a partition a certain percentage (default is 5%, which is 200 Gb in your case) is allocated for root use only, this to make sure you are able to troubleshoot the partition if something goes wrong.

2 - There is a difference between 4 TB as mentioned by the manufacturer and 4 TB as mentioned by df. The first is based on 1000 being 1 Mb and the second on 1024 being 1 Mb.

Those 2 combined will account for the "missing" space.
 
Old 12-31-2013, 07:57 AM   #3
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,658

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Yep, its going to be the whole MB vs MiB issue.

http://en.wikipedia.org/wiki/Mebibyte

4TB = 3.63 TiB.
 
Old 12-31-2013, 11:46 AM   #4
anscal
LQ Newbie
 
Registered: Apr 2011
Distribution: Slackware, RHEL
Posts: 16

Rep: Reputation: 2
Quote:
Originally Posted by luckyknight View Post
But df -h only shows 3.6T is useable - is this normal?
It is normal, because
Quote:
df -h
reports sizes in MiB/GiB/TiB (i.e. the units we called MB/GB/TB in our childhood ). To obtain the base-ten sizes, try
Quote:
df -H
or, better,
Quote:
df --si

Last edited by anscal; 12-31-2013 at 11:50 AM.
 
Old 12-31-2013, 01:13 PM   #5
luckyknight
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cascade9 View Post
Yep, its going to be the whole MB vs MiB issue.

http://en.wikipedia.org/wiki/Mebibyte

4TB = 3.63 TiB.
I had the same thought as I left the house!! Thanks for clarifying
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] New 4TB drive install in debian 6 bcyork Linux - Newbie 6 09-30-2013 04:24 PM
How to format a 4TB external HDD into ext3 in CentOS? jollibee Linux - Newbie 12 08-19-2013 10:45 AM
[SOLVED] 4TB drives and GPT fskmh Slackware 12 06-27-2012 09:54 AM
4Tb Server nutthick Linux - Hardware 6 03-29-2005 01:19 AM
config-2.4.20-8 useable to 2.6? demmylls Linux - General 12 12-24-2003 10:37 AM


All times are GMT -5. The time now is 02:09 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration