LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware: weird no disk space problem (http://www.linuxquestions.org/questions/slackware-14/slackware-weird-no-disk-space-problem-4175456665/)

analog 04-03-2013 06:39 AM

Slackware: weird no disk space problem
 
Hello Friends,
My slackware-14.0_64 install caught an unexpected problem, The box is out of space, When I checked out in 17 Gb partition
/usr: 7.7Gb
/home:3.3Gb
/var: 6.6Gb had a 6.6Gb messages file, I oviously remove the file but still no luck, still out of space, weird ha
but when i checked
/proc it shows used space in Tb's How can it be and may be this is the problem.
I can't even start x-windows when login as a user, However as root I can start x-windows. but Thunar still shows 0 Free bytes.

Please Helpppp,

BroX 04-03-2013 07:07 AM

Which output does 'df -h' (without the quotes) give you?

analog 04-03-2013 07:38 AM

>>>df -h

Filesystem Size Used Avail Use% Mounted on
/dev/sda9 19G 18G 0 100% /
tmpfs 891M 0 891M 0% /dev/shm

sycamorex 04-03-2013 07:48 AM

What about your /tmp directory?

Code:

du -h /tmp
/tmp can get full easily if it's not cleaned regularly. I usually empty the /tmp dir on shutdown or mount it in tmpfs.

BroX 04-03-2013 08:01 AM

6.6Gb in /var seems like a lot to me. See if there is some stuff to clean out there too:
Code:

du -sh /var/*

GazL 04-03-2013 08:11 AM

If you haven't rebooted since deleting 'messages' then run 'pkill -SIGHUP syslogd' as root and see if that helps. syslog is probably keeping that big messages file open.

analog 04-03-2013 08:13 AM

Quote:

Originally Posted by sycamorex (Post 4924211)
What about your /tmp directory?

Code:

du -h /tmp
/tmp can get full easily if it's not cleaned regularly. I usually empty the /tmp dir on shutdown or mount it in tmpfs.

yes I know my /tmp directory is not mounted on tmpfs so I did a rm -r /tmp/* and manually removed everything Intially I cleaned up 2.3 Gb of space and everything was fine it was an hour before the problem hit me, even Deleating Media files(500Mb and 750Mb)from my /home directory is not helping.

and what the matter with /proc directory
>>>df -h proc
shows Size 0, Used 0, Avail 0 Use% - Mounted on /proc

analog 04-03-2013 08:18 AM

Quote:

Originally Posted by BroX (Post 4924219)
6.6Gb in /var seems like a lot to me. See if there is some stuff to clean out there too:
Code:

du -sh /var/*

ye, as I mentioned in my initial post it had a message file under /var/log and I deleted it. But no luck.

Now the thing is no matter what I delete I'm Getting ZERO free space

analog 04-03-2013 08:21 AM

Quote:

Originally Posted by GazL (Post 4924225)
If you haven't rebooted since deleting 'messages' then run 'pkill -SIGHUP syslogd' as root and see if that helps. syslog is probably keeping that big messages file open.

Actually I've Rebooted it many times and killed the process as mentioned by you, still not working out.

BroX 04-03-2013 08:29 AM

Quote:

Originally Posted by analog (Post 4924228)
and what the matter with /proc directory
>>>df -h proc
shows Size 0, Used 0, Avail 0 Use% - Mounted on /proc

/proc is a virtual filesystem, it does not contain files with an actual size. So it looks fine as it is.

analog 04-03-2013 08:37 AM

Quote:

Originally Posted by BroX (Post 4924238)
/proc is a virtual filesystem, it does not contain files with an actual size. So it looks fine as it is.

yeah I came to know that a min ago peeking slackbook, but If Im deleting some stuff system space should be freed, I can only think of 2 Reasons
a. Files are not actually being deleted may be piling up in some .trash like space but how can it be from Terminal
b. Something is eating up space dynamically but How can I find out ???

BroX 04-03-2013 08:48 AM

Yes, if you delete files using 'rm' from the command line they are permanently deleted.

You could see if the size of /var increases after deleting files from for example /home or /tmp. That may point to some spurious logging. Even though I doubt that you could fill up over 1GB (your deleted media files) so quickly.

GazL 04-03-2013 08:53 AM

Space is not freed until the file is closed by any processes that have it open.

First, identify what directory is using up the space. I use "du -Sxb /directory |sort -n"
Then go look in that directory and see which files are big. using ls -l
Then use fuser -v * to see which files are being used by something. If something shows up, stop that something before removing the file
(assuming you're ok with deleting it of course).

If this is just your own workstation rather than a server, then it's probably easier just to drop into single user mode to avoid the need to check whether things are in use or not.

analog 04-03-2013 09:15 AM

Got it,
I deleted /var/log/messages/files/messages by Gui and it went to /root/.local/share/Trash/files Directory, Just deleated It a moment back and system is back to normal.
You Guys were a Great help, THANK YOU.

One Last Question If I may,
In a day or two this messages file got this fat is it normal cause I had been only Building and Installing packages.

GazL 04-03-2013 09:18 AM

/var/log/messages/files/messages? That's not a standard slackware file. /var/log/messages should be a file not a directory.


All times are GMT -5. The time now is 03:01 AM.