From gslin@colo-p.gslin.org  Tue Jul 14 04:13:42 2009
Return-Path: <gslin@colo-p.gslin.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B12F61065678
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Jul 2009 04:13:42 +0000 (UTC)
	(envelope-from gslin@colo-p.gslin.org)
Received: from colo-p.gslin.org (60-199-248-145.static.tfn.net.tw [60.199.248.145])
	by mx1.freebsd.org (Postfix) with ESMTP id 83D398FC15
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Jul 2009 04:13:41 +0000 (UTC)
	(envelope-from gslin@colo-p.gslin.org)
Received: by colo-p.gslin.org (Postfix, from userid 1000)
	id 28CBB7E81B; Tue, 14 Jul 2009 12:13:40 +0800 (CST)
Message-Id: <20090714041340.28CBB7E81B@colo-p.gslin.org>
Date: Tue, 14 Jul 2009 12:13:40 +0800 (CST)
From: Gea-Suan Lin <gslin@gslin.org>
Reply-To: Gea-Suan Lin <gslin@gslin.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: gslin@gslin.org
Subject: disklabel handle incorrently
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         136733
>Category:       bin
>Synopsis:       disklabel(8) handle incorrently
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 14 04:20:01 UTC 2009
>Closed-Date:    
>Last-Modified:  Fri Dec 25 21:05:20 UTC 2009
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 8.0-BETA1 amd64
>Organization:
>Environment:
System: FreeBSD webfront-blog-12 8.0-BETA1 FreeBSD 8.0-BETA1 #0: Sat Jul  4 02:38:21 UTC 2009     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


	
>Description:
After installing 8.0-BETA1 and then trying to use disklabel to modify
partitions:

gslin@webfront-blog-12 [~] (12:09) sudo disklabel -r ad4s1
# /dev/ad4s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a: 10485760  4194367    4.2BSD        0     0     0
  b:  4194304       63      swap
  c: 312576642       63    unused        0     0         # "raw" part, don't edit
  d: 20971520 14680127    4.2BSD        0     0     0
  e: 276925058 35651647    4.2BSD        0     0     0
partition c: partition extends past end of unit
disklabel: partition c doesn't start at 0!
disklabel: An incorrect partition c may cause problems for standard system utilities
partition e: partition extends past end of unit

Also, I cannot use disklabel -e ad4s1 to modify.

	
>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Tue Jul 14 13:09:28 UTC 2009 
State-Changed-Why:  
To submitter: How did you install your system?  Did you do anything 
special, or did you just use sysinstall?  Did you select any special 
options (like "Dangerously Dedicated" mode)?  Did you select the 
"automatic" partitioning option? 


Responsible-Changed-From-To: freebsd-bugs->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Tue Jul 14 13:09:28 UTC 2009 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=136733 

From: Gea-Suan Lin <gslin@gslin.org>
To: gavin@FreeBSD.org
Cc: freebsd-bugs@FreeBSD.org
Subject: Re: bin/136733: disklabel handle incorrently
Date: Tue, 14 Jul 2009 22:32:29 +0800

 For first question, I download 8.0-BETA1 bootonly image and use network
 (FTP over HTTP proxy) to install a clean 8.0-BETA system. No special
 options.
 
 Partitions is not "automatic". I create them myself.
 
 On Tue, Jul 14, 2009 at 01:11:48PM +0000, gavin@FreeBSD.org wrote:
 > Synopsis: disklabel handle incorrently
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: gavin
 > State-Changed-When: Tue Jul 14 13:09:28 UTC 2009
 > State-Changed-Why: 
 > To submitter: How did you install your system?  Did you do anything
 > special, or did you just use sysinstall?  Did you select any special
 > options (like "Dangerously Dedicated" mode)?  Did you select the
 > "automatic" partitioning option?
 > 
 > 
 > Responsible-Changed-From-To: freebsd-bugs->gavin
 > Responsible-Changed-By: gavin
 > Responsible-Changed-When: Tue Jul 14 13:09:28 UTC 2009
 > Responsible-Changed-Why: 
 > Track
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=136733
 
 -- 
 * Gea-Suan Lin  (public key: Using https://keyserver.pgp.com/ to search)
 * If you cannot convince them, confuse them.           -- Harry S Truman
State-Changed-From-To: feedback->open 
State-Changed-By: gavin 
State-Changed-When: Fri Dec 25 21:04:28 UTC 2009 
State-Changed-Why:  
Feedback was received 


Responsible-Changed-From-To: gavin->freebsd-bugs 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Fri Dec 25 21:04:28 UTC 2009 
Responsible-Changed-Why:  
Back into the pool 

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