Solved

increasing swap space

Posted on 1998-12-28
2
205 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best way to virtualise a remote Linux server 2 66
Help With Shell Script Centos 6 6 52
expectj telnet failing 5 35
android secure ftp 3 35
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

776 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