*BSD News Article 28158


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!noc.near.net!hopscotch.ksr.com!jfw
From: jfw@ksr.com (John F. Woods)
Newsgroups: comp.unix.bsd
Subject: Re: NetBSD 0-9, enlarging the /usr partition
Date: 7 Mar 1994 14:50:58 GMT
Organization: Kendall Square Research
Lines: 28
Message-ID: <2lff0i$5hd@hopscotch.ksr.com>
References: <76.30.490.0N965FA8@teaminfinity.com>
NNTP-Posting-Host: kaos.ksr.com

sysop@teaminfinity.com (Sysop) writes:
>I mistakenly made my /usr partition too small (40 Megs) and wish to
>enlarge it after the fact.  Is there a way ?

Yes.  Back up everything on tape*, and if your root is staying the same size,
boot to single user mode, rewrite the partition map, remake the filesystems,
reload, reboot.  If your root is where the space is coming from, go through
the installation process all over again to construct a usable main root of
the right size, then reload from your backup and reboot.  Having gone through
this once, I have made sure that everything I add to my system goes under
/usr/local/, so that everything else (modulo configuration text files
in /etc) doesn't have to be backed up (and so that I can move /usr/local off
onto another disk drive, when I get cramped).

Yeah, it's a pain, but at least it makes sure you have a current backup.  :-)

* I _hope_ you have a tape for backup.  Use floppies if not, and while you're
waiting for each floppy to get filled, leaf through the Computer Shopper for
cheap QIC-150 SCSI tape drives...

>Also, how to I get X up and running ?  (Hope this is not a silly
>question)

agate.berkeley.edu:/pub/NetBSD/ports/XFree86-2.0/ contains X compiled for
NetBSD-0.9.  The README files therein explain the process.  Make sure /usr
contains LOTS of extra space.