LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DamnSmall Swap file (https://www.linuxquestions.org/questions/linux-newbie-8/damnsmall-swap-file-339443/)

burningsun1981 07-02-2005 06:05 PM

DamnSmall Swap file
 
I ran the Live CD of DSL and ran the install to HD. I'm worried though that I don't have a swap file since I didn't have the option of setting one up during the install. In the SLIT i think its called that monitors your cpu usage and memory and swap file. In the Swap section it says

Swap 0
0 0%

Will it only use the swap if all of my RAM gets used. I want it to be able to run fast without crashing for only having 32MB ram. Is there anyway to set up a swap file if I don't currently have one, because I think I dont I have a swap file set up if it is it is very small.

under my /mnt directory i have

/auto 4096 bytes
/cdrom
/floppy
/hd/ 4096 bytes
/hd1/ 4096 bytes

stefan_nicolau 07-02-2005 07:10 PM

Swap setup:

make swap partition or swap file
mkswap <partition or file name>
swapon <partition or file name>
add the partition/file to /etc/fstab

For detailed instructions, look at:

http://www.redhat.com/docs/manuals/l...ap-adding.html for a swap partition

http://www.netadmintools.com/art1.html for a swap file

burningsun1981 07-03-2005 12:24 AM

hey i did it! wow
 
Thanks for the link on how to make a swapfile. I decided to make a swapfile instead trying to make a swap partition. I'm running DSLinux on an old p233, 2GB hd, 32MB RAM, just for a computer to play music and type on, its not networked or anything.

Now my ancient computer runs good and is my first nix box. Thanks for pointing me in the right direction.

burningsun1981 07-03-2005 12:42 AM

how i did it
 
First I created the swapfile in /root and it worked when i was logged in as root, but when I restarted I noticed I must have created the swapfile somewhere I shouldn't have because even though I added the entry /swapfile swap swap defaults 0 0 to my fstab file, it didnt load the swapfile when I logged on as a user. So then I redid the whole process and created a swapfile in /opt and changed the fstab entry respectivley.

To remove the first swapfile I made i just..
Code:

root@box:rm swapfile
i deleted the first now unused swapfile i created and i freed up the hdspace.

dsl is cool, but it doesnt even do the info bash command, the info isnt there, what a weird way to learn linux.


All times are GMT -5. The time now is 11:35 AM.