On Sat, 23 May 1998, Craig Kattner wrote:
>After recently reinstalling, I realized I made my swap partition too
>small. I know I can add another swap partition, but I would prefer to
>delete the current one and make a new one that is large enough. My

Sure, you can go ahead and delete the existing swap partition and remake
a new, bigger one. But of course you have to be sure of the
ramifications of this - such as what other partitions are there on the
drive that will have to be backed up, resized, etc.

It doesn't matter (at least to Linux) that you happen to have two
separate swap partitions. In some cases, it's actually preferable. On
the other hand, if the swap partition is too small and you actually have
to use a swap *file*, then, it's still able to do this, but isn't as
preferable to having an adequately-sized swap partition, or multiple
swap partitions.

Once you have the partition remade, use fdisk to check the number of
blocks it uses, and then do a

# mkswap <partition name> <number of blocks>

Then, issue a swapon on that partition.

If you just resized the already-existing partition, then the entry in
/etc/fstab should still be correct, and you won't have to mess with that
file, and linux will automagically see the new swap partition, and its
new size. On the other hand, if you need to use two swap partitions,
then of course you need to list them both in /etc/fstab (after
formatting the second) to get linux to see it all.


--
------------------------------------------------------------------------
David E. Fox                 Tax              Thanks for letting me
[EMAIL PROTECTED]   the              change magnetic patterns
[EMAIL PROTECTED]      churches         on your hard disk.
-----------------------------------------------------------------------


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to