OPNsense 24.1.5_3-amd64
Please be kind - I'm still very new to linux.
I've managed to work through the first few steps of increasing the size of my boot partition from 8GiB to 20GiB.
gpart show da0
outputs
40 41942960 da0 GPT (20G)
40 532480 1 efi (260M)
532520 1024 2 freebsd-boot (512K)
533544 41409456 3 freebsd-ufs (20G)
Which appears to me to be correct.
However the OPNSense Dashboard still shows an 8GiB volume.
From what I understand, my next step is to run growfs /dev/da0p3
This prompts me to type in "yes" which I do, and then it returns Operation not permitted
How can I fix this? Thank you.
Are you logged in as root? Also you probably need to do this on the console with the system still in single user mode, when the partition is mounted read-only.
P.S. OPNsense isn't Linux. ;)
After trying it on a test VM I got the same error.
root@OPNsense:~ # growfs /dev/ada0p3
It's strongly recommended to make a backup before growing the file system.
OK to grow filesystem on /dev/ada0p3 from 24GB to 29GB? [yes/no] yes
growfs: /dev/ada0p3: Operation not permitted
The internet pointed me to a FreeBSD forum thread "Growing Disks" (https://forums.freebsd.org/threads/growing-disks.76591/).
The solutions was to run:
growfs /dev/gpt/rootfs
root@OPNsense:~ # growfs /dev/gpt/rootfs
Device is mounted read-write; resizing will result in temporary write suspension for /.
It's strongly recommended to make a backup before growing the file system.
OK to grow filesystem on /dev/gpt/rootfs, mounted on /, from 24GB to 29GB? [yes/no] yes
super-block backups (for fsck_ffs -b #) at:
49937664, 51218112, 52498560, 53779008, 55059456, 56339904, 57620352, 58900800, 60181248