From guy.van.sanden@pandora.be  Mon Oct  6 12:05:43 2003
Return-Path: <guy.van.sanden@pandora.be>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4EF1D16A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  6 Oct 2003 12:05:43 -0700 (PDT)
Received: from apate.telenet-ops.be (apate.telenet-ops.be [195.130.132.57])
	by mx1.FreeBSD.org (Postfix) with ESMTP id ED15643F93
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  6 Oct 2003 12:05:41 -0700 (PDT)
	(envelope-from guy.van.sanden@pandora.be)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by apate.telenet-ops.be (Postfix) with SMTP id 4177237FC9
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  6 Oct 2003 21:05:40 +0200 (MEST)
Received: from cronos.home.vsb (d5153CAA6.kabel.telenet.be [81.83.202.166])
	by apate.telenet-ops.be (Postfix) with ESMTP id CB18F37F32
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  6 Oct 2003 21:05:38 +0200 (MEST)
Message-Id: <1065467137.3067.7.camel@cronos.home.vsb>
Date: Mon, 06 Oct 2003 21:05:37 +0200
From: Guy Van Sanden <guy.van.sanden@pandora.be>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Odd/dangerous disklabel behaviour on 5.0 and 5.1-CURRENT

>Number:         57673
>Category:       bin
>Synopsis:       Odd/dangerous disklabel(8) behaviour on 5.0 and 5.1-CURRENT
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 06 12:10:17 PDT 2003
>Closed-Date:    Wed May 07 21:55:40 UTC 2008
>Last-Modified:  Wed May 07 21:55:40 UTC 2008
>Originator:     Guy Van Sanden
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD nemesis.home.vsb 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 ro
ot@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386


        <machine, os, target, libraries (multiple lines)>
>Description:
Disklabel ignores the first 63 sectors of my Harddisk (I've seen this problem on the mailing list before)
[root@nemesis mail]# disklabel -r /dev/ad0s1a
# /dev/ad0s1a:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  1228800       63    4.2BSD     2048 16384 11272
  b:  1006432  1228863      swap
  c: 78165297       63    unused        0     0         # "raw" part, don't edit
  d:  1024000  2235295    4.2BSD     2048 16384 64008
  e:   921600  3259295    4.2BSD     2048 16384 57608
  f: 20971520  4180895    4.2BSD     2048 16384 28552
  g: 53012945 25152415    4.2BSD     2048 16384 28552
partition a: partition extends past end of unit
partition b: offset past end of unit
partition b: partition extends past end of unit
partition c: partition extends past end of unit
disklabel: partition c doesn't start at 0!
disklabel: partition c doesn't cover the whole unit!
disklabel: An incorrect partition c may cause problems for standard system utilities
partition d: offset past end of unit
partition d: partition extends past end of unit
partition e: offset past end of unit
partition e: partition extends past end of unit
partition f: offset past end of unit
partition f: partition extends past end of unit
partition g: offset past end of unit
partition g: partition extends past end of unit

The slices were created by sysinstall itself.
This problem is reproducable between 5.0 and 5.1

The system is a Digital PC3500 (PII 333) with two 40 GB drives.
The primary drive is WDC WD-400EB, the second is IBM IC35L040A

This system used to run FreeBSD 4.6.2 without this problem.

>How-To-Repeat:
        No idea if this would affect other machines.
>Fix:

	unknown
>Release-Note:
>Audit-Trail:

From: Volker <volker@vwsoft.com>
To: bug-followup@FreeBSD.org, guy.van.sanden@pandora.be
Cc:  
Subject: Re: bin/57673: Odd/dangerous disklabel(8) behaviour on 5.0 and 5.1-CURRENT
Date: Mon, 03 Mar 2008 13:19:05 +0100

 Guy,
 
 disklabel has seen some fixes in the 5.x era and has finally been
 replaced by bsdlabel (also back in the 5.x times IIRC). I'm pretty sure
 I haven't seen this misbehavior for a while now.
 
 Do you agree to close this PR?
 
 On a side note to the sample you've given: the label editor should be
 used on a slice or a disk but not on a label.
 
State-Changed-From-To: open->feedback 
State-Changed-By: vwe 
State-Changed-When: Mon Mar 3 12:37:13 UTC 2008 
State-Changed-Why:  
set to feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57673 
State-Changed-From-To: feedback->closed 
State-Changed-By: vwe 
State-Changed-When: Wed May 7 21:55:32 UTC 2008 
State-Changed-Why:  

We're sorry to not see any feedback received for quite some time. 
If you think this is still an issue that should be worked on, 
please provide the requested information and we'll be happy to 
re-open this ticket. 
Thank you for bringing this problem to attention! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57673 
>Unformatted:
