Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-01-2005, 12:23 PM   #1
Mr. New
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, 12:35 PM   #2
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 )

Old 01-01-2005, 12:37 PM   #3
Senior Member
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
#swapon /dev/hdb2


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
swapfile doesn't work kozgun Slackware 7 10-20-2004 01:42 AM
how do i make a swapfile in debian? jogurt666 Debian 9 01-18-2004 10:11 AM
SuSe swapfile Pond247 Linux - Newbie 0 09-19-2003 03:17 PM
command to check swapfile? Scruff Linux - General 5 09-15-2003 10:47 PM
Swapfile Shantesh Linux - Software 2 09-11-2003 09:11 AM

All times are GMT -5. The time now is 04:49 AM.

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