From owner-freebsd-questions@FreeBSD.ORG Wed May 19 23:20:20 2004 Return-Path: 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 20D4F16A4CE for ; Wed, 19 May 2004 23:20:19 -0700 (PDT) Received: from ms-smtp-01-eri0.socal.rr.com (ms-smtp-01-qfe0.socal.rr.com [66.75.162.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91B2443D1F for ; Wed, 19 May 2004 23:20:19 -0700 (PDT) (envelope-from hoe-waa@hawaii.rr.com) Received: from ms-mss-01 ([10.10.4.10])i4K6Jt6j012004 for ; Wed, 19 May 2004 23:19:55 -0700 (PDT) Received: from socal.rr.com (localhost [127.0.0.1]) by ms-mss-01.socal.rr.com (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0HY000L5J1L7JH@ms-mss-01.socal.rr.com> for freebsd-questions@freebsd.org; Wed, 19 May 2004 23:19:55 -0700 (PDT) Received: from [10.10.6.203] (Forwarded-For: [24.25.245.126]) by ms-mss-01.socal.rr.com (mshttpd); Wed, 19 May 2004 20:19:54 -1000 Date: Wed, 19 May 2004 20:19:54 -1000 From: hoe-waa@hawaii.rr.com To: Nicholas Basila Message-id: MIME-version: 1.0 X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.21 (built Sep 8 2003) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: en Priority: normal X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: freebsd-questions@freebsd.org Subject: Re: /usr out of space X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hoe-waa@hawaii.rr.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2004 06:20:20 -0000 Aloha Nicholas Thanks for responding. I had just received a hint about growfs and while reading that I found out about newfs. I have indeed performed the newfs and can now mount /dev/da1s4f. Would it be possible to use growfs to add the new slice to /usr? If not, I will follow your instructions in this email. Thanks again. Robert > On Wednesday 19 May 2004 08:17 pm, hoe-waa@hawaii.rr.com wrote: > > > > When I tried using bsdlabel without any options I got an error. > > So I then did a "bsdlabel -w da1s4" and the a "bsdlabel -e da1s4" > > and edited what I believe are the correct numbers for this slice. > > Now when I do the "bsdlabel da1s4" with no options, I get > > > > # /dev/da1s4: > > 8 partitions: > > # size offset fstype [fsize bsize bps/cpg] > > c: 8980335 0 unused 0 0 # "raw" > part,> don't edit f: 8980319 16 4.2BSD 2048 16384 28552 > > > > > > I still get the above error when trying to mount this slice. > > > > To sum it up. > > > > Is it possible to mount, copy and change the /usr partition? > > > > If so, how do I correct the super block problem so I can mount? > > > > Or, is there a much easier way and I have been spinning my wheels > for> the last 6 hours? > > Perhaps I've missed a step, but it seems that you never did a > newfs / > dev/da1s4f. If not, that would be an obvious explanation for the > incorrect super block error. > At any rate, it is pretty easy to copy data from usr to a new > slice and > change fstab. I do it on occasion. I would recommend making a copy > of > fstab that has the da1s4f as the /usr partition. > I do a tunefs -n enable on the new filesystem device. Then, I boot > into > single user mode, mount -ro /usr and mount -rw /newusr (and I even > mount /var if I need to do editing with vi.) I then tar or copy the > files over (dump works, too). After all that's done, umount /usr > and > umount /newusr. Copy the new version of fstab to /etc/fstab, and > try a > mount /usr or mount -a. If there are no errors, you should be able > to > hit control-d and finish the boot procedure. > > > Nicholas > > > > > > TIA > > > > Robert > > > > P.S. Here's what bsdlabel on da1s2 looks like; > > > > bsd-desktop# bsdlabel da1s2 >