Subject: Re: full /usr
To: Greg MATTHEWS <G.Matthews@cs.ucl.ac.uk>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-help
Date: 02/21/2001 09:22:56
On Wed, 21 Feb 2001, Greg MATTHEWS wrote:

> heres the o/p of df
>
> potomac: {56} df
> Filesystem  512-blocks     Used    Avail Capacity  Mounted on
> /dev/sd0a        49726    30406    16832    64%    /
> /dev/sd0g       793548   774370   -20500   102%    /usr
> /dev/sd0d        62126    13260    45758    22%    /var
> /dev/sd0h      2860982   124210  2593722     4%    /home
>
> i know i've got lots of space in the /home partition, and its pretty pointless
> having a seperate part for this as it is only used by a cpl of ppl. presumably
> trying to repartion will just trash evverything?

It's looks like you could swap /usr for /home pretty easily. Remove
enough from /usr to make room for /usr/home, move /home to /usr/home,
then newfs and clone /usr to sd0h with "pax" or "dump"/"restore",
switch the two in fstab, umount and remount /usr (on /dev/sd0h), then
restore /home to sd0g.

If you'd rather just install the package to /home, you can set
LOCALBASE in /etc/mk.conf to anything you want, say /home/user/pkg
instead of the default /usr/pkg. In general, you still have to be root
when you do that, so "install" and "chmod" work properly, but you
might be able to get away with installing as your user for certain
packages.


Frederick