From owner-freebsd-bugs@FreeBSD.ORG Tue Jul 14 04:20:02 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BA90106564A for ; Tue, 14 Jul 2009 04:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2FCDD8FC1A for ; Tue, 14 Jul 2009 04:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n6E4K2dd050313 for ; Tue, 14 Jul 2009 04:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6E4K24U050312; Tue, 14 Jul 2009 04:20:02 GMT (envelope-from gnats) Resent-Date: Tue, 14 Jul 2009 04:20:02 GMT Resent-Message-Id: <200907140420.n6E4K24U050312@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gea-Suan Lin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B12F61065678 for ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: gslin@gslin.org Subject: bin/136733: disklabel handle incorrently X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gea-Suan Lin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 04:20:02 -0000 >Number: 136733 >Category: bin >Synopsis: disklabel 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: >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: >Unformatted: