From owner-freebsd-bugs Mon Aug 7 9:30: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from gidora.zeta.org.au (gidora.zeta.org.au [203.26.10.25]) by hub.freebsd.org (Postfix) with SMTP id CD01337B9A6 for ; Mon, 7 Aug 2000 09:29:59 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: (qmail 30529 invoked from network); 7 Aug 2000 16:29:55 -0000 Received: from unknown (HELO bde.zeta.org.au) (203.2.228.102) by gidora.zeta.org.au with SMTP; 7 Aug 2000 16:29:55 -0000 Date: Tue, 8 Aug 2000 02:29:51 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: nbm@FreeBSD.ORG Cc: howard@ee.elen.utah.edu, freebsd-bugs@FreeBSD.ORG Subject: Re: i386/14027: "disklabel -r -w" on new disk reports "No space left on device" In-Reply-To: <200008052309.QAA73732@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 5 Aug 2000 nbm@FreeBSD.ORG wrote: > Synopsis: "disklabel -r -w" on new disk reports "No space left on device" > > State-Changed-From-To: feedback->closed > State-Changed-By: nbm > State-Changed-When: Sat Aug 5 16:09:05 PDT 2000 > State-Changed-Why: > Feedback not possible - mail bounces. Pilot error. This message is caused by attempting to apply a label that specifies a device larger than the actual device. From subr_disklabel.c: if (lp->d_secperunit > sp->ds_size) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ sectors/unit in new label must be smaller than actual sectors/unit. error = ENOSPC; for (part = 0; part < lp->d_npartitions; part++) if (lp->d_partitions[part].p_size > sp->ds_size) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Size of each partition in new label must be smaller than actual sectors/unit. error = ENOSPC; Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message