On 05.11.18 19:47, David Higgs wrote:
> I read both the FAQ section and the growfs(8) man page but I am not
> yet confident that what I want to do is supported / safe.
> 
> http://www.openbsd.org/faq/faq14.html#GrowPartition
> 
> I started with a number of partitions and a bunch of free space.  I
> later needed the free space and allocated a /project partition that
> went to the end of my disk.  More recently, I emptied the /data
> partition immediately prior.  Now I would like to use growfs(8) to
> merge this unused space with the /project partition without losing any
> of the existing data.
> 
> See disklabel output below.  I have only grown partitions "down",
> never in the other direction.  Am I being overly paranoid?
> 
> Thanks.
> 
> --david
> 

As the FAQ entry states, you can use growfs(8) if the empty space
is after the existing partition, not prior. You can only grow a
partition "down", never "up". What you want to do would require the
following steps:

1. Create a new partition on the free space
2. Move all data to the new partition
3. Remove the existing /project partition
4. Use growfs(8) on the new partition to include the space from the old
   /project partition

Cheers,
Bruno

Reply via email to