LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-28-2013, 09:03 PM   #1
fincher69
Member
 
Registered: Jan 2005
Location: Tallahassee, FL
Distribution: Kubuntu 13.04
Posts: 69

Rep: Reputation: 15
Disk usage via df inaccurate - Can't find what is taking up additional space


Howdy all, I have an ubuntu box and I have a bit of weird behavior concerning disk usage. I have a partition for /home and I have a separate partition mounted to /home/fincher/media-backup. The output of df shows this
Code:
/dev/sda4       1.8T  1.4T  353G  80% /home
/dev/sdb1       1.8T  728G 1014G  42% /home/fincher/media_backup
Yet the output of du for /home shows this.
Code:
16K	./lost+found
716G	./fincher
716G	.
If I run du without the -x option (which makes it exclude ~/media-backup I get this
Code:
16K	./lost+found
1.5T	./fincher
1.5T	.
This makes sense because a bulk of what I have in my home folder is media that is backed up on the other partition.

My question is whether I might be seeing faulty output from df. If not, then I would appreciate any help in figuring out why df seems to think I am taking up almost double the space that I should be. Any insights would be greatly appreciated.
 
Old 10-29-2013, 10:03 AM   #2
fincher69
Member
 
Registered: Jan 2005
Location: Tallahassee, FL
Distribution: Kubuntu 13.04
Posts: 69

Original Poster
Rep: Reputation: 15
I figured it out. Turns out I had set up a cronjob to backup my media and, at some point, the partition to which it backs up hadn't gotten mounted. So it backed up everything to that folder on the /home partition. Since then, the partition had been mounted on that folder so I couldn't see that there were backups there. Doh!
 
Old 10-29-2013, 11:36 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
if mountpoint -q /media/backup1
then
do work
else
mount the drive
fi
should help your script out.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Archive a directory without using additional disk space? enkrypted Linux - General 12 04-25-2013 05:09 AM
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
Disk Usage Analyzer reports too much disk space? ler0nldb2 Linux - Newbie 1 09-12-2009 10:27 AM
Other than top command which cmd is used to find the cpu usage and disk space sathish80 Linux - Newbie 2 11-15-2006 12:43 AM
inaccurate disk space messages - help! tw001_tw Linux - Newbie 8 03-20-2003 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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