From owner-freebsd-bugs Sun Feb 25 11:36:56 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA13593 for bugs-outgoing; Sun, 25 Feb 1996 11:36:56 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA13586 for ; Sun, 25 Feb 1996 11:36:48 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id GAA31993; Mon, 26 Feb 1996 06:34:05 +1100 Date: Mon, 26 Feb 1996 06:34:05 +1100 From: Bruce Evans Message-Id: <199602251934.GAA31993@godzilla.zeta.org.au> To: darrenr@cyber.com.au, freebsd-bugs@FreeBSD.org, port-i386@netbsd.org Subject: Re: Incompatible slices. Sender: owner-bugs@FreeBSD.org Precedence: bulk >I'd like to report that partition slices in FreeBSD 2.1.0 and NetBSD 1.1 >aren't 100% compatible. >wd2s4: raw partition size != slice size >wd2s4: start 2459520, end 3173183, size 713664 >wd2s4c: start 2459520, end 3169151, size 709632 >wd2s4: rejecting partition in BSD label: it isn't entirely within the slice >wd2s4: start 2459520, end 3173183, size 713664 >wd2s4d: start 0, end 3169151, size 3169152 FreeBSD doesn't allow partitions outside the slice that contains the label. It deletes such partitions from the in-core label but doesn't write anything to the disk unless you write the label. The 'd' and 'c' partitions are handled automatically to match the DOS partition table and/or the drive if there is no DOS partition table. The messages could be punctuated better: wd2s4: warning: raw partition size != slice size: wd2s4: start 2459520, end 3173183, size 713664, wd2s4c: start 2459520, end 3169151, size 709632 The first line is a warning and the last 2 lines describe the inconsistent objects. You seem to be wasting 713664 - 709632 = 4032 sectors. wd2s4: error: rejecting partition in BSD label: it isn't entirely within the slice: wd2s4: start 2459520, end 3173183, size 713664 wd2s4d: start 0, end 3169151, size 3169152 The first line is an error and the last 2 lines describe the inconsistent objects. Old 'd' partitions often cause this error. >wd2s4: raw partition size != slice size >wd2s4: start 2459520, end 3173183, size 713664 >wd2s4c: start 2459520, end 3169151, size 709632 >wd2s4: rejecting partition in BSD label: it isn't entirely within the slice >wd2s4: start 2459520, end 3173183, size 713664 >wd2s4d: start 0, end 3169151, size 3169152 >wd2s4: raw partition size != slice size >wd2s4: start 2459520, end 3173183, size 713664 >wd2s4c: start 2459520, end 3169151, size 709632 >wd2s4: rejecting partition in BSD label: it isn't entirely within the slice >wd2s4: start 2459520, end 3173183, size 713664 >wd2s4d: start 0, end 3169151, size 3169152 >- slices created using NetBSD, when FreeBSD tries to fsck them. The messages are repeated because fsck opens and closes the devices several times and rebuilding the tables on first opens is a simple way of getting them right for removable media. Bruce