Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Sep 2001 01:04:09 +0100
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        David Kelly <dkelly@hiwaay.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: raw partition size != slice size 
Message-ID:   <200109270104.aa74288@salmon.maths.tcd.ie>
In-Reply-To: Your message of "Tue, 25 Sep 2001 17:39:40 CDT." <a05100300b7d6b59c9c20@[10.0.0.22]> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <a05100300b7d6b59c9c20@[10.0.0.22]>, David Kelly writes:
>Well, everything else is working but in dmesg(1) this appears, 
>suggesting my first slice isn't sane:
>
>ad0: 6149MB <Maxtor 86480D6> [13328/15/63] at ata0-master UDMA33
>acd0: CDROM <NEC CD-ROM DRIVE:28B> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200109270104.aa74288>