marietto So,do you have a good tutorial where I can learn how to resize (shrink) the space occupied by NetBSD ? I imagine that it's not so easy.
Not a tutorial, but I'd do it this way:
$ gpt show wd* #replace the asterisk with the relevant disk
Look for the number of the root NetBSD partition (usually '1').
$ gpt resizedisk -s *g wd* #replace the first asterisk with the desired size in Gb.
Time to resize the root partition:
$ gpt resize -i * -a 4k -s *g wd* #replace the first asterisk with the number of the root partition
This will work only as long as there's enough free space after the partition. If needed, first delete the swap with
Finally grow the FFSv2 filesystem inside the resized partition:
$ resize_ffs -pv /dev/dk* #replace the asterisk with the correct wedge