Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 2008 15:04:44 -0700
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        Dmitry Morozovsky <marck@rinet.ru>
Cc:        freebsd-fs@freebsd.org, marcel@freebsd.org
Subject:   Re: gpt in-place editing
Message-ID:  <10218E29-D89D-40BB-BACF-9DFB131974E7@mac.com>
In-Reply-To: <alpine.BSF.2.00.0809230132120.5027@woozle.rinet.ru>
References:  <alpine.BSF.2.00.0809170054290.19038@woozle.rinet.ru> <20080921140932.adf51b5e.stas@FreeBSD.org> <alpine.BSF.2.00.0809222202460.94747@woozle.rinet.ru> <10719B6B-1F3B-44C6-BAC0-D8C3F42F7F3F@mac.com> <alpine.BSF.2.00.0809230132120.5027@woozle.rinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sep 22, 2008, at 2:34 PM, Dmitry Morozovsky wrote:

> MM> > It does not seem gpart wants allow me to delete da0p3 while  
> disk is
> MM> > active...
> MM>
> MM> You probably have swapon and/or dumpon to set to the partition.
> MM> You can't remove a partition that is in use.
> MM>
> MM> Run "swapoff /dev/da0p3" and/or "dumpon off" first.
>
> Of course I did run swapoff; I'm not sure I did dumpoff, and  
> unfortunately I
> did not run it under script(1). gpt (I did test under RELENG_7) does  
> the trick,
> but --
>
> However, we clearly have at least one bug: not creating da* device  
> (for da0p5
> in my case)

You can't make that claim. You've forced the issue
by setting debugflags and bypassing gpart. As such,
gpart is unaware of the new partition (it wasn't
involved in the creation) and it isn't being made
aware, because the underlying geom isn't spoiled
(which would trigger a retaste).

-- 
Marcel Moolenaar
xcllnt@mac.com






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10218E29-D89D-40BB-BACF-9DFB131974E7>