OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 24.1 Legacy Series »
  • "Operation not permitted" when using growfs
« previous next »
  • Print
Pages: [1]

Author Topic: "Operation not permitted" when using growfs  (Read 1141 times)

Tatariushi

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
"Operation not permitted" when using growfs
« on: April 15, 2024, 05:10:45 am »
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.

Code: [Select]
gpart show da0 outputs
Code: [Select]
    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
Code: [Select]
growfs /dev/da0p3This prompts me to type in "yes" which I do, and then it returns
Code: [Select]
Operation not permitted
How can I fix this?  Thank you.
Logged

Patrick M. Hausen

  • Hero Member
  • *****
  • Posts: 6925
  • Karma: 583
    • View Profile
Re: "Operation not permitted" when using growfs
« Reply #1 on: April 15, 2024, 07:49:18 am »
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.  ;)
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

patient0

  • Newbie
  • *
  • Posts: 30
  • Karma: 0
    • View Profile
Re: "Operation not permitted" when using growfs
« Reply #2 on: April 15, 2024, 08:02:29 am »
After trying it on a test VM I got the same error.

Code: [Select]
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".

The solutions was to run:
Code: [Select]
growfs /dev/gpt/rootfs
Code: [Select]
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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 24.1 Legacy Series »
  • "Operation not permitted" when using growfs
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2