Subject: Re: full /usr
To: Frederick Bruckman <fb@enteract.com>
From: Greg MATTHEWS <G.Matthews@cs.ucl.ac.uk>
List: netbsd-help
Date: 02/21/2001 17:35:08
useful stuff thanks.

i managed to clear a bit of space my 'make clean'ing my pkgsrc tree and 
deleting some unwanted packages so for the time being i should be ok altho 
tetex looks like it might be huge!

i'll keep this message archived for later reference!

cheer

GREG

> 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
>