LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   swap on (https://www.linuxquestions.org/questions/linux-newbie-8/swap-on-73717/)

hpglow 07-17-2003 10:19 PM

swap on
 
How do I get my Slack to do a

swapon /dev/hda3

without typing it in every time my computer boots?

jailbait 07-17-2003 10:48 PM

Put the command in one of your startup scripts. On my machine I put such things in /etc/init.d/boot.local. Slackware may be a little different.

michaelk 07-18-2003 02:15 AM

Stick this line in your /etc/fstab file
/hda3 swap swap defaults 0 0

hpglow 07-18-2003 10:23 AM

Thanx that worked. I tried putting that line at the bottom of the file and it just gave me an error that there was no end to the file. So I moved it up and it detected it perfectly. Thanx for your help.

michaelk 07-18-2003 10:37 AM

If you press the enter key after the last character on the last line in the file will fix that problem.

This sticks an End Of Line character inbetween the last text character and the End Of File marker. This is true for just about all config files.


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