From owner-freebsd-fs@FreeBSD.ORG Mon Sep 22 18:17:31 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BB301065671; Mon, 22 Sep 2008 18:17:31 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id EEB518FC1B; Mon, 22 Sep 2008 18:17:30 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.2/8.14.2) with ESMTP id m8MIHTHL001942; Mon, 22 Sep 2008 22:17:29 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Mon, 22 Sep 2008 22:17:29 +0400 (MSD) From: Dmitry Morozovsky To: Stanislav Sedov In-Reply-To: Message-ID: References: <20080921140932.adf51b5e.stas@FreeBSD.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (woozle.rinet.ru [0.0.0.0]); Mon, 22 Sep 2008 22:17:29 +0400 (MSD) Cc: freebsd-fs@freebsd.org, marcel@freebsd.org Subject: Re: gpt in-place editing X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2008 18:17:31 -0000 On Mon, 22 Sep 2008, Dmitry Morozovsky wrote: [snip] DM> BUT - DM> DM> system missed part 5: DM> DM> root@beaver:/# gpt show da0 DM> start size index contents DM> 0 1 PMBR DM> 1 1 Pri GPT header DM> 2 32 Pri GPT table DM> 34 128 1 GPT part - FreeBSD boot DM> 162 1048576 2 GPT part - FreeBSD UFS/UFS2 DM> 1048738 1048576 3 GPT part - FreeBSD UFS/UFS2 DM> 2097314 32505856 5 GPT part - FreeBSD swap DM> 34603170 4359862077 4 GPT part - FreeBSD ZFS DM> 4394465247 32 Sec GPT table DM> 4394465279 1 Sec GPT header DM> root@beaver:/# gpart show DM> => 34 4394465213 da0 GPT (2.2TB) DM> 34 128 1 freebsd-boot (65.5KB) DM> 162 1048576 2 freebsd-ufs (536.9MB) DM> 1048738 33554432 3 freebsd-swap (17.2GB) DM> 34603170 4359862077 4 freebsd-zfs (2.2TB) DM> DM> root@beaver:/# ls /dev/da0* DM> /dev/da0 /dev/da0p1 /dev/da0p2 /dev/da0p3 /dev/da0p4 Small followup: Reboot does fix the problem, surely: marck@beaver:~> gpt -r show da0 start size index contents 0 1 PMBR 1 1 Pri GPT header 2 32 Pri GPT table 34 128 1 GPT part - FreeBSD boot 162 1048576 2 GPT part - FreeBSD UFS/UFS2 1048738 1048576 3 GPT part - FreeBSD UFS/UFS2 2097314 32505856 5 GPT part - FreeBSD swap 34603170 4359862077 4 GPT part - FreeBSD ZFS 4394465247 32 Sec GPT table 4394465279 1 Sec GPT header marck@beaver:~> gpart show => 34 4394465213 da0 GPT (2.2TB) 34 128 1 freebsd-boot (65.5KB) 162 1048576 2 freebsd-ufs (536.9MB) 1048738 1048576 3 freebsd-ufs (536.9MB) 2097314 32505856 5 freebsd-swap (16.6GB) 34603170 4359862077 4 freebsd-zfs (2.2TB) Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------