Solved How to shrink a partition?

Hi! I have a 96GB parition. I want to resize it at 28GB. I followed the steps on: https://www.freebsd.org/doc/handbook/disks-growing.html , I have disabled the swap partition and then I've used:

sysctl kern.geom.debugflags=16

then:

gpart resize -i 2 -s 28G -a 4k ada0

Then, extremely many errors were displayed in my console (something with space allocation) and then the server restarted - but at this moment my VM doesn't boot correctly (when I say "correctly" I mean I messed up things and now it does not boot at all:'‑( - I do not want to grow the partition, I want to shrink it).

So, do you guys have any ideas how to shrink a volume? Thank you for your time!:beer:
 

Attachments

  • 112.PNG
    112.PNG
    5.5 KB · Views: 119
Back
Top