I'm trying to use resize_ffs with netbsd to increase the size of my partition. I have NetBSD running in a virtual machine, and have expanded the size of the disk, and now wish to grow the partition to match.
The man_page for the tool is here
I am trying to grow a 300mb partition to 1gb.
The tool manpage says that specifiying a size is not mandatory, and that if it is not specified it will grow to use available space (ideal behaviour), however this results in an error saying newsize not known.
I have used various online tools to try and calculate the disk geomtery, but no matter what I try when I pass a number to -s, I get the error 'bad magic number'.
I have been unable to find example of using this tool online.
What is the correct way to use resize_ffs to grow a partition to use available disk space?