Hi Peter, all,
Am 17.12.2025 um 14:56 schrieb [email protected]:
Arno & all,
From: Arno Lehmann <[email protected]>
Date: Wed, 17 Dec 2025 01:48:16 +0100
So, my question is -- which sort of thing identified by UUIDs are
you interested in?
In a bash script, check that a USB store is connected before trying to
mount it.
Also, I believe that a better question would actually be "what
problem are you trying to solve?"
If connected, then try to mount it. Otherwise notify that it is not
available.
Ok, in that case, something along the lines of
lsblk -o KNAME,UUID,PTUUID,PARTLABEL,PTTYPE,LABEL | grep <whatever>
might be a decent way. Checking return code, of course.
Although I'd personally prefer using proper udev rules and a predictable
mount point plus a file system identifier, but that would require
preparation outside your script.
Cheers,
Arno
Thanks, ... P.
--
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück