LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-03-2013, 06:39 AM   #1
analog
LQ Newbie
 
Registered: Apr 2012
Location: India
Distribution: slackware_14.0_amd64, Mint_amd64
Posts: 10

Rep: Reputation: Disabled
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,
 
Old 04-03-2013, 07:07 AM   #2
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 759

Rep: Reputation: 65
Which output does 'df -h' (without the quotes) give you?
 
Old 04-03-2013, 07:38 AM   #3
analog
LQ Newbie
 
Registered: Apr 2012
Location: India
Distribution: slackware_14.0_amd64, Mint_amd64
Posts: 10

Original Poster
Rep: Reputation: Disabled
>>>df -h

Filesystem Size Used Avail Use% Mounted on
/dev/sda9 19G 18G 0 100% /
tmpfs 891M 0 891M 0% /dev/shm
 
Old 04-03-2013, 07:48 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,595
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
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.
 
1 members found this post helpful.
Old 04-03-2013, 08:01 AM   #5
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 759

Rep: Reputation: 65
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/*
 
Old 04-03-2013, 08:11 AM   #6
GazL
Senior Member
 
Registered: May 2008
Posts: 3,502

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
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.
 
Old 04-03-2013, 08:13 AM   #7
analog
LQ Newbie
 
Registered: Apr 2012
Location: India
Distribution: slackware_14.0_amd64, Mint_amd64
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sycamorex View Post
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
 
Old 04-03-2013, 08:18 AM   #8
analog
LQ Newbie
 
Registered: Apr 2012
Location: India
Distribution: slackware_14.0_amd64, Mint_amd64
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BroX View Post
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
 
Old 04-03-2013, 08:21 AM   #9
analog
LQ Newbie
 
Registered: Apr 2012
Location: India
Distribution: slackware_14.0_amd64, Mint_amd64
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by GazL View Post
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.
 
Old 04-03-2013, 08:29 AM   #10
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 759

Rep: Reputation: 65
Quote:
Originally Posted by analog View Post
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.
 
Old 04-03-2013, 08:37 AM   #11
analog
LQ Newbie
 
Registered: Apr 2012
Location: India
Distribution: slackware_14.0_amd64, Mint_amd64
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BroX View Post
/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 ???
 
Old 04-03-2013, 08:48 AM   #12
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 759

Rep: Reputation: 65
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.
 
1 members found this post helpful.
Old 04-03-2013, 08:53 AM   #13
GazL
Senior Member
 
Registered: May 2008
Posts: 3,502

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
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.
 
1 members found this post helpful.
Old 04-03-2013, 09:15 AM   #14
analog
LQ Newbie
 
Registered: Apr 2012
Location: India
Distribution: slackware_14.0_amd64, Mint_amd64
Posts: 10

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-03-2013, 09:18 AM   #15
GazL
Senior Member
 
Registered: May 2008
Posts: 3,502

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


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
The most unexpected problem in Slackware for me. Space disk!!! disco_slack Slackware 5 11-09-2011 01:44 PM
Problem with freeing disk space on a two hard disk Fedora Core 4 box favadalikhan Linux - Server 1 04-29-2008 10:04 PM
weird space problem with XFS Sammael Linux - General 11 09-04-2006 08:03 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 04:58 PM
up2date weird out of disk space error whibble Linux - Software 3 10-02-2003 07:37 AM


All times are GMT -5. The time now is 07:20 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration