[Discuss] Mounting USB drives

John Blomfield jabfield at shaw.ca
Tue Aug 15 09:28:13 PDT 2017


I don't know anyone is still out there but I have a question. I have 
been running a program, for a number of years, that backs up my data on 
a daily and weekly basis, which I wrote in Qt C++. The weekly data goes 
onto a USB hard drive. The program reminds me to plug in the drive each 
week. Once a month I rotate drives through my off site safe deposit box.

The USB weekly drive is mounted on /mnt/weekly and my program using 
kdesu requests root password to to this. This worked for years and I am 
aware of all the risks associated with running GUI's as root. The latest 
KDE plasma desktop now blocks running GUI's as root! There is a great 
outcry about this and it is likely that this block will be reversed soon.

However, as a work around that does not involve opening a terminal and 
mounting the drive with command line, I have taken advantage of the fact 
that when you plug in a USB drive KDE pops up an option to open the 
drive in the File Manager and clicking automatically mounts it on 
/run/media/john/NAMEOFDRIVE (without asking for root password). So I 
modified my program to look for the drive there instead of /mnt/weekly.

My questing is, is it possible to make KDE change the automatic mount 
point from  /run/media/john/NAMEOFDRIVE to /mnt/weekly? Also how does 
KDE mount it without asking for root password in this case?

For unrelated reasons I am now using Fedora 26 KDE not OpenSuse KDE.

John

-- 
John Blomfield
Delivered by Thunderbird Email on Linux OpenSuse-KDE4






More information about the Discuss mailing list