gpt in-place editing

Marcel Moolenaar xcllnt at mac.com
Mon Sep 22 21:23:49 UTC 2008


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 at mac.com





More information about the freebsd-fs mailing list