LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-11-2008, 06:53 AM   #1
twwwater
Member
 
Registered: Nov 2008
Posts: 113
Blog Entries: 1

Rep: Reputation: 15
Smile how can I make my swap much bigger?


how can I make my laptopś swap much bigger?

I want to make my laptopś swap much bigger,anyone could help me ?
thank you so much.

OS:ubuntu
version: 8.04
codename:hardy
 
Old 12-11-2008, 07:01 AM   #2
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

some little more information will be very helpfull.

Is there any free diskspace to create a new swap partition?
Would you like to setup a swap file which will be usefull for temporary use?
How much swap is available and how much physical memory?
Did you have read the ma page for "mkswap" and "swapon"?
 
Old 12-11-2008, 07:25 AM   #3
twwwater
Member
 
Registered: Nov 2008
Posts: 113

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Quote:
Originally Posted by mesiol View Post
Hi,

some little more information will be very helpfull.

Is there any free diskspace to create a new swap partition?
Would you like to setup a swap file which will be usefull for temporary use?
How much swap is available and how much physical memory?
Did you have read the ma page for "mkswap" and "swapon"?
well,thank you .
you are right,some little more information is very helpful.

I have enough diskspace for me to create a new swap partition.
I just want to make my swap much more bigger,and my physical memory is 2048M. but I thought that at least 512M bigś swap is ok with me,and now I have only about 210M.
and could you tell me how to make it much more bigger?
thank you .
 
Old 12-11-2008, 12:25 PM   #4
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

create a partition on the free part of your disk using fdisk, let's assume your partition is called hda7, than change partition type to '82' using the command 't' inside fdisk.
This marks the partition for swap.

Next edit your /etc/fstab and add the new swap partition. The entry looks like this:
/dev/hda7 swap swap defaults 0 0

Than create the swap layout on the partition using 'mkswap /dev/hda7'.
After that you can reboot the system or use 'swapon /dev/hda7', both will activate the new swap partition.

After that you can savely remove the entry for your old swap partition from /etc/fstab.

Hope this is useful for you.
 
Old 12-11-2008, 10:23 PM   #5
twwwater
Member
 
Registered: Nov 2008
Posts: 113

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Smile

Quote:
Originally Posted by mesiol View Post
Hi,

create a partition on the free part of your disk using fdisk, let's assume your partition is called hda7, than change partition type to '82' using the command 't' inside fdisk.
This marks the partition for swap.

Next edit your /etc/fstab and add the new swap partition. The entry looks like this:
/dev/hda7 swap swap defaults 0 0

Than create the swap layout on the partition using 'mkswap /dev/hda7'.
After that you can reboot the system or use 'swapon /dev/hda7', both will activate the new swap partition.

After that you can savely remove the entry for your old swap partition from /etc/fstab.

Hope this is useful for you.
thank you so much,this is really helpful and useful for me.
 
Old 12-12-2008, 10:10 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by mesiol View Post
Hi,

create a partition on the free part of your disk using fdisk, let's assume your partition is called hda7, than change partition type to '82' using the command 't' inside fdisk.
This marks the partition for swap.
That's not strictly necessary for linux, though it's better to be a tidy guy. So I advice to do it as well.

The rest is well explained. I will just add a few notes:
  • You can add as many swap partition as you wish, no problem with having two or more if you need it for some reason.
  • You can as well change the size of the existing swap partition, or create a new one and erase the other one. Make sure you change fstab accordingly whatever your decision is.
  • It's not the current case, but if some day you need some extra swap space and there's no disk space available for partitioning, you can always use a loop file. In linux, you can format files with any filesystem, and they can also contain swap storage without any problem. This can be handy if you need a lot of swap for something and you don't have spare space on disk, or you just don't feel like playing with partitions, which is always risky and is not worth if it's for something that is only needed to do a punctual thing.

Cheers.
 
Old 12-12-2008, 11:12 PM   #7
twwwater
Member
 
Registered: Nov 2008
Posts: 113

Original Poster
Blog Entries: 1

Rep: Reputation: 15
this is really valuable for me,thank for your advice.
 
  


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
i want to make more bigger logs rhoyerboat Linux - Security 1 08-06-2005 11:34 AM
how to make scim look bigger? damienduff Linux - Software 1 10-30-2004 10:53 PM
Make kde bigger ( desktop) Master Fox Linux - Software 4 08-19-2004 02:49 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
Need to make linux partition bigger Chukky Linux - Newbie 4 12-03-2001 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:41 AM.

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