LinuxQuestions.org
Visit Jeremy's Blog.
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 11-22-2012, 02:14 PM   #1
lwang3rock
LQ Newbie
 
Registered: Nov 2012
Posts: 20

Rep: Reputation: Disabled
the size of home directory


[blizzard1 ~]$ df -h /h/lwang
Filesystem Size Used Avail Use% Mounted on
gecko.corp.opsware.com:/fs02/fs02/home/lwang
2.0T 1.9T 50G 98% /h/lwang
[blizzard1 ~]$ du -ah
215G ./olive1/olive1_1/olive1-flat.vmdk
215G ./olive1/olive1_1
215G ./olive1
8.0K ./.ssh/known_hosts
8.0K ./.ssh
215G .
[blizzard1 ~]$ du -ahc
215G ./olive1/olive1_1/olive1-flat.vmdk
215G ./olive1/olive1_1
215G ./olive1
8.0K ./.ssh/known_hosts
8.0K ./.ssh
215G .
215G total

the df shows that my home directory has 2T, and it has used 98%. I don't know where the 98% has been used. The du shows that I only used 215G.
Can somebody explain to me?
 
Old 11-22-2012, 02:17 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello lwang3rock, welcome to LQ,

you should use du for the /home directory, not only for your ~/ directory. Try
Code:
du -ahc /home
Markus
 
Old 11-22-2012, 02:29 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,382

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
What says
Quote:
df -h
 
Old 11-22-2012, 02:30 PM   #4
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Quote:
Originally Posted by lwang3rock View Post
Filesystem Size Used Avail Use% Mounted on
gecko.corp.opsware.com:/fs02/fs02/home/lwang
2.0T 1.9T 50G 98% /h/lwang
I hope you are aware that your home directory is on a network mount. So all bets are off about what is using the disk space. You need to check the machine that is hosting your home directory to find out about the disk usage.
 
1 members found this post helpful.
Old 11-22-2012, 05:56 PM   #5
lwang3rock
LQ Newbie
 
Registered: Nov 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
df vs. du

df reports how much free disk space is available for each mount you have. It is not what I thought. I thought it shows how much total space, available space I have in my home directory. it was wrong.
so how do I check how much total space I have for my home directory using linux command?
do I have to log on to the server gecko.corp.opsware.com to find out it?
 
Old 11-22-2012, 06:21 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,142
Blog Entries: 2

Rep: Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846
If there are no quotas set up on the server, limiting the space per user, the available space is what df reports, it is just that it can be used by other users with their /home directories on the same mount.
 
1 members found this post helpful.
  


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
how to increase /home directory size vin08rag Linux - Newbie 7 03-02-2010 03:19 AM
bash - size of home directory klavuzkarga Linux - Newbie 9 12-17-2007 05:58 AM
Home Directory Size? carlosinfl Linux - General 3 12-13-2005 01:04 PM
/home/directory size limit Smokey Slackware 2 11-04-2004 03:11 PM
How to LIMIT my HOME DIRECTORY SIZE??? juliann Linux - Networking 2 07-21-2004 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:33 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