The thing about /dev/sd[a-z][0-9] and older ata /dev/hd[a-z][0-9] as well
as NVMe and USB device names is that they are controller, port and/or
plug-in order dependent.

If you have bunch of drives connected to any of these interfaces at boot
time. They are enumerated by controller/port/partition order. If you mix
them up you get different device names - thus - if you can still boot from
the mixed up drives - you end up with wrong drives mounted to wrong mount
points.

Some times adding internal hard drive, depending on controller/port order
can mess things up spectacularly.

Well, this can get much more "interesting" with the external USB devices.
Example: You have external backup drive connect to USB host root 0, port 0
and it always shows up as /dev/sdc. Then you get new computer plug it to
usb3 port which can be USB host root 2, port 2 and some times you will get
/dev/sdc, some times even /dev/sdf depending what you have plugged in,
where and when.

Add to this - making USB copy by dd or disk cloning - which will create
above mentioned mount point conflict and broken/stale file handle in
/media/$USER/ and you have perfect recipe for perpetual, randomly repeating
"entertainment" for years to come.

And did I mentioned systemd yet?
Or external enclosures with port multiplyers and SAS/SATA switches or scsi
emulation?

This is obviously very difficult to diagnose and trouble shoot over the
email.

So, I believe that for many reasons, using UUIDs to mount stuff is
pragmatic choice for better life satisfaction.

Hope this helps someone,
Tomas

On Mon, Oct 21, 2019, 19:35 wes <[email protected]> wrote:

> /media is managed by the GUI. the GUI reads the volume name when it's
> connected, and mounts it on /media/[username]/[volume name]. If there is
> already something there, you will end up with a second filesystem mounted
> on the same mount point.
>
> It's not a problem.... until it is.
>
> -wes
>
> On Mon, Oct 21, 2019 at 3:08 PM John Jason Jordan <[email protected]> wrote:
>
> > On Mon, 21 Oct 2019 08:45:20 -0700
> > Ben Koenig <[email protected]> dijo:
> >
> > >There is a sequence of steps used to troubleshoot a given issue.
> > >Sometimes when running through these steps, you may appear to have
> > >"fixed" the problem, when all you did was poke it to do what you
> > >wanted. A good example is one of the Ubuntu users on this thread who
> > >has mounts his USB drives in /media. It's a bad thing to do, but since
> > >it appears to work when he sets it up, he never stops to think that it
> > >might cause problems later.
> >
> > What later problems might this cause?
> > _______________________________________________
> > PLUG mailing list
> > [email protected]
> > http://lists.pdxlinux.org/mailman/listinfo/plug
> >
> _______________________________________________
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to