Udisks2 suddenly wants to mount my 2nd hdd on every login

Hello.

Since this morning I get a pop-up box asking for my root password to mount my 2nd hard disk on every login:

https://i.postimg.cc/bvw7qzZN/Screenshot-20220208-100654.png

I opened Dolphin and made sure that there were no tabs for that drive opened, I thought that might have been the cause.

Here’s some (hopefully) relevant terminal output:


me@Laptop-MSI:~> sudo cat /etc/udisks2/udisks2.conf    
[udisks2] 
# Comma separated list of modules to load. 
# Use asterisk to load all the modules. 
modules=* 
# Valid options are 'ondemand' or 'onstartup'. 
modules_load_preference=ondemand 

[defaults] 
# Valid options are 'luks1' or 'luks2' 
encryption=luks2


me@Laptop-MSI:~> ps uax | grep udisk 
root      2412  0.0  0.1 464968 17468 ?        Ssl  09:23   0:00 /usr/libexec/**udisk**s2/**udisk**sd 
me       3961  0.0  0.0   3772  1908 pts/1    S+   10:00   0:00 grep --color=auto **udisk**

me@Laptop-MSI:~> ps uax | grep polkit 
**polkit**d    949  0.0  0.0 314660 11724 ?        Ssl  09:23   0:00 /usr/libexec/**polkit**-1/**polkit**d --no-debug 
me       2391  0.0  0.4 517644 80020 ?        Sl   09:23   0:01 /usr/lib64/libexec/**polkit**-kde-authentication-agent-1 
root      2555  0.0  0.0  13620  5664 ?        S    09:23   0:00 /usr/libexec/**polkit**-1/**polkit**-agent-helper-1 root 
me       3965  0.0  0.0   3772  2012 pts/1    S+   10:00   0:00 grep --color=auto **polkit**
me@Laptop-MSI:~> 


[FONT=monospace]me@Laptop-MSI:~> ps uax | grep 2352 
me       **2352**  0.0  0.4 1239168 77424 ?       Sl   09:23   0:02 /usr/bin/kded5 
me       4163  0.0  0.0   3772  1916 pts/1    S+   10:08   0:00 grep --color=auto **2352**
me@Laptop-MSI:~> 

[/FONT]
[FONT=monospace][FONT=monospace]me@Laptop-MSI:~> ps uax | grep 2412 
root      **2412**  0.0  0.1 464968 17472 ?        Ssl  09:23   0:00 /usr/libexec/udisks2/udisksd 
me       4592  0.0  0.0   3772  1976 pts/1    S+   10:52   0:00 grep --color=auto **2412**
me@Laptop-MSI:~> 

[/FONT][/FONT]

I did mount that disk yesterday in order to copy a few small files from it, but immediately un-mounted it.

What am I doing wrong?

Thanks.

Sysinfo:

Operating System: openSUSE Tumbleweed 20220204
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.4-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-7700HQ CPU @ 2.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070 with Max-Q Design/PCIe/SSE2

Check your configuration:

karl@erlangen:~> grep -lr nvme0n1 .config/ 
.config/kded_device_automounterrc.save
.config/kded_device_automounterrc
karl@erlangen:~> 
karl@erlangen:~> grep nvme0n1 .config/kded_device_automounterrc 
[Devices][/org/freedesktop/UDisks2/block_devices/[b]nvme0n1p1] 
LastNameSeen=512,0 MiB Internes Laufwerk (**nvme0n1**p1) 
[Devices][/org/freedesktop/UDisks2/block_devices/[b]nvme0n1p2] 
LastNameSeen=1,8 TiB Internes Laufwerk (**nvme0n1**p2) 
karl@erlangen:~> 

Hi Karl, and thanks for your reply.

Here’s what I get:


me@Laptop-MSI:~> grep -lr nvme0n1 .config/                      
.config/kded_device_automounterrc

me@Laptop-MSI:~> grep nvme0n1 .config/kded_device_automounterrc 
[Devices][/org/freedesktop/UDisks2/block_devices/[b]nvme0n1p1] 
[Devices][/org/freedesktop/UDisks2/block_devices/[b]nvme0n1p3] 
[Devices][/org/freedesktop/UDisks2/block_devices/[b]nvme0n1p4] 
LastNameSeen=498.0 MiB Internal Drive (**nvme0n1**p4) 
me@Laptop-MSI:~> 

…and the relevant section:


[Devices][/org/freedesktop/UDisks2/block_devices/nvme0n1p3] 
EverMounted=true 
Icon=drive-harddisk 
LastNameSeen=Basic data partition 
LastSeenMounted=false

At the end of that file is:


[General] 
AutomountEnabled=true

…should I change that to false?

how did you mount it?? using command line or Yast??

If yast you may have made it mount at boot.

Show /etc/fstab

Make the change. It won’t hurt. As another you may move the file. It will be regenerated.

Sorry, been busy with other stuff lately so didn’t get around to replying! I deleted that file and everything is now perfect.
Thanks for the help :).