Swap question


Forum: Apps
Topic: Swap question
started by: damnhappy

Posted by damnhappy on Mar. 26 2005,05:24
I have dsl installed on my hard drive, and I just created a linux swap file partition with my partition program. My question is do I have to do anything special for dsl to use it? How do I know if it is being used?
Also what is the "Setup DOS Swapfile" under the System menu do?
Thanks for any help.

 :D

Posted by mikshaw on Mar. 26 2005,06:17
if you have a linux swap partition, DSL should automatically detect it.  You can do "cat /etc/fstab|grep swap" to see if dsl found it.

The DOS swapfile I think is for creating a swapfile on a fat partition.

Posted by caulktel on Mar. 26 2005,16:18
damnhappy,

What I do is drop to a console and type "free", if your swap is working you will see the numbers just to the right corresponding to your swap partition size. If all you see are 0's, then you need to format your swap partition with this command from the root console:
mkswap /dev/hda2. Change hda2 to what ever your swap partition number is.
Then just type: swapon /dev/hda2. Then type "free" again and you should see that your swap is working.

Posted by damnhappy on Mar. 27 2005,02:35
Thanks, I got it working! Now I am going to be a royal pain in the ass. I have the Linux swap file partition and the DOS file Partition working as Swap. I didn't mean to do this, but it's done. Can anyone kindly tell me how to turn off the DOS swap file? I don't think I need 2 gigs of swap, lol.
Thanks again.

Posted by cbagger01 on Mar. 27 2005,04:40
One way:

Delete the file.

Posted by damnhappy on Mar. 27 2005,06:34
Ok. I don't know how to find the Dos swap file to delete. I looked for "Knoppix.swp" but couldn't find it.
Posted by mustang335 on April 03 2005,05:08
you could use cfdisk and change the swap partition to a linux . What ever partition it is use mkfs after you change the type to format it for ext2 linux filetype. as in( cfdisk /dev/hda and it will show you the partitions on hda and allow you to change types  . Then you would do a (after you reboot in order for cfdisk to register changes)  mkfs /dev/hda1 (if hda1 is the partition you want to format. mkfs defaults to a ext2 file system. Marty
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.