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.
Hi!
I read about swap partitionning and partitions in general in most valuable slackware /usr/doc but i didn't see anything regarding adding swap space to already installed swap partition on a running system, this is possible, right?
Well, the reason why i am concerned is because while looking at info center in KDE i noticed there is no swap space at all (altough RAM size is 430MB).
--------------------------------------------------------------------------
bash-2.05b# fdisk /dev/hda
...
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/hda2 1276 4864 28828611 5 Extended
/dev/hda5 1276 1394 955804+ 82 Linux swap
/dev/hda6 1395 2679 10321731 83 Linux
/dev/hda7 2680 3061 3068352 b W95 FAT32
/dev/hda8 3062 3443 3068383+ b W95 FAT32
/dev/hda9 3444 3820 3028189+ 83 Linux
/dev/hda10 3821 4207 3108546 83 Linux
/dev/hda11 4208 4864 5277289+ 83 Linux
As my graphics card (ATI radeon 340M) is not properly configured yet* (i
can't watch dvd unless i have it running in a small window) i wonder to what extent is performance compromised by lack of swap space, on the other hand, it looks like i have plenty space (see below).
Another dumb but important question is how large is my swap anyways?
start end
my / (dev/hda6) partition is 10GB ---------- 1395 - 2679 = (-)1284
Here is your swap partition
/dev/hda5 1276 1394 955804+ 82 Linux swap
Swap is not a mounted partition and does not display any information with the df command. Look at the output of the free or top commands and you should see a non zero value for total swap space. If it is zero then your swap space not being activated at boot. It looks like you have plenty of swap space but it depends on what applications are running.
There should be a line in the /etc/fstab file similar to:
/dev/hda5 swap swap defaults 0 0
I don't know what version of Slack you are using but I think the latest X will have much better support for Radeon based cards. Slackware 10 is about to be released and that version will have the latest X version. Otherwise searching the forum for Radeon related problems will give a lot of information I guess. A search on Slackware Radeon provides a lot of information on the issue.
I think your swap is about 950 MB , it won't show using df but you can see it using free or free -m if you want the output in Megabytes.
so basically i just have to add 1 line to /etc/fstab, right?
and about the command you showed(free) rotvogel, i have been looking for just that!
really quick response! thanks
The line in fstab for swap usually is the first one, unless a swapFILE is being used. If this is the case, then whatever partition the swapfile is on must be mounted first.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.