tunefs -L issue

Roland Smith rsmith at xs4all.nl
Fri Mar 19 19:54:40 UTC 2010


On Fri, Mar 19, 2010 at 12:21:27PM -0700, Steve Franks wrote:
> On Fri, Mar 19, 2010 at 9:57 AM, Roland Smith <rsmith at xs4all.nl> wrote:
> > On Fri, Mar 19, 2010 at 08:02:10AM -0700, Steve Franks wrote:
> >> Wait a second.  What do I have to do, mount single user to find the
> >> darn things?  They have completely disappeared, not even a
> >> 'GEOM_LABEL: Label ufsid/482b3a7c20b36d8c removed' in dmesg! (thought
> >> I was previously seeing that on shutdown, not startup, now neither)
> >
> > The following command looks also in the old messages files;
> >
> >    bzgrep 'Label for.*ufsid' /var/log/messages.* | less
> >
> >> Even in single user mode, root is already mounted, so I'm never going
> >> to find the label for it.  I'm afraid man geom is just leaving me
> >> guessing (see below).  geom label doesn't seem to think I have any
> >> disks...
> >>
> >> Handbook:
> >>
> >> % glabel status
> >>                   Name  Status  Components
> >> ufsid/486b6fc38d330916     N/A  ad4s1d
> >> ufsid/486b6fc16926168e     N/A  ad4s1f
> >>
> >> Local:
> >>
> >> [steve at fyre /usr/home/steve]$ glabel status
> >>           Name  Status  Components
> >> iso9660/WALL_E     N/A  acd0
> >> [steve at fyre /usr/home/steve]$
> >>
> >
> > I don't see anything here either on my system.
> >
> 
> 
> > Doesn't tunefs -L work? (sorry, can't recall the beginning of this thread).
> 
> Apparently, but only in single-user mode.  

According to tunefs(8) you should be able to run it on a filesystem that has
been made read-only.

You can make a mounted filesystem read-only with 'mount -u -r <filesystem>'. 
You can afterwards make it read/write again with 'mount -u -w <filesystem>'. 

> I think my problem is more
> one of documentation.  The handbook is rather obtuse on the subject.
> The inability to even locate or read the labels on a mounted system is
> about as un-POLS as I've come across lately....

The ufsid labels are automatically removed from a filesystem when it is
mounted. So it is not surprising that no ufsid labels are found on a running
system. And IIRC, the automatic ufsid labels are a new feature. The handbook
might be slightly behind the times.
 
Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100319/07397681/attachment.pgp


More information about the freebsd-questions mailing list