Solved

increasing swap space

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
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.

679 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