1

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

https://netbsd.gw.com/cgi-bin/man-cgi?resize_ffs+8+NetBSD-7.0

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?

  • I'm not very familiar with NetBSD, but it seems to me that resize_ffs is the tool for resizing the filesystem within the partition. You'll probably first have to use some disk partitioning tool to increase the size of the partition, and then resize_ffs to make the filesystem use the new capacity within the partition. – telcoM Aug 11 at 8:07
  • Ah, that of course makes sense! However, after expanding the partition with fdisk, I get exactly the same errors when trying to use the tool – Jake Rankin Aug 11 at 8:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.