Solved Cannot mount in the installer's shell

I tried using FreeBSD 15.1 installer to fix some stuff in the root filesystem.
However, I get:
Code:
# mount /dev/ada1s2a /mnt/
mount: /dev/ada1s2a: Operation not permitted
It's formatted as UFS, I ran fsck on it, no errors found.

Thanks for advises!
 
That's what I did: I used USB stick to boot and selected "shell".
I can mount that partition in Linux in read-only mode.
 
Have you looked at disabling labels on the disk in loader.conf.

kern.geom.label.ufs.enable=0
kern.geom.label.ufsid.enable=0
kern.geom.label.gptid.enable=0
kern.geom.label.gpt.enable=0
kern.geom.label.disk_ident.enable="0"

I bet you cannot mount it because it has a label or is mounted at label name. Checkout your fstab.
 
My bad: ada0 and ada1 where swapped, and I was trying to mount the read-only USB stick partition. In fact, I was able to mount it with explicit -o ro, and realized that's I'm doing a wrong thing.
This a Linode VPS, and "installer" and "production" configurations map disks differently.
 
Back
Top