From owner-freebsd-questions Wed Sep 26 17: 4:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 9F4A537B435 for ; Wed, 26 Sep 2001 17:04:10 -0700 (PDT) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 27 Sep 2001 01:04:09 +0100 (BST) To: David Kelly Cc: freebsd-questions@freebsd.org Subject: Re: raw partition size != slice size In-Reply-To: Your message of "Tue, 25 Sep 2001 17:39:40 CDT." Date: Thu, 27 Sep 2001 01:04:09 +0100 From: Ian Dowse Message-ID: <200109270104.aa74288@salmon.maths.tcd.ie> 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 In message , David Kelly writes: >Well, everything else is working but in dmesg(1) this appears, >suggesting my first slice isn't sane: > >ad0: 6149MB [13328/15/63] at ata0-master UDMA33 >acd0: CDROM at ata1-master using PIO4 >Mounting root from ufs:/dev/ad0s2a >ad0s1: raw partition size != slice size >ad0s1: start 63, end 128519, size 128457 >ad0s1c: start 63, end 12594959, size 12594897 >ad0s1: truncating raw partition This is probably caused by a stale disklabel left over from the previous partition layout. What does 'fdisk ad0' say the type of slice 1 is? I don't know whether or not FreeBSD just looks for a label in the slice anyway, regardless of its type. If the first slice has type 165, try changing it to 6 with fdisk. To remove the disklabel, you could just zero it with dd: dd if=/dev/zero count=1 seek=1 of=/dev/ad0s1 That overwrites the second sector of the first slice, which is where the ad0s1 disklabel is located. Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message