Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-02-2007, 11:24 AM   #1
Registered: Sep 2005
Location: India
Distribution: Slackware, Back|track, Fedora, ubuntu
Posts: 167

Rep: Reputation: 30
'df' command shows disk full .... very weird!

This is lengthy but have to give the details...
Im using slackware 10.2, Recently when i started X, it showed some errors, something like 'cannot write to <file>' those messages flew by so couldn't see it properly,but X started (i use fluxbox).

Then when i opened my browser, it just closes as soon as I visit a webpage.

Then found the problem was there were absolutely no free space left on my linux partition(I have dual boot, Windows XP as other OS)
I checked the free space using 'df' command coz KDE refused to start.
That's odd coz when i previously saw (the same day), i still had about 700MB left, but anyway i cleared up some space, about 700-750MB, after two days its again the same problem. I can't figure out what's happeneing.

I had done these changes to my system before the problem occured:-

>I had 2.4.31 kernel before, I installed 2.6.20 kernel and both were working fine.

>I upgraded from 6.8 to 7.2 (I wanted to try out beryl/XGL)

>Installed beryl.

>Had problems with the new, mainly because some library files were missing, so installed the previous 6.8 version just so that i could use those library files.

Note that i didn't uninstall the 7.2 version either (this may be a stupid thing i did but completely uninstalling the 7.2 version didn't help either)

Last edited by sharathg786; 03-02-2007 at 11:28 AM.
Old 03-02-2007, 11:40 AM   #2
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 574

Rep: Reputation: 38
You need to find out what's chewing up all the disk space. Something writing way too much to /var/log/messages, maybe.

Old 03-02-2007, 11:41 AM   #3
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
how are your partitions setup?

do you have a lot of junk hanging around in ~/.Trash ?

I had similar problem and it was because I left /home on /root, so I cleaned it up but then still have to empty .Trash to get the disk freed up again.

hope that helps
Old 03-02-2007, 11:42 AM   #4
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Edit: I'm getting slow...

I'd check /var/log first, it's usually filled up quickly by the logs if something is too verbose.
 du -sh /var/log
Old 03-02-2007, 12:12 PM   #5
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 767

Rep: Reputation: 62
If you can get kde to start, open konqueror, View > View mode > File size view

It's one of those occasions where a picture is worth a thousand words

Old 03-02-2007, 12:23 PM   #6
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
You can try running this script (in / as root) to find which directory or directories are filling up.

for file in `ls -A $1`
if ( [ -d $file ] ) ; then
du -sh $file

I named this script, and it is saved in the bin directory in my home directory. I use it occasionally to figure out where my disk hogs are. It can take a little while though sometimes when it is working on a particularly hefty directory. When you find a large directory, you can cd into it and check its subdirectories by using the script again.
Old 03-02-2007, 01:59 PM   #7
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Rep: Reputation: 30
you can find all the files that are more than 10M, for example.

find -size +10M

Also, you do not need to create the afore mentioned sh file (by hussar), you can just type in all the code seperated with ";" on the command prompt
Old 03-02-2007, 04:48 PM   #8
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
be sure to run a fsck. it will find "unclaimed" data, which you can delete from lost+found.


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
df shows disk almost full, can't see why mhath Linux - General 6 12-14-2005 08:55 PM
disk shows it is full after installing one cd SDP Linux - Software 1 08-01-2005 06:49 PM
disk not showing up in 'df' command jjordan Mandriva 8 09-25-2004 09:29 PM
Multiple /dev/hda1 's listed after a 'df' command (up to 50-60) hmschouten Linux - General 4 04-02-2004 03:07 PM
weird disk full error? sockknitter Fedora 4 01-03-2004 07:13 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration