Date: Mon, 22 Sep 2008 13:23:16 -0700 From: Marcel Moolenaar <xcllnt@mac.com> To: Dmitry Morozovsky <marck@rinet.ru> Cc: Stanislav Sedov <stas@FreeBSD.org>, freebsd-fs@FreeBSD.org, marcel@FreeBSD.org Subject: Re: gpt in-place editing Message-ID: <10719B6B-1F3B-44C6-BAC0-D8C3F42F7F3F@mac.com> In-Reply-To: <alpine.BSF.2.00.0809222202460.94747@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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 22, 2008, at 11:12 AM, Dmitry Morozovsky wrote: > On Sun, 21 Sep 2008, Stanislav Sedov wrote: > > SS> > is there a way to split existing GPT partition into two, like > one can do in > SS> > bsdlabel case? > SS> > > SS> > I found myself wanting to shrink swap to have an alternate > root, but have no > SS> > luck in my experiments. > SS> > > SS> > For the reference, I have > SS> > > SS> > da0p1 boot > SS> > da0p2 bootdisk > SS> > da0p3 swap > SS> > da0p4 ZFS > SS> > > SS> > and want to place two partitions in place of da0p3... > SS> > SS> You can simpy remove the da0p3 partition and add two new instead > of it. > > It does not seem gpart wants allow me to delete da0p3 while disk is > active... You probably have swapon and/or dumpon to set to the partition. You can't remove a partition that is in use. Run "swapoff /dev/da0p3" and/or "dumpon off" first. FYI, -- Marcel Moolenaar xcllnt@mac.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10719B6B-1F3B-44C6-BAC0-D8C3F42F7F3F>