Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Also, I'd suggest fdisking the partition ID to Linux Swap, I am not sure if that is required or not, but that's what I do to keep things all happy and shiny.
How big is sda6? A swap partitions max size is 2gb. How much RAM do you have? 512mb swap is a resonable size if you have 256 or greater and not running memory intensive apps.
How do you know if your swap partition is doing what it is supposed to? What I mean is I fdisked a swap partition, set it up, etc. etc. How do I know Linux is recognizing this as my swap and using it?
Thanks for the help MasterC. here is how it responded:
#umount /dev/sda6
/dev/sda6 is not mounted
#mkswap /dev/sda6
setting up swapspace version 1, size = 105885 kB
#swapon
usage: swapon [-hV]
swapon -a [-e] [-v]
swapon [-v] [-p priority] special ...
swapon [-s]
Also, after you get it working I add it to /etc/fstab; right?
MichaeK,
I can't rightly remember how much memory is in it. I had mandrake 9.0 set the partitions up (including the swap) and then put knoppix (which is debian) onto the harddrive. I let the mandrake installer determine the size of the swap partition. It is a strange thing; I set the swap partition up and then sda5 to immediately follow that. Apparently knoppix didn't like my swap partition and assigned sda6 to it.
here is my new fstab (the last two lines are new)
~~~
# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / ext3 defaults,errors=remount-ro 0 1
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,auto,showexec,umask=022 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,nooauto 0 0
#partitions found by knoppix
/dev/sda5 /mnt/sda5 ext3 noauto,users,exec 0 0
/dev/sda6 /mnt/sda6 ext3 noauto,users,exec 0 0
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0
/dev/hda5 /mnt/hda5 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0
/dev/hda6 ext3 noauto,users,exec 0 0
/dev/hda7 ext3 noauto,users,exec 0 0
/dev/hda8 ext3 noauto,users,exec 0 0
swapon
/dev/sda6 swap swap defaults 0 0
~~~
Do I need the 'swapon' line?
What do you mean when you say to check free?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.