TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: A. DUMAS
from: MARTIN GREGORIE
date: 2019-03-27 19:56:00
subject: Re: Mounting USB drives v

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)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.