m2.nz/content/posts/expand_opnsense_root_disk.md
2023-08-19 14:41:38 +12:00

498 B

title date draft featuredimagepreview
Expanding OpnSense root disk (21.7+) 2023-08-19T14:36:30+12:00 false /opnsense_expand.jpg

Expanding root partition on OpnSense VM

  • Expand underlying VM disk
  • Reboot
  • Run below commands to online resize
  • Reboot for good luck
# View the layout
gpart show
# Resolve GPT issue before extending
gpart recover da0
# Make it use all the new space
gpart resize -i 3 da0
# Grow the FS to fill the new partition
growfs /dev/gpt/rootfs