From owner-freebsd-bugs@FreeBSD.ORG Thu Jun 7 14:50:01 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F10F816A421 for ; Thu, 7 Jun 2007 14:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id CF1A913C468 for ; Thu, 7 Jun 2007 14:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l57Eo1Hn087780 for ; Thu, 7 Jun 2007 14:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l57Eo1Kb087779; Thu, 7 Jun 2007 14:50:01 GMT (envelope-from gnats) Resent-Date: Thu, 7 Jun 2007 14:50:01 GMT Resent-Message-Id: <200706071450.l57Eo1Kb087779@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, "W.B.Kloke" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3173816A468 for ; Thu, 7 Jun 2007 14:47:01 +0000 (UTC) (envelope-from wb@kloke-witten.dyndns.org) Received: from kloke-witten.dyndns.org (i5387FD7D.versanet.de [83.135.253.125]) by mx1.freebsd.org (Postfix) with ESMTP id 969A813C448 for ; Thu, 7 Jun 2007 14:47:00 +0000 (UTC) (envelope-from wb@kloke-witten.dyndns.org) Received: from wbk4.home (localhost [127.0.0.1]) by kloke-witten.dyndns.org (8.13.8/8.13.8) with ESMTP id l57EXFwu018621 for ; Thu, 7 Jun 2007 16:33:15 +0200 (CEST) (envelope-from wb@wbk4.home) Received: (from wb@localhost) by wbk4.home (8.13.8/8.13.8/Submit) id l57EXEXu018620; Thu, 7 Jun 2007 16:33:14 +0200 (CEST) (envelope-from wb) Message-Id: <200706071433.l57EXEXu018620@wbk4.home> Date: Thu, 7 Jun 2007 16:33:14 +0200 (CEST) From: "W.B.Kloke" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/113456: gpt does not allow changing partition table X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "W.B.Kloke" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 14:50:02 -0000 >Number: 113456 >Category: bin >Synopsis: gpt does not allow changing partition table >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jun 07 14:50:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: W.B.Kloke >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD wbk4 6.2-STABLE FreeBSD 6.2-STABLE #10: Sat Jan 20 22:40:43 CET 2007 wb@wbk1:/usr/src/sys/i386/compile/BRIDGE i386 >Description: GPT partion tables cannot be changed if one of the partions is mounted. Example: bash-2.05b$ gpt -r show ad1 start size index contents 0 1 PMBR 1 1 Pri GPT header 2 32 Pri GPT table 34 45 79 317504 1 GPT part - FreeBSD UFS/UFS2 317583 1000000 2 GPT part - FreeBSD swap 1317583 317520 3 GPT part - FreeBSD UFS/UFS2 1635103 37434977 4 GPT part - FreeBSD UFS/UFS2 39070080 136729215 5 GPT part - Linux/Windows 175799295 214922640 390721935 32 Sec GPT table 390721967 1 Sec GPT header In my case partition 4 is mounted (the rest of the system resides on ad0), and swap space on p2 is active, too. The need for GPT partions arises in my case from two cases of use: 1. multimedia data, i.e. big files, which I want to circumvent the file system 2. arenas for (Plan9) venti file system. >How-To-Repeat: Put a UFS file system on one GPT partition and mount it. Then the gpt utility even refuses to show the table unless -r flag is used. >Fix: Adopt a policy similar to "fdisk -u" or "bsdlabel -e", please. >Release-Note: >Audit-Trail: >Unformatted: