mirror of
https://github.com/idanoo/m2.nz.git
synced 2024-11-23 00:35:12 +00:00
24 lines
497 B
Markdown
24 lines
497 B
Markdown
---
|
|
title: "Expanding OpnSense root disk (21.7+)"
|
|
tags: ["opnsense", "disk"]
|
|
date: "2024-01-13"
|
|
featuredimagepreview: "/opnsense_expand.jpg"
|
|
---
|
|
|
|
Expanding root partition on OpnSense VM
|
|
|
|
- Expand underlying VM disk
|
|
- Reboot
|
|
- Run below commands to online resize
|
|
- Reboot (Optional?)
|
|
|
|
```shell
|
|
# 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
|
|
``` |