Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

increasing swap space

Posted on 1998-12-28
2
Medium Priority
?
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
HalldorG earned 400 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses

661 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