Web lists-archives.com

Re: "Invalid arch-independent ELF magic" in grub after SSD migration

Hash: SHA1

On Thu, Feb 23, 2017 at 10:45:55AM -0500, Stefan Monnier wrote:
> > among others "same UUID" (I know, I know), so no need to change fstab.
> Yuck!  I recommend you stay away from UUIDs in your fstab.  Instead name
> your partitions.

Agree -- only in half. I think those are different things and are thus
to be used differently.

For "permanently" or "semipermanently" mounted things, label/name
is a good match. For travelling things, where you want to avoid
inadvertent collissions, UUID might be better (you might argue that
in this case the UUID shouldn't be in the fstab in the first place;
but using the UUID to "recognize" the partition is here the right
thing to do).


> Of course, you may say that I just traded managing UUIDs against
> managing names, but in my experience it's simpler, more upfront, and
> intuitive, so I'm never caught off-guard.

I may, but I won't say :-)

For partitions which don't move much (and that's almost surely the
set in fstab) we are in violent agreement. Still you might want to
have an "errant disk" in the fstab (the proverbial back-up USB
drive which comes and goes): then I would definitely use UUID, to
avoid dumping my backups to the wrong drive. But then, this one
perhaps wouldn't be documented in fstab.

- -- tomás
Version: GnuPG v1.4.12 (GNU/Linux)