Solved

increasing swap space

Posted on 1998-12-28
2
202 Views
Last Modified: 2010-04-20
I have 2 small questions:

1. what happens if I reboot my linux system and it can't find its swap partition?

I have 32 Mb swap but want to increase this to 64Mb.
I am getting a new HDD which i plan to put the swap space on. I am going to partition the HDD up into sections. One of these sections will be a 64 Mb linux swap partition.

2. How do I tell linux where to find this swap partion once I have installed my new HDD? I didn't notice it in lilo (that is where I initially assumed it would be).

Thanx 4 your help
0
Comment
Question by:ramsay
2 Comments
 
LVL 7

Accepted Solution

by:
HalldorG earned 100 total points
ID: 1638979
1. The system will not be able to use that swap!!
   but it will still work.

2. You can add a new swap on the fly using
   mkswap and swapon see man   mkswap  and man swapon
   if you want to stop using a swapfile use swapoff
   then use fdisk to change the partition and swapon to
   turn swapspace on again

   Note also you can have more than one swap partition.
   You might also consider useing the current swap for
   /tmp or /var when you have changed it to a normal ext2    partition

   So the procedure would be create then new swap space
   using fdisk, use mkswap to initin and turn it on with
   swapon.  Then turn the old swap off use fdisk to change
   the format of it then use it for something useful.

HG


   
0
 
LVL 1

Author Comment

by:ramsay
ID: 1638980
cheers
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now