Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3627

Beginners Questions • Re: [Solved] how to mount external disk from cli (was "What commands does Thunar use to mount drives?")

$
0
0
To retrieve the device file path that provides access to the file system labeled BACKUP :

Code:

device=$(lsblk -noPATH -Q'LABEL=="BACKUP"')
The same, but with long option names:

Code:

device=$(lsblk --noheadings --output PATH --filter 'LABEL == "BACKUP"')

Statistics: Posted by itmicp — 2026-01-11 11:58



Viewing all articles
Browse latest Browse all 3627

Trending Articles