LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 01-01-2005, 11:23 AM   #1
Mr. New
Member
 
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80

Rep: Reputation: 15
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.
 
Old 01-01-2005, 11:35 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
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
 
Old 01-01-2005, 11:37 AM   #3
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
#swapon /dev/hdb2
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
swapfile doesn't work kozgun Slackware 7 10-20-2004 12:42 AM
how do i make a swapfile in debian? jogurt666 Debian 9 01-18-2004 09:11 AM
SuSe swapfile Pond247 Linux - Newbie 0 09-19-2003 02:17 PM
command to check swapfile? Scruff Linux - General 5 09-15-2003 09:47 PM
Swapfile Shantesh Linux - Software 2 09-11-2003 08:11 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration