Autor: fsmithred Data: Para: dng Assunto: Re: [DNG] For all you automounter programmers
On 04/27/2016 08:28 PM, fsmithred wrote: >
> You could get the label from lsblk, do 'pmount label' and it will be
> mounted at /media/label. Every time you plug in a thumb drive labeled
> backup, it'll go to the same place. If you unmount the drive, /media/label
> will no longer exist, so you could even have the backup script check to
> make sure it's there.
>
> -fsr
>
Correction - Only root can get the label from lsblk. User can get the
label from '/sbin/blkid -s LABEL', but only after root has run blkid at
least once. Other than that, I've now got a script that will handle the
labels... sometimes.