From owner-freebsd-questions@FreeBSD.ORG Sat Sep 20 17:46:08 2003 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 213D016A4B3 for ; Sat, 20 Sep 2003 17:46:08 -0700 (PDT) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78D2D43F85 for ; Sat, 20 Sep 2003 17:46:06 -0700 (PDT) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (blackwater.lemis.com [192.109.197.80]) by ozlabs.org (Postfix) with ESMTP id 59A9A2BD49 for ; Sun, 21 Sep 2003 10:46:03 +1000 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id BA40D518F3; Sun, 21 Sep 2003 10:16:01 +0930 (CST) Date: Sun, 21 Sep 2003 10:16:01 +0930 From: Greg 'groggy' Lehey To: Guy Van Sanden Message-ID: <20030921004601.GO16686@wantadilla.lemis.com> References: <1064047468.9788.14.camel@cronos.home.vsb> <20030920085940.GK16686@wantadilla.lemis.com> <1064051620.9794.24.camel@cronos.home.vsb> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oJAv8lSwuaQsYd0G" Content-Disposition: inline In-Reply-To: <1064051620.9794.24.camel@cronos.home.vsb> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: freebsd-questions@freebsd.org Subject: Re: Disklabe oddity X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2003 00:46:08 -0000 --oJAv8lSwuaQsYd0G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Format recovered--see http://www.lemis.com/email/email-format.html] Still wrapped output. This is painful to recover, and I tend to lose interest when it continues. On Saturday, 20 September 2003 at 11:53:41 +0200, Guy Van Sanden wrote: > Thanks you for your very complete answer Greg > > > On Sat, 2003-09-20 at 10:59, Greg 'groggy' Lehey wrote: >> [Format recovered--see http://www.lemis.com/email/email-format.html] >>> The disk was formatted by the FreeBSD install procedure. >> >> If you haven't changed anything here, it would be interesting to know >> in more detail just what you did. To judge by the surprising number >> of partitions, you didn't take the defaults. > > I just created seperate partitions for / /tmp /var /usr etc. The c > partition was created by FreeBSD on its own. Could this be a BIOS > problem, my system BIOS predates that size of disks by far? Barely possible. =20 >>> The system is an older Digital PC (3500) PII 333 Mhz. The disk is >>> a 40 GB IDE drive (WD) >>> >>> BTW, I'm looking for a safe way to 'grow' my rootfs, I've looked >>> arround before, but I'm still not clear on the right procedure for >>> it. >> >> Take a look at growfs(8). To do it right, you need space directly >> behind the root file system. Even Vinum won't help here. You could >> move the swap space elsewhere, for example. > > I'm looking at that option, lucky that I have a second disk with rsynced > mirrors of all partitions on the first one. I can just remove /home and > /data and copy them back later. Well, yes, or you can completely reinstall. I was looking at a less intrusive way of doing it. > Perhaps I can add the swap space to / and create a new swap further > back on the disk. It's not a good idea to add swap space to a file system. It's better to have your own partition. Probably what you have is more than adequate, though. >> You can clear the error by running disklabel -e /dev/ad0s1a in single >> user mode, and changing the length and offset of partition c (offset >> 0, add 63 to the size). > > I wanted to try this on the mirror disk first, it also shows the offset > at 63 using disklabel -r > Yet doing disklabel -e on it shows the offset at 0 > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 327680 0 4.2BSD 2048 16384 20488 # (Cyl. 0 - 32= 5*) > b: 1007984 327680 swap # (Cyl. 325*- 13= 25*) > c: 80418177 0 unused 0 0 # (Cyl. 0 - 79= 779*) > d: 1007616 1335664 4.2BSD 2048 16384 62984 # (Cyl. 1325*- 23= 24*) > e: 1024000 2343280 4.2BSD 2048 16384 64008 # (Cyl. 2324*- 33= 40*) > f: 18120704 3367280 4.2BSD 2048 16384 28552 # (Cyl. 3340*- 21= 317*) > g: 20971520 21487984 4.2BSD 2048 16384 28552 # (Cyl. 21317*- 4= 2122*) > h: 37958673 42459504 4.2BSD 2048 16384 28552 # (Cyl. 42122*- 7= 9779*) It looks as if you have two different partition tables. This one doesn't match the other. Are you still getting the message? Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers --oJAv8lSwuaQsYd0G Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE/bPTJIubykFB6QiMRAqkSAJ4mPogxtDKRvG2Jr9rppTSTYWvjNwCdFVDW QpA/+5Gug3A3YQKi7Orgsuo= =bEMt -----END PGP SIGNATURE----- --oJAv8lSwuaQsYd0G--