On Wednesday, 10 June 2020 07:59:19 BST Dale wrote:
> Howdy,
> 
> Same topic just new question.  I use KDE and am wanting to have it so
> the Device Notifier will allow me to mount the drive when I turn it on. 

I probably missed in earlier threads, but is this is an externally powered USB 
device?


> So far, I got it set up and when I turn the drive on and click for it to
> mount it, it asks me for a password.

Where do you "click for it"?


> I type in the password but it mounts it to the wrong place.  

Please define "wrong place".


> If I do it on the command line, it works  as expected.  

What is expected?


> I have it set up in dmcrypt and fstab.  So, command line
> works, KDE's Device Notifier doesn't.

For the avoidance of doubt:

"command line" = /bin/mount

"KDE's Device Notifier" = /usr/bin/udisksctl

There is a difference between the two:

$ ls -la /bin/mount
-rws--x--x 1 root root 56360 May 11 00:25 /bin/mount

$ ls -la /usr/bin/udisksctl 
-rwxr-xr-x 1 root root 60496 Nov 23  2019 /usr/bin/udisksctl


You run mount as root with temporarily elevated privileges and operate on 
devices directly via the kernel, but can only mount such block devices if they 
have a corresponding /etc/fstab entry - unless you are root.

You run udisksctl as plain user - it is a userspace command which operates on 
the udisks daemon to manipulate mountable devices via D-Bus.  The default 
mountpoint by udisksctl is under /run/media/<user_name>/LABEL


> It tells me I don't have
> permission to access but it also mounts it in the wrong place.  I
> suspect it mounting it in the wrong place leads to the permissions
> error.  It mounts under /run.  I want it mounted under /home.

You may be able to achieve this via udev rules for the specific UUID of the 
disk, or perhaps via a symlink from /home to the /run mountpoint.  I haven't 
tested this, but you could give it a spin and see what you get.

PS. You can ignore my earlier questions, no need to answer them.  The 
structure of your message was perhaps back to front to assist my 
understanding.  :-)

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to