From owner-freebsd-questions Mon Jul 22 0: 2:27 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 4A15937B400 for ; Mon, 22 Jul 2002 00:02:25 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAD1043E5E for ; Mon, 22 Jul 2002 00:02:23 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 30A2981434; Mon, 22 Jul 2002 16:32:21 +0930 (CST) Date: Mon, 22 Jul 2002 16:32:21 +0930 From: Greg 'groggy' Lehey To: freebsd-questions@freebsd.org Subject: Re: rejecting partition in BSD label Message-ID: <20020722070221.GE47889@wantadilla.lemis.com> References: <20020719220644.GA1682@jrpenn.demon.co.uk> <20020721014949.GA61344@wantadilla.lemis.com> <20020721164125.GA279@jrpenn.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020721164125.GA279@jrpenn.demon.co.uk> User-Agent: Mutt/1.3.99i 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 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 On Sunday, 21 July 2002 at 17:41:25 +0100, Jeff Penn wrote: > On Sun, Jul 21, 2002 at 11:19:49AM +0930, Greg 'groggy' Lehey wrote: >>> I originally installed freebsd on slice 1, but have now moved it using >>> dump/restore to slice 4. This process caused the following problem >>> >>> Mounting root from ufs:/dev/ad0s4a >>> ad0s1: raw partition size != slice size >>> ad0s1: start 63, end 62495, size 62433 >>> ad0s1c: start 63, end 14335775, size 14335713 >>> ad0s1: truncating raw partition >>> ad0s1: rejecting partition in BSD label: it isn't entirely within the slice >>> .... >>> ad0s1h: start 7217215, end 10944574, size 3727360 > >> Use disklabel -e on the raw partitions in question (ad0s1, etc.). > > I should have mentioned in my original email that slice 1 has been > resized and wiped using newfs_msdos. Running 'disklabel -e -r ad0s1' > only shows partition ad0s1c, I can't work out where the system is > finding information for all 8 partitions (a-h). The above output is > showing the original partitions, the output from disklabel below shows > the current config. > > # /dev/ad0s1c: > type: ESDI > disk: ad0s1 > .... > > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > c: 62433 0 unused 0 0 # (Cyl. 0 - 30*) Sorry, maybe I should have been more explicit. On most i386 platforms, the disk labels are a second-order thing. First you have the BIOS partition table, which defines up to four slices ad0s1 to ad0s4. Your dubious slice could be any of these. Take a look at each of them and see if that tells you something. It's also worth looking at the BIOS partition table. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message