Automount needs Authentication

Questions about Grub, the liveCD and the installer
Forum rules
Before you post please read this

Automount needs Authentication

Postby Lugh on Thu Sep 06, 2012 12:26 pm

I'm running LMDE Xfce with KDE installed. I had my data storage drive start to go bad. So I replaced it and restored the data. I have it working fine so I can see it in Dolphin, but it isn't automounting on startup. I'm not sure what I have wrong. When I click on it in Dolphin it requires authentication, but mounts fine. Somehow I had the old one mounting at startup without authentication.

Here's my fstab:


# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda2
UUID=94984126-a1ec-44f1-98fe-938e4da9f8ef / ext4 rw,errors=remount-ro 0 1
# /dev/sda3
UUID=dd95db99-da65-470b-a536-543ad260b657 swap swap sw 0 0
# /dev/sdb1
UUID=131bec2f-70b5-4db6-8a06-c6b8f6b80295 /media/Library ext4 rw,suid,dev,exec,auto,user,async 0 0


/dev/sdb1 is the one in question. It may be a permission thing, but I'm not sure what I need where.

Thanks,
Clyde
Lugh
Level 1
Level 1
 
Posts: 43
Joined: Mon Oct 03, 2011 12:35 pm

Linux Mint is funded by ads and donations.
 

Re: Automount needs Authentication

Postby Brian49 on Fri Sep 07, 2012 6:50 am

On my LMDE system, authentication is handled by the PolicyKit agent. If that is installed and active on your system, it could be the answer.

Try looking for this file, and if it exists, edit it as root:

/usr/share/polkit-1/actions/org.freedesktop.udisks.policy

Find the section of the file contents which starts with the line "Authentication is required to mount the device"

then a few lines further on, change the "<allow_active>" entry to read:

<allow_active>yes</allow_active>

This should result in storage drives mounting without authentication. You may have to reboot for the change to take effect.

If your system doesn't use PolicyKit, then I'm afraid I have no other suggestions.
Brian49
Level 5
Level 5
 
Posts: 610
Joined: Thu Oct 29, 2009 2:27 pm

Re: Automount needs Authentication

Postby altair4 on Fri Sep 07, 2012 7:03 am

If I take your post literally, you had this line in fstab before the drive went bad:
UUID=131bec2f-70b5-4db6-8a06-c6b8f6b80295 /media/Library ext4 rw,suid,dev,exec,auto,user,async 0 0

Then you replaced the drive but you never stated if you updated fstab.

Run the following command to see if the UUID number of the new partition matches the one you have in fstab:
Code: Select all
sudo blkid -c /dev/null
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6054
Joined: Tue Feb 03, 2009 10:27 am

Re: Automount needs Authentication

Postby Lugh on Fri Sep 07, 2012 10:59 am

altair4, I did update the UUID as one of the first things.

Brian49, my system does have PolicyKit installed. I didn't know that. I found and edited the file to allow "yes" for both the "Mount a device" and "Mount a system-internal device" sections. Alas, it didn't make any difference. I don't know if my system is actually using PolicyKit.

I suppose that's one of things to deal with with a hybrid system - is Xfce or KDE controlling that? For example, KDE System Setting seems to control everything except the printer settings. That has to be configured in Xfce.

BTW, this problem is only after I boot. Once I login, open that drive, and authenticate. It will stay authenticated even after logging in and out. That's true no matter what users I log in and out as. So, it isn't very annoying. However, I do reboot once a week for image backups.

Thanks,
Clyde
Lugh
Level 1
Level 1
 
Posts: 43
Joined: Mon Oct 03, 2011 12:35 pm

[SOLVED] Automount needs Authentication

Postby Lugh on Thu Sep 13, 2012 10:37 am

Well, kind of "solved".

I found out that it was that particular hard drive. I changed hard drives without changing anything else and that one auto authenticates just fine. I don't know why, but that's the truth. I wonder if that drive is starting to die, but not sure why that would matter either.

Clyde
Lugh
Level 1
Level 1
 
Posts: 43
Joined: Mon Oct 03, 2011 12:35 pm


Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 5 guests