tunefs on a mounted file system?

From: Ivan Voras <ivoras_at_fer.hr>
Date: Tue, 20 Mar 2007 19:19:51 +0100
According to the man page, tunefs should work on a mounted file system
if it's downgraded to read-only. But, it doesn't work:

vir7:/home/ivoras# mount -u -o ro /
vir7:/home/ivoras# mount
/dev/ad0s1a on / (ufs, local, read-only)
devfs on /dev (devfs, local)
vir7:/home/ivoras# tunefs -n enable /
tunefs: soft updates set
tunefs: /dev/ad0s1a: failed to write superblock

I've set kern.geom.debugflags to 16 but it still doesn't work.

I think this may have something to do with GEOM access modes:

vir7:/home/ivoras# geom disk list
Geom name: ad0
Providers:
1. Name: ad0
   Mediasize: 8589934592 (8.0G)
   Sectorsize: 512
   Mode: r2w1e3
   fwsectors: 63
   fwheads: 15

I don't know where do the one writer and three exclusive users come
from. Any ideas where to dig?


Received on Tue Mar 20 2007 - 17:21:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:06 UTC