Re: Linux & FAT32 label

From: Pali RohÃr
Date: Mon Oct 30 2017 - 11:29:16 EST


On Monday 16 October 2017 09:28:45 Pali RohÃr wrote:
> On Monday 16 October 2017 03:12:43 Andreas Bombe wrote:
> > The other thing is completely ignoring the boot sector label, which I
> > could have as a mode enabled by command line switch or environmental
> > variable, or just outright make it the default. I'm not decided yet.
> >
> > Another problem is whether to also ignore boot sector on setting label.
> > Otherwise the sequence:
> > "set label on Linux" (both root and boot)
> > "change label on Windows" (root label is changed)
> > "remove label on Windows" (root label is deleted)
> > "view label on Linux" (no root label, use boot label)
> > resurrects an old label.
>
> There is also mlabel tool which is heavily used (e.g. by gparted GUI
> application) and when setting new label it stores it to both location.
>
> And because gparted is used on Linux, such situation as described above
> can still happen.

Another option is to completely ignore label from the boot sector when
reading label.

And maybe it can be a good idea to synchronize labels in boot sector and
root directory in fsck.fat. When differs in interactive mode it can ask
user if label from root directory should be copied to boot sector or
from boot sector to root directory.

--
Pali RohÃr
pali.rohar@xxxxxxxxx