LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 02-02-2006, 10:31 PM   #1
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Debian Lenny AMD64
Posts: 258

Rep: Reputation: 31
df and du giving contradictory results ?


On my Mandriva 2006 box, I'm not being able to store files on my /home partition.
df gives
/dev/sda6 22G 22G 6.7M 100% /home

du -h . in /home gives 45 MB

What the hells going on ???
 
Old 02-02-2006, 10:49 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, Slackware, Slax, Knoppix, SysrescueCD
Posts: 1,328

Rep: Reputation: 51
Quote:
Originally Posted by wearetheborg
du -h . in /home gives 45 MB
Are you running this as root? If not, there may be directories that you can't read and therefore the space that their contents occupy won't be included in the total.
 
Old 02-03-2006, 12:04 AM   #3
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Debian Lenny AMD64
Posts: 258

Original Poster
Rep: Reputation: 31
Yes, I ran df and du as root
 
Old 02-03-2006, 12:26 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625

Rep: Reputation: 101Reputation: 101
Possibly a program has unlinked a file in /home but still has a copy open for itself, in which case the file doesn't have a named linked on the hard drive, but the space is not yet freed. Killing the offending program would help in that case (can be accomplished via a reboot if no other way possible).
 
Old 02-03-2006, 12:55 AM   #5
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Debian Lenny AMD64
Posts: 258

Original Poster
Rep: Reputation: 31
/home is 22GB, so it cannot be just one file. It must be some program which is doing this, and will do this agaiin on reboot. Any idea on how to find whos teh culprit?
 
Old 02-03-2006, 01:27 PM   #6
WilliamsJD
LQ Newbie
 
Registered: Nov 2003
Distribution: Fedora Core 4
Posts: 11

Rep: Reputation: 0
A couple questions:

Have you tried "df -i"? I've seen lots of situations where there's bunches of space but no inodes available.

What type of file system are you using? e2fs? e3fs?

You may need to run fsck on the file system in single user mode.

-- WilliamsJD
 
Old 02-03-2006, 04:42 PM   #7
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Debian Lenny AMD64
Posts: 258

Original Poster
Rep: Reputation: 31
I'm not sure about the file system. Most likely its some journalised filesystem
df -i gave me:
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda6 2.8M 611 2.8M 1% /home
 
Old 02-03-2006, 04:49 PM   #8
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Debian Lenny AMD64
Posts: 258

Original Poster
Rep: Reputation: 31
Found the culprit - there was a user program that was running for a long time - a runaway process or something. I found it out as "who" did not indicate that user to be logged in, and the program (xfig) does not usually run for long, and it was consuming 20% cpu. After killing that process, I got the 22GB back.
 
  


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
Different commands, different results jadukor Slackware 8 12-16-2005 03:15 PM
explain results of a df to me mgm36 Linux - Newbie 2 04-28-2005 03:16 PM
"kdesu" daemon gives contradictory error message & all terminal emulators hang hari_seldon99 Linux - General 0 07-24-2004 03:42 PM
"kdesu" daemon gives contradictory error message & all terminal emulators hang hari_seldon99 Linux - Software 0 07-21-2004 11:01 AM
contradictory rpm responses toreilly Linux - Newbie 3 04-15-2004 04:47 AM


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