Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] df shows 53G disk usage, but du only 14G
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: df shows 53G disk usage, but du only 14G
16th Jan, 2014, 01:26 PM
Post: #3
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: df shows 53G disk usage, but du only 14G
@wuschl,

just to make this clear.

although there is /, /home and /lib/modules as separate mounts, all three are just sub-volumes of one btrfs filesystem - all three share one common space - size of partition.

that means if you rootfs (system) eat up 500MB and you home 50GB, they will all show 50,5 GB used.

btw: if you want to prevent mounts from being calculated in total, just add "-x" switch to "du". it means don't traverse outside filesystem.

Code:
du -shx /

will sum / without /home and without /lib/modules (and possibly other mounts in /media, /mnt …)

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
df shows 53G disk usage, but du only 14G - wuschl - 14th Jan, 2014, 04:38 AM
RE: df shows 53G disk usage, but du only 14G - wuschl - 14th Jan, 2014, 07:01 PM
RE: df shows 53G disk usage, but du only 14G - mk01 - 16th Jan, 2014 01:26 PM
RE: df shows 53G disk usage, but du only 14G - wuschl - 16th Jan, 2014, 06:50 PM
RE: df shows 53G disk usage, but du only 14G - mk01 - 17th Jan, 2014, 01:00 AM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 8th Jun, 2025, 10:12 PM Powered By MyBB, © 2002-2025 MyBB Group.