[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: udev keeps device label - BUG?

On Mon, Mar 07, 2011 at 08:05:22PM +0100, Hans-J. Ullrich wrote:
> > Labels and UUIDs are stored only on the filesystems they come from and
> > in the blkid cache in /etc/blkid.tab.  That cache is cleared and
> > regenerated whenever you reboot.  You can do this at any time by
> > running:
> > 
> >     blkid -c /dev/null -w /etc/blkid.tab
> > 
> > udev does not have a database of its own; it uses blkid to look up
> > labels and UUIDs.
> > 
> > FAT filesystems actually have 2 labels, and not every tool writes to
> > both of them.  Looking at the code, I think mlabel tries to do so, but
> > it might not be reliable.  Try using dosfslabel instead, as I fixed that
> > a little while ago and am confident that it does the right thing.
> > 
> > Ben.
> Hi Ben, 
> I tried, as you adviced me, but I got no success. I used your commands, but 
> this did not help. The strange thing is: if I create a new label, it is 
> recognized with the new label. But when I delete the new label using mlabel -i 
> /dev/sdb1, then the old label is again there.

Try dosfslabel instead of mlabel.  If that works, report a bug in
mtools.  If not... I don't know.


Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
                                                              - Albert Camus

Reply to: