LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-23-2014, 10:10 AM   #1
samalchow
LQ Newbie
 
Registered: Jan 2014
Location: Colorado
Distribution: Debian/Centos
Posts: 18

Rep: Reputation: Disabled
Finding missing disk space


On my 1TB external drive attached to my Debian box, it shows that i'm using 55G from 916G with available 816G. So where is my other 45G at?


Code:
smalchow@debian:~$ df -h | grep Extra
/dev/sdb2                916G   55G  816G   7% /media/ExtraNas
 
Old 03-23-2014, 10:59 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,738

Rep: Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753
By default ext filesystems reserve 5% of the disk space for root. This allows root to log in if the file system becomes full as well as min fragmentation. You can use tune2fs to reduce this amount.
 
1 members found this post helpful.
Old 03-23-2014, 11:15 AM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,402

Rep: Reputation: 1489Reputation: 1489Reputation: 1489Reputation: 1489Reputation: 1489Reputation: 1489Reputation: 1489Reputation: 1489Reputation: 1489Reputation: 1489
Keep in mind that a 1TB drive is 10^12 bytes, while "df -h" reports in powers of 1024. That "916G" is actually (916 * 1024^3), or 983,547,510,784 bytes. All you are missing is the 1.7% or so that is file system overhead.

Use "df -H" (capital "H") to get results in power-of-10 units.
 
Old 03-23-2014, 11:26 AM   #4
samalchow
LQ Newbie
 
Registered: Jan 2014
Location: Colorado
Distribution: Debian/Centos
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
By default ext filesystems reserve 5% of the disk space for root. This allows root to log in if the file system becomes full as well as min fragmentation. You can use tune2fs to reduce this amount.
Makes sense. Thank you!
 
Old 03-23-2014, 06:49 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,738

Rep: Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753Reputation: 1753
I should also mention that zero reserved space is fine for data drives but would always leave some on /
 
  


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
Disk space missing MrMakealotofsmoke Linux - Newbie 3 04-05-2010 07:55 AM
Finding Used / Free Space for the Entire Hard Disk Jayaraghavendran Programming 1 03-03-2006 05:33 AM
command for finding out disk space used bhomass Debian 2 12-28-2005 11:52 PM
missing disk space Ayman.mashal Linux - Software 4 06-16-2005 02:41 PM
Finding Disk Space, Using a command. amer_58 Linux - Newbie 2 02-14-2005 03:43 AM


All times are GMT -5. The time now is 10:31 AM.

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