Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2002 13:16:33 -0400
From:      pippo@bellnet.ca
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: how to add space
Message-ID:  <5.1.0.14.2.20021024125901.00aad960@pop51.bellnet.ca>
In-Reply-To: <20021024142156.GA87313@happy-idiot-talk.infracaninophi>
References:  <5.1.0.14.2.20021024093139.00a8df48@mail.host45.com> <5.1.0.14.2.20021024093139.00a8df48@mail.host45.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 03:21 PM 10/24/2002 +0100, you wrote:

>The easiest thing to do is probably to use some or all of the
>available 4Gb as a new filesystem mounted under /usr.  For instance,
>/usr/local might be a good choice.  You need to copy the current
>contents of /usr/local onto the new partition, move the old /usr/local
>aside somewhere and mount the new one in it's place:
>
>Assuming the disk partition where you have space is /dev/da2s2
>something like the following (in single user mode):

I'm a little foggy about "single user mode" - I'm really the only user on 
all my Unix machines, so there is not much of a security or user conflict 
problem.
I just updated 2 different machines to FBSD 4.7 and vi (in single user 
mode) brought up by mergemaster was just plain horrible. So, I'm a little 
skeptical on the single user mode. Can you explain a little?
And I am wondering why vi would not work right? ---- more at bottom


>     mount -a
>     fdisk -i da2            [ Mark slice 2 as belonging to FreeBSD ]
>     disklabel -e da2s2      [ Create a 4.2BSD partition /dev/da2s2e, say ]
>     newfs /dev/da2s2e
>     mkdir /usr/local.new
>     mount -t ufs /dev/da2s2e /usr/local.new
>     rsync -avx /usr/local/ /usr/local.new/
>
>         [ rsync(1) is only one way to copy the whole directory tree over.
>           Obviously, you need to install ports/net/rsync before dropping to
>           single user... Another alternative might be:
>
>           cd /usr/local ; tar -cf - . | ( cd /usr/local.new ; tar -xvpf - )
>
>           or there are similar methods using find+cpio, dump+restore etc.]
>
>     umount /usr/local.new
>     mv /usr/local /usr/local.old
>     mkdir /usr/local
>     mount -t ufs /dev/da2s2e /usr/local
>     diff -ur /usr/local.old /usr/local  [ make sure everything copied OK 
> etc. ]
>     vi /etc/fstab                       [ add /dev/da2s2e to standard 
> mounts ]
>     reboot
>
>Now, when the system comes back up multiuser you should have a
>separate /usr/local partition containing the same files as the
>original /usr/local directory.  Once you're satisfied that everything
>has gone according to plan you can delete /usr/local.old and make
>merry in the extra space that becomes available.

Now, this is a little confusing. The original /usr slice would have more 
space, but there would be a new /usr/local on another slice... hmmm? ... I 
can't quite visualize how that works as that would seem to leave 2 /usr 
slices or directories.... What if I were to create another /usr/local 
directory on the original /usr?
I do admit to feeling a little stupid on this... :((
And how would that affect the files & programs in the /usr/local directory?
This whole exercise is to give OpenOffice the 4gb it is asking for for 
installation (Wow! I thought Microsoft was a SpaceHog)



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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