From owner-freebsd-questions Thu Oct 24 10:16:39 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7FD937B401 for ; Thu, 24 Oct 2002 10:16:37 -0700 (PDT) Received: from tomts25-srv.bellnexxia.net (tomts25.bellnexxia.net [209.226.175.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0AEE43E65 for ; Thu, 24 Oct 2002 10:16:36 -0700 (PDT) (envelope-from pippo@bellnet.ca) Received: from pippo.bellnet.ca ([65.94.100.111]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20021024171634.TLRT20715.tomts25-srv.bellnexxia.net@pippo.bellnet.ca>; Thu, 24 Oct 2002 13:16:34 -0400 Message-Id: <5.1.0.14.2.20021024125901.00aad960@pop51.bellnet.ca> X-Sender: lesp3999@pop51.bellnet.ca X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 24 Oct 2002 13:16:33 -0400 To: Matthew Seaman From: pippo@bellnet.ca Subject: Re: how to add space Cc: freebsd-questions@FreeBSD.ORG 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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