SlackwareThis 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.
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.
Okay, I've searched ALL over for this, and I'm finally asking for help, because it's just got me going crazy...
Anyways. I've installed Slack 10.0 on a Thinkpad 600X (I didn't think this was so much a hardware problem so I didn't post this in there) that has a P III and 500mhz. I have 192mb RAM, and I've installed it as the sole OS on a 40 gig hard drive. I wanted to be generous so I gave myself a 2 gig swap (/hda2 I think).... and I read all the manpages on the addswap and mkswap commands, and tried doing all that in root....
I've been all over all the help forums, and I've practically whored google over this, and I just can't find out how to get my swap working! If I use too much memory (by the looks of things, the little status ticker for the memory in Gnome is always at the highest when this happens) it just crashes. Nothing moves, so I have to just shut it off and try again.
Post the contents of /etc/fstab. Usually during the installation phase of Slackware, you have the option for formatting both linux and swap partitions, and after it has done that, it autoamatically updates your fstab with your linux, swap, and other partitions that it sees, and so because of that , swap should always be turned on automatically each time you boot. Also, try just typing mount, and see what comes up.
2GB is probably a bit much for swap space, IMO. You could probably make do with just 256MB of swap space, or if you want to be generous, 512MB.
Anyway, assuming that your swap is on /dev/hda4 (that's where it is on my laptop), you need a line like this in /etc/fstab:
/dev/hda4 swap swap defaults 0 0
You're writing it entirely in lower case? You should have /etc/fstab. Easy way to check, try mounting your floppy drive or cdrom. Doesn't even matter if there's a disk in the drive, because the error you get will be telling of the problem.
If you don't have an /etc/fstab at all, then you've got more worrying problems. That's part of the etc package in the A set, and I'm not even sure if the install will let you not install that package. It's also modified by the install to reflect what it finds for your cdrom and floppy drives, and any other partitions you set up.
If you want to try resolving things by creating it, I can't tell you exactly what to put in there. It depends entirely on your system configuration and your partitions. FWIW, this is what mine looks like:
2gb??
I have a P2@400 and 256mb and I only have 128mb of swap, of which I have never used more than 65mb (and that running X with mathematica, firefox and thunderbird).
I have followed everything you people said but i have an issue. First I did /sbin/fdisk -l | grep swap and got /dev/hda6 9709 9728 160618+ 82 Linux swap so then I added
/dev/hda6 swap swap defaults 0 0 to my fstab and then I did mount /dev/hda6 but then i get mount: mount point swap does not exist
ok well I am making my computer work by doing updatedb in console and now my total memory is at 99% and my swap is still at 100% empty. Is there anything else I need to do, to get it working or how does the swap work?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.