Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2008 01:34:56 +0400 (MSD)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        Marcel Moolenaar <xcllnt@mac.com>
Cc:        freebsd-fs@freebsd.org, marcel@freebsd.org
Subject:   Re: gpt in-place editing
Message-ID:  <alpine.BSF.2.00.0809230132120.5027@woozle.rinet.ru>
In-Reply-To: <10719B6B-1F3B-44C6-BAC0-D8C3F42F7F3F@mac.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 22 Sep 2008, Marcel Moolenaar wrote:

MM> > SS> > is there a way to split existing GPT partition into two, like one
MM> > can do in
MM> > SS> > bsdlabel case?
MM> > SS> >
MM> > SS> > I found myself wanting to shrink swap to have an alternate root, but
MM> > have no
MM> > SS> > luck in my experiments.
MM> > SS> >
MM> > SS> > For the reference, I have
MM> > SS> >
MM> > SS> > da0p1	boot
MM> > SS> > da0p2	bootdisk
MM> > SS> > da0p3	swap
MM> > SS> > da0p4	ZFS
MM> > SS> >
MM> > SS> > and want to place two partitions in place of da0p3...
MM> > SS>
MM> > SS> You can simpy remove the da0p3 partition and add two new instead of
MM> > it.
MM> > 
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)

Thanks.

Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck@FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.0809230132120.5027>