LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-03-2010, 08:32 AM   #1
prinsobed
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
Red face Swap Issues


Hi Guys..i am new to this forum, i love linux and i believe with ur help i will be a geek soon.

My problem is i installed ubuntu 1o.o4 lucid lynx from inside windows cos i wanted to use the win boot manager..its working. however the installation created a 255mb swap space which is small for my 2.5gb ram. i have a partition on my drive i have already converted to a swap partition..how do i mount this partition..? I really need this cos my pc freezes all the time.
 
Old 09-03-2010, 10:09 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Use the swapon command.

Typing "man swapon" will show you the manual page for how to use it.

You can also add swap devices to /etc/fstab with lines similar to:
Code:
/dev/VolGroup00/LogVol01 swap             swap    defaults        0 0
That way they are enabled automatically at boot.
 
Old 09-03-2010, 10:41 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Welcome to LinuxQuestions

The amount of swap really depends on the types of applications you are running. Look at the output of the free command and see how much swap is currently being used. Under normal usage with 2.5 GB RAM 256MB should be enough.

Before you can turn on the new swap partition it must be formatted with the mkswap command.

What applications are you running when the computer freezes.

Last edited by michaelk; 09-03-2010 at 10:42 AM.
 
1 members found this post helpful.
Old 09-03-2010, 06:32 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Sounds like a wubi install - I not even sure you can add a swap partition. But I've never used wubi.

What makes you think adding swap will help ?. Describe your problem(s) better.
 
Old 09-03-2010, 09:31 PM   #5
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by prinsobed View Post
My problem is i installed ubuntu 1o.o4 lucid lynx from inside windows cos i wanted to use the win boot manager..its working. however the installation created a 255mb swap space which is small for my 2.5gb ram.
With that much memory it is unlikely that you will ever need a bigger swap partition, I have 2GB memory, and ny swap partition is rarely, if ever used.
Code:
tom[data]$ free -m
             total       used       free     shared    buffers     cached
Mem:          2000       1107        892          0         66        527
-/+ buffers/cache:        514       1486
Swap:          956          0        956
The command: "free -m" lists memory, including swap that is used, cached, etc in megabytes. Note that I am not using any of my 1GB swap partition.

BTW, according to Wubi's developer Agostino Russo, Wubi is just meant as a way to try out Ubuntu. It is not meant for long term installs:
http://howsoftwareisbuilt.com/2009/0...o-wubi-ubuntu/
So, if you decide you really like Ubuntu / linux, you should do a real install to a dedicated partition on your hard drive. You can easily dual boot with Windows using grub2. Here are 2 excellent sites for getting started with that:
http://www.psychocats.net/ubuntu/
http://members.iinet.net/~herman546/index.html

And welcome to the LQ forums!

Last edited by tommcd; 09-03-2010 at 09:35 PM.
 
Old 09-04-2010, 06:34 AM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
I'm going to try to be a little clearer about something others has already said.

Quote:
Originally Posted by prinsobed View Post
the installation created a 255mb swap space which is small for my 2.5gb ram.
Probably 255MB of swap space is enough.

Quote:
I really need this cos my pc freezes all the time.
Your problem is almost certainly caused by something other than a shortage of swap space.
 
  


Reply



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
Gparted says swap has 5 Gb, grep SwapTotal /proc/meminfo says swap has 800 Mb rickrandall Red Hat 3 02-24-2010 12:09 PM
Swap Space issues! chickenlinux Linux - Software 5 04-27-2008 04:37 PM
Hibernate/Suspend issues on opensuse10.2 with swap on LVM tea of evil SUSE / openSUSE 3 03-26-2007 11:14 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
3 issues: Making swap, fixing partitions, changing ownership of mounted filesystem. Dunedain Linux - Newbie 2 01-27-2004 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:01 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