LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2003, 11:19 PM   #1
hpglow
LQ Newbie
 
Registered: Jul 2003
Posts: 26

Rep: Reputation: 15
swap on


How do I get my Slack to do a

swapon /dev/hda3

without typing it in every time my computer boots?
 
Old 07-17-2003, 11:48 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
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.
 
Old 07-18-2003, 03:15 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,961

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Stick this line in your /etc/fstab file
/hda3 swap swap defaults 0 0
 
Old 07-18-2003, 11:23 AM   #4
hpglow
LQ Newbie
 
Registered: Jul 2003
Posts: 26

Original Poster
Rep: Reputation: 15
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.
 
Old 07-18-2003, 11:37 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,961

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 01:57 PM
Swap os2 Linux - General 1 03-18-2005 09:21 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 08:58 PM
Swap punker22 Linux - Newbie 3 10-14-2003 01:27 AM


All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration