glabel nor tunefs save my labels
    Roland Smith 
    rsmith at xs4all.nl
       
    Tue May 11 17:40:09 UTC 2010
    
    
  
On Tue, May 11, 2010 at 07:08:40PM +0200, David DEMELIER wrote:
> Thanks for all your answers.
> 
> markand at Melon ~ $ sudo tunefs -p /dev/ad0s1f
<snip>
> tunefs: volume label: (-L)                                 usr
> 
> It's weird, as you can see the label is set but nothing in /dev/label,
> /dev/ufs, /dev/vol !
The labels are removed when the partition is mounted somewhere!
So, you will only see the labels of unmounted partitions/disks in devfs.
See for yourself (commands run on my 8.0-RELEASE-p2 system):
Checking that this partition is labeled;
    # tunefs -p /dev/ad6s1a
    ...
    tunefs: volume label: (-L)                                 rootbk
When it is mounted,
    # mount 
    ...
    /dev/ad6s1a on /mnt/bk/root (ufs, local)
there are no labels:
    # ls /dev/ufs/* /dev/ufsid/*
    ls: No match.
After unmounting
    # umount /dev/ad6s1a
    # ls /dev/ufs/* /dev/ufsid/*
    /dev/ufs/rootbk              /dev/ufsid/482e0880cf225c60
Both the label set with tunefs and the ufsid label appear!
Mount it again and the labels disappear again;
    # mount /mnt/bk/root
    # ls /dev/ufs/* /dev/ufsid/*
    ls: No match.
Hope this helps.
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/20100511/d014cc88/attachment.pgp
    
    
More information about the freebsd-questions
mailing list