Thanks for the help. Pretty sure my home use is even lighter than yours. 4GB looks fine.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menulast pid: 58271; load averages: 0.15, 0.19, 0.21 up 0+02:59:52 19:33:53
65 processes: 1 running, 64 sleeping
CPU: 0.8% user, 0.0% nice, 0.1% system, 0.4% interrupt, 98.8% idle
Mem: 202M Active, 2333M Inact, 467M Laundry, 610M Wired, 393M Buf, 290M Free
ARC:
Swap: 9979M Total, 2063M Used, 7916M Free, 20% InuseQuote from: Patrick M. Hausen on January 26, 2026, 11:31:24 AM@gmartin but do not (!) just go ahead and remove the swap partition, then use the procedure outlined by @Maurice. This will lead to a system with no swap at all. Bad idea.Quoteroot@oprouter:~ # gpart show
=> 40 113246128 da0 GPT (54G)
40 532480 1 efi (260M)
532520 1024 2 freebsd-boot (512K)
533544 49798144 3 freebsd-ufs (24G)
50331688 16777136 4 freebsd-swap (8.0G)
67108824 46137344 - free - (22G)
So from the top of my head without any guarantee it will work - go step by step and check the results before proceeding to the next one, please:# make sure secondary GPT header is present
gpart recover da0
# disable swap - take note of the device name, e.g. "/dev/da0p4" or "/dev/gpt/swap"
swapoff -a
# remove swap partition
gpart delete -i 4 da0
# resize UFS partition
gpart resize -i 3 -s 36g da0
# recreate swap partiton - if the device in the first step was "/dev/da0p4" use this:
gpart add -i 4 -t freebsd-swap da0
# recreate swap partition - if the device in the first step was "/dev/gpt/SOMELABEL" use this:
gpart add -i 4 -t freebsd-swap -l SOMELABEL da0
# re-enable swap
swapon -a
If that worked you should have a system with 8 G of swap like before and a resized UFS partition. The last step is to resize the UFS proper.
Connect a console and reboot into single user mode. Do not mount the root partition read/write, just leave it read only (this is the normal state after entering single user mode).fsck -y /
growfs /
df
shutdown -r now
HTH,
Patrick
swapoff -a failed with a "cannot allocste memory" error. I added memory to the vm and rebooted - then ran swapoff immediately. root@oprouter:~ # gpart show
=> 40 113246128 da0 GPT (54G)
40 532480 1 efi (260M)
532520 1024 2 freebsd-boot (512K)
533544 96468992 3 freebsd-ufs (46G)
97002536 16243632 4 freebsd-swap (7.7G)
root@oprouter:~ # df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/gpt/rootfs 46707100 11819180 31151352 28% /
devfs 1 0 1 0% /dev
/dev/gpt/efifs 266144 1360 264784 1% /boot/efi
devfs 1 0 1 0% /var/dhcpd/dev
devfs 1 0 1 0% /var/unbound/dev
/usr/local/lib/python3.11 46707100 11819180 31151352 28% /var/unbound/usr/local/lib/python3.11
/lib 46707100 11819180 31151352 28% /var/unbound/lib
root@oprouter:~ # df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/gpt/rootfs 23G 11G 10G 50% /
devfs 1.0K 0B 1.0K 0% /dev
/dev/gpt/efifs 260M 1.3M 259M 1% /boot/efi
devfs 1.0K 0B 1.0K 0% /var/dhcpd/dev
devfs 1.0K 0B 1.0K 0% /var/unbound/dev
/usr/local/lib/python3.11 23G 11G 10G 50% /var/unbound/usr/local/lib/python3.11
/lib 23G 11G 10G 50% /var/unbound/libroot@oprouter:~ # gpart show
=> 40 113246128 da0 GPT (54G)
40 532480 1 efi (260M)
532520 1024 2 freebsd-boot (512K)
533544 49798144 3 freebsd-ufs (24G)
50331688 16777136 4 freebsd-swap (8.0G)
67108824 46137344 - free - (22G)