Re: redimensioning /usr

From: Abdullah Ramazanoglu (ar018_at_yahoo.cm)
Date: 07/08/04


Date: Thu, 08 Jul 2004 03:10:18 +0300

Abdullah Ramazanoglu wrote:

[snip]

> # swapoff -a
> # umount /usr
> # fdisk (or cfdisk) :
> Take note of exactly on which CHS /usr starts at.
> Delete swap partition
> Delete /usr partititon
> Recreate /usr partition with exactly the same starting CHS
> Recreate swap partition

For the new partition layout be recognized by the kernel you may
need to reboot (into single user) at this point. Your /usr will be
mounted (as a small filesystem in a larger partition) but swap wont
work upon reboot. So after reboot you should again do:

# umount /usr

No need for "swapoff -a" as it shouldn't be working in the first
place.

> # resize2fs -p /dev/hdxx (the /usr partition)
> # mkswap -c /dev/hdyy (swap partition)
> # swapon -a
> # mount /usr

-- 
Abdullah        | aramazan@ |
Ramazanoglu     | myrealbox |
________________| D O T cm |