On Friday, March 25, 2011 09:56:19 pm Kevin J. Cummings wrote:
> But, the version of mlabel that Fedora provides does *not* support the
> -i flag that the posted solution says to use.  Perhaps the -i flag is an
> Ubuntu only extension to their version of mlabel?
> 
> So Aaron is right, the posted solution is not useful to Fedora users.

Sorry, please read the full relevant manual section at:
http://www.gnu.org/software/mtools/manual/mtools.html#SEC5

Then try the '-i' option; no, it doesn't show up in the man page, but that's 
because it's a GNU program stuck on texinfo instead of man pages.

Repeating: for *many* GNU-originated packages the man pages are incomplete, and 
you must use the texinfo manual. Or you will be using outdated, unmaintained, 
documentation since the man pages aren't well maintained, since the primary 
docs for those packages are in texinfo format.

Or to demonstrate:
[root@localhost ~]# uname -r
2.6.35.11-83.fc14.x86_64
[root@localhost ~]# rpm -q mtools
mtools-4.0.13-2.fc14.x86_64
[root@localhost ~]# mlabel --help
Mtools version 4.0.13, dated February 28th, 2010
Usage: mlabel [-vscVn] [-N serial] drive:
[root@localhost ~]# mlabel -i /dev/sdc1 -s ::
 Volume has no label
[root@localhost ~]# which dosfslabel
/sbin/dosfslabel
[root@localhost ~]# dosfslabel /dev/sdc1
FEDORA     
[root@localhost ~]#

Note that the label seen and manipulated by dosfslabel is the one that F14 is 
using for the mount point:
[root@localhost ~]# mount
[snip]
/dev/sdc1 on /media/FEDORA type vfat 
(rw,nosuid,nodev,uid=501,utf8,shortname=mixed,flush)
[root@localhost ~]# 

So the answer for the OP: use dosfslabel since it seems to really change the 
label that F14 is using.  The mlabel utility, while it seems to be doing the 
proper thing with -i, isn't picking up the proper label.

Good grief, guys, check your facts before posting that the version the poster 
is using isn't in F14.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Reply via email to