LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-09-2005, 09:16 PM   #1
Zerimas
Member
 
Registered: Mar 2005
Location: Canada
Distribution: Arch
Posts: 41

Rep: Reputation: 15
No swap space


When I installed DeLi linux I created a 50 meg swap partition, however upon running the du command it turns out that linux is not detecting my swap partition. How do I make linux utilise my swap partition???
 
Old 03-09-2005, 09:33 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
swap wouldn't show in du ...

Try free


Cheers,
Tink
 
Old 03-09-2005, 09:57 PM   #3
Zerimas
Member
 
Registered: Mar 2005
Location: Canada
Distribution: Arch
Posts: 41

Original Poster
Rep: Reputation: 15
Woops! I actually did run the 'free' command but I posted the wrong command in my message. . .


But I still don't have any swap space.
 
Old 03-09-2005, 10:55 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
post /etc/fstab please
 
Old 03-10-2005, 01:00 AM   #5
youngtom
Member
 
Registered: Feb 2005
Location: Rio de Janerio
Distribution: suse 9.1, suse 9.2, redhat enterprise, ubuntu, kubuntu
Posts: 104

Rep: Reputation: 15
50mb is probably rediculously small. The conventional wisdom is that swap should be 2x the physical amount of memory in your machine.
 
Old 03-10-2005, 02:51 AM   #6
chii-chan
Member
 
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357

Rep: Reputation: 30
You can have small swap space provided that you have lots of RAM. You can still run Linux even without swap space though...
 
Old 03-10-2005, 05:54 PM   #7
Zerimas
Member
 
Registered: Mar 2005
Location: Canada
Distribution: Arch
Posts: 41

Original Poster
Rep: Reputation: 15
Alright, I got linux recognize my swap partiton, I had to run mkswap on the partition and use the swapon command. However, when linux boots up it runs swapon on the wrong partition, how do I change this?
 
Old 03-10-2005, 06:08 PM   #8
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
You can either run fdisk and change it to make one partition swap, and after that you have to edit your /etc/fstab (as root) and make sure it has the proper device labeled swap.
 
  


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
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
swap space alphisb0t Linux - Software 1 07-05-2004 03:16 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
swap space not being used bishal Linux - Software 16 05-07-2004 12:28 AM
Swap Space bawbag Slackware 6 07-16-2003 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03: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
Open Source Consulting | Domain Registration