Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 1998 21:05:40 -0500
From:      Norman C Rice <nrice@emu.sourcee.com>
To:        Greg Lehey <grog@lemis.com>
Cc:        Dirk-Willem van Gulik <Dirk.vanGulik@jrc.it>, Doug White <dwhite@gdi.uoregon.edu>, Gordon Wang <guelph@tpts5.seed.net.tw>, freebsd-questions@FreeBSD.ORG
Subject:   Re: (no subject)
Message-ID:  <19980115210540.45579@emu.sourcee.com>
In-Reply-To: <19980115102046.43283@lemis.com>; from Greg Lehey on Thu, Jan 15, 1998 at 10:20:46AM %2B1030
References:  <Pine.BSF.3.96.980112214601.22079L-100000@gdi.uoregon.edu> <Pine.SOL.3.96.980114151025.8962W-100000@elect6.jrc.it> <19980115102046.43283@lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 15, 1998 at 10:20:46AM +1030, Greg Lehey wrote:
> On Wed, Jan 14, 1998 at 03:28:25PM +0100, Dirk-Willem van Gulik wrote:
> > On Mon, 12 Jan 1998, Doug White wrote:
> >
> >> On Fri, 9 Jan 1998, Gordon Wang wrote:
> >>
> >>> Dear Sir
> >>> I am a FreeBSD 2.2.1 user.
> >>> My /root space is 32M.
> >>> What should I do  if I want to make 1t 64M.
> >>
> >> This is not as easy as it sounds.  You can't resize a partition without
> >> destroying it. You have to back up the system, rewrite the disklabel,
> >> newfs the new partitions, then restore the data to the new partitions.
> >> Basically, reformat the disk.
> >>
> > Alternatively; you can check what it is that requires size; if it is
> > for example just the '/root' home directory of the 'root' user; you
> > could just move it to /usr/home and modify the /etc/passd file.
> 
> I fear that this could cause serious problems, though I can't say
> which.  It might be more interesting to use symbolic links for other
> things.  I suppose we should ask Gordon why he wants 64 MB: 32 should
> be enough.  In particular, you can run into space problems if you have
> /var on the root file system.  If this is the problem, you should
> create a directory /usr/var and a symbolic link /var to it:
> 
>   # mkdir /usr/var
>   # mv /var /VAR
>   # ln -s /usr/var /var
>   # cd /VAR
>   # cp -p * /var
         ^^
Perhaps

    # cp -Rp * /var

would be appropriate to ensure subdirectories are copied.

>   # cd /
>   # rm -rf /VAR
> 
> This will move the contents across to the new /var.  You'll need to
> restart syslogd.
> 
> Greg
> 

-- 
Regards,
Norman C. Rice, Jr.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980115210540.45579>