Sample Header Ad - 728x90

Increasing disk size on FreeBSD 11.2 (pfSense | ESXi)

5 votes
1 answer
3876 views
I tried to use this link to solve my problem but to no avail; https://unix.stackexchange.com/questions/117023/expanding-the-disk-size-on-pfsense-under-vmware-esxi . I'm using pfSense and I wish to increase the disk drive from 11 GB to 200 GB. Steps followed: 1. View the initial partition sizes:
# gpart show
    =>       63  419430337  da0  MBR  (200G)
             63          1       - free -  (512B)
             64  419430336    1  freebsd  [active]  (200G)
    
    =>        0  419430336  da0s1  BSD  (200G)
              0   23068672      1  freebsd-ufs  (11G)
       23068672    1257472      2  freebsd-ufs  (614M)
       24326144  395104192         - free -  (188G)
2. Resize da0:
# gpart resize -i 1 da0
    da0s1 resized
3. View the new partition sizes:
# gpart show da0
    =>       63  419430337  da0  MBR  (200G)
             63          1       - free -  (512B)
             64  419430336    1  freebsd  [active]  (200G)
4. Tried to edit the value onto the size of c: line and got error message below:
# bsdlabel -e /dev/da0s1
    bsdlabel: cannot open provider /dev/da0s1 for writing label: Operation not permitted
    bsdlabel: Try to use gpart(8).
    re-edit the label? [y]:
Please advise. I also want to increase the swap to 20 GB.
Asked by Contractor (51 rep)
Nov 29, 2019, 10:38 PM
Last activity: Jan 23, 2025, 11:04 PM