You are not logged in.

#1 2025-11-10 10:18

5k18a
Member
From: Wroclaw
Registered: 2022-09-10
Posts: 13
Website

Help with automatic disk mounting without password monitoring.

I’ve been using Q4OS for many years and recently installed it on a new computer. However, I’ve encountered an issue with mounting one of my internal drives. After every reboot, the system asks me for a password when I try to mount the drive.

On my previous computer running Q4OS, the same drive always mounted automatically - I just clicked on it in the file manager, and it mounted without any password prompt. I’ve tried adjusting the settings to restore this behavior, but I haven’t been successful. Could you please help me configure the system so that the drive mounts automatically without asking for a password each time?

Edit: I tried many times and now I get the solution after posting this thread. I can't delete it but I will paste the solution (for sudo group users):

create a file in: /etc/polkit-1/rules.d/49-udisks-noauth.rules

paste in it:

polkit.addRule(function(action, subject) {
    if (!subject.active || !subject.local || !subject.isInGroup("sudo")) return;
    switch (action.id) {
    case "org.freedesktop.udisks2.filesystem-mount":
    case "org.freedesktop.udisks2.filesystem-mount-system":
    return polkit.Result.YES;
   }
});

I think that it is just a work around this problem, perhaps there is other better solution for that?

Last edited by 5k18a (2025-11-10 10:39)

Offline

#2 2025-11-10 11:28

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,107
Website

Re: Help with automatic disk mounting without password monitoring.

Thanks for sharing the solution. We can only add, any solution for Debian will work on Q4OS too.

Offline

#3 2025-11-10 11:43

5k18a
Member
From: Wroclaw
Registered: 2022-09-10
Posts: 13
Website

Re: Help with automatic disk mounting without password monitoring.

Yes, I know that, but some older versions of Q4OS had it working out of the box. My old PC is still running an installation from around 2021, and I didn’t add anything to make it work. I also checked whether I had a similar entry in /etc/polkit-1/rules.d/, but the directory is empty – so there must have been some other mechanism that made it work without any manual configuration.

Offline

Board footer

Powered by FluxBB