On Wed, 27 Mar 2019 19:19:04 +0000, A. Dumas wrote:
> Chris Elvidge wrote:
>> Have you tried basename $(readlink /dev/disk/by-label/LABEL)
>
> Nice. Safer, get the whole name: readlink -e /dev/disk/by-label/LABEL
Used in tonight's backup (after commandline test, natch) instead of the
original suggestion.
A quick search shows how and when /dev/disk/by-label gets populated with
symlinks, though not how or why they get discarded.
--
Martin | martin at
Gregorie | gregorie dot org
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|