LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I get my swapfile to work? (http://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-get-my-swapfile-to-work-272587/)

Mr. New 01-01-2005 12:23 PM

How do I get my swapfile to work?
 
OK when I installed debian i didn't know I needed a swap partition, so when i got it running I learned I needed one, so I created a swapfile it works but i have to type swapon /swapfile into the command line for it to work i heard there is a way for it to do this automatically on startup. I don't know how. :( I've only been using linux since monday so I am not an expert.

egag 01-01-2005 12:35 PM

i think you must edit your /etc/fstab .
add a line like this :

/dev/hdb2 swap swap defaults 0 0

( let hdb2 point to your swap-partition )

egag

SlackerLX 01-01-2005 12:37 PM

#swapon /dev/hdb2


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