Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
11-20-2013, 07:48 AM
|
#1
|
Member
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383
Rep:
|
Not a 'problem' anymore, just a scare...
Last night, I started downloading a ffew things with FrostWire. No big deal. Everything was going fine until I started another download and suddenly I get a little popup from the system that I'm running low on disk space.
I figured that's okay because I've done that before, so I started to backup the dir's I keep big chunks of stuff in...like my built srcs, and all the installed builds.
Kept getting back the space becausekrusader was showing it, but within 10 seconds I look again and it shows only a few KB's of space left.
Now I'm beginning to fret a little bit.
I open up ksysguard but whatever it is that's eating up the space on my hdd has now got it so ksysguard can't show me anything...it opens up but doesn't 'do' anything, and top was no help.
Now I'm worried and I figure a shutdown and reboot might 'fix' the problem. Nope...system's so busy eating up space that it pops up the little window telling me I'm out of space and won't let me shutdown or logout.
I grit my teeth and do a button shutdown.
Reboot and the filesystem had a buttload to go through doing whatever it does in those situations...I really mean a lot!
The rest of startup is also extremely slow and I'm worried now that I'm out an hdd I cannot afford monetarily.
It finally gets to the login screen (I always set my system for a graphic, because I have a poor memory and severe ADD...it just makes things a lot easier for me, heh). It also is taking its time.
Finally I'm back to my desktop. I open up krusader and voila!...I am back to having 125GB of my 150GB hdd!
I have absolutely no clue what happened, why it happened, how it happened. Never had that happen in 14 years of using linux (3 of those Slackware). I honestly don't think it was FrostWire, because it seemed to be happening *during* the time I started a download and FrostWire came back with an 'error' because the hdd was too full.
Anyway, all seems back to normal, but it was a heck of a trip while it lasted!
|
|
|
11-20-2013, 08:15 AM
|
#2
|
Member
Registered: Nov 2011
Distribution: Slackware
Posts: 363
Rep:
|
Have you checked your hard disk for errors?
Last edited by Kallaste; 11-20-2013 at 08:17 AM.
|
|
|
11-20-2013, 11:39 AM
|
#3
|
Member
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383
Original Poster
Rep:
|
Yes, showing all is well.
The system is running better than ever at the moment, nice and fast (the things I backed up on a dvd and then deleted to make space on the hdd only added up to 2GB, so it's not like that should make the system faster than it was *before* the system started the strange filling-up thing).
Just plain weird, lol.
|
|
|
11-20-2013, 11:45 AM
|
#4
|
LQ Veteran
Registered: May 2008
Posts: 7,102
|
One of the advantages of having multi-filesystem layout is it protects you from run away processes like this.
BTW, reaching for the power button should be an absolute last resort. You might want to read up on "Magic SysRq". alt+SysRq,k would likely have saved you in this case.
|
|
|
11-20-2013, 02:57 PM
|
#5
|
Member
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383
Original Poster
Rep:
|
Quote:
Originally Posted by GazL
One of the advantages of having multi-filesystem layout is it protects you from run away processes like this.
BTW, reaching for the power button should be an absolute last resort. You might want to read up on "Magic SysRq". alt+SysRq,k would likely have saved you in this case.
|
How would a multi-filesystem have stopped a runaway process (for example if that's what it was)? Whatever was happening, it was writing to, at the least, my /home hdd (which is on sda and separate from /, /boot and swap which are on sdb). It's possible whatever it was was writing(?) to everything that had an open space on both drives, so that wouldn't have made any difference if I'd assigned 3 different fs's, no? (not meaning that to sound smart-ass, just asking to find out in general and gain a little knowledge)
And yep, I know hitting the power or reset button are a last resort, but since I had no idea what to do since nothing was responding to *anything* I was doing, it was my last resort. And yes, I just looked into the MagicSysRq thing as you suggested and will be setting that up on my system right after I post this, heh. Thanks for that info too on the Magicness.
|
|
|
11-20-2013, 03:10 PM
|
#6
|
LQ Veteran
Registered: May 2008
Posts: 7,102
|
Usually it's /tmp or / filling up that brings a system to its knees like that. /home filling doesn't normally have such an impact. Nevermind, as there's no evidence as to what was actually happening, it's pretty much all conjecture anyway. I was probably wrong. Forget I mentioned it.
|
|
|
11-21-2013, 02:18 AM
|
#7
|
Member
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383
Original Poster
Rep:
|
It was definitely the strangest thing that's ever happened to me since I've been using Linux since 2000, heh heh.
|
|
|
11-22-2013, 12:38 PM
|
#8
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
The space won't be available until the file is closed by all the processes that has it open.
Rebooting is one way to ensure that has happened.
|
|
|
11-24-2013, 03:52 AM
|
#9
|
Member
Registered: Apr 2004
Location: Mesa, AZ USA
Distribution: Slackware 14.1 kernel 4.1.13 gcc 4.8.2
Posts: 246
Rep:
|
Quote:
Originally Posted by GazL
Usually it's /tmp or / filling up that brings a system to its knees like that. /home filling doesn't normally have such an impact. Nevermind, as there's no evidence as to what was actually happening, it's pretty much all conjecture anyway. I was probably wrong. Forget I mentioned it.
|
I got tired of clearing out /tmp, that I symlinked it to a tmpfs mount. Now I don't worry about it anymore.
|
|
|
11-24-2013, 06:02 AM
|
#10
|
LQ Veteran
Registered: May 2008
Posts: 7,102
|
Yep, /tmp on tmpfs is my choice too. Just out of interest where are you symlinking it to?
|
|
|
11-24-2013, 07:51 AM
|
#11
|
Member
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383
Original Poster
Rep:
|
Quote:
Originally Posted by GazL
Yep, /tmp on tmpfs is my choice too. Just out of interest where are you symlinking it to?
|
Now I'm curious...how is that done, so I can keep that in a file and if things don't look up with this particular install and I have to try again, I just might give it a shot too.
|
|
|
11-24-2013, 03:37 PM
|
#12
|
LQ Veteran
Registered: May 2008
Posts: 7,102
|
Just add the following line to your /etc/fstab.
Code:
tmpfs /tmp tmpfs defaults 0 0
Obviously, this will only work for you if you only put small things in /tmp. I use /var/tmp for anything that won't fit.
|
|
|
11-24-2013, 06:16 PM
|
#13
|
Member
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912
Rep:
|
Do you have a way to automatically spill over to /var/tmp for anything that won't fit in /tmp, GazL? Or is that something you do on a case by case basis, manually or scripted?
|
|
|
11-25-2013, 06:02 AM
|
#14
|
LQ Veteran
Registered: May 2008
Posts: 7,102
|
Nope, there's nothing automatic I'm afraid. Most well written scripts/programs will respect $TMPDIR so it's usually a case of just setting that before invoking anything big.
Putting /tmp on a tmpfs isn't a silver bullet for tempfile management (especially so if you don't reboot often). The main reason I do it is to avoid unnecessary disks writes, and though it does mean /tmp gets cleared out at every reboot, one has to be mindful that it's still a limited resource that will need to be managed while the system is up.
It works for me though.
|
|
|
11-25-2013, 09:46 AM
|
#15
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by GazL
Obviously, this will only work for you if you only put small things in /tmp. I use /var/tmp for anything that won't fit.
|
This will work for large files also, if you have a large enough swap.
|
|
|
All times are GMT -5. The time now is 01:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|