Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

increasing swap space

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
ramsay
Asked:
ramsay
1 Solution
 
HalldorGCommented:
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
 
ramsayAuthor Commented:
cheers
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now