You are not logged in.

#26 2012-08-29 18:54:30

D4ve
Member
Registered: 2012-08-02
Posts: 209

Re: [Solved] mount partition as user

I found out, that nautilus uses gvfs to mount things like ssh, smb, etc.

I'm not sure gvfs handles mounting local partition too, but if i try it, i must enter my password. Maybe nautilus has nothing to do with this and gvfs is the fault?

$ cat /etc/fstab
...
/dev/sdb1	/media/Datengrab	ext4	noauto,users	0	2
$ gvfs-mount -d /dev/sdb1
Mounted /dev/sdb1 at /media/Datengrab

Offline

#27 2012-08-29 19:30:26

bademaister
Member
From: Germany
Registered: 2011-05-31
Posts: 15

Re: [Solved] mount partition as user

Did you try the option mentioned in the last post of this Thread?

https://bbs.archlinux.org/viewtopic.php?id=110701

Offline

#28 2012-08-29 20:23:09

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: [Solved] mount partition as user

Use..... lightweight device mounter..... ldm in the aur ...loads into MEDIA.

Check it out...very easy to set up and run.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#29 2012-08-30 03:50:34

D4ve
Member
Registered: 2012-08-02
Posts: 209

Re: [Solved] mount partition as user

lilsirecho wrote:

Check it out...very easy to set up and run.

As far i understand this, doesn't mount the same?

bademaister wrote:

Did you try the option mentioned in the last post of this Thread?

I just tried it and it didn't change anything.

For safety i did it the other way round (changed from "yes" to "auth_admin_keep") in an parallel installed ubuntu and the behaviour stayed the same.

So i think polkit is not the issue. Maybe udev can help me? I will see...

Offline

#30 2012-08-30 04:17:46

D4ve
Member
Registered: 2012-08-02
Posts: 209

Re: [Solved] mount partition as user

Crap, it's really that easy.

As mentioned in this wiki-article, only setup a new udev-rule and thats it.

So, thanks for your help, i mark this as solved smile

Offline

#31 2012-08-30 04:57:37

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] mount partition as user

Wow, I would have never found that, way to go.  BTW, it is a polkit rule, not udev.  You could possibly classify it as a udisks[2] rule, but it is definitely not a udev rule.

Offline

#32 2012-08-30 05:17:34

D4ve
Member
Registered: 2012-08-02
Posts: 209

Re: [Solved] mount partition as user

WonderWoofy wrote:

BTW, it is a polkit rule, not udev.  You could possibly classify it as a udisks[2] rule, but it is definitely not a udev rule.

Oh, right. Its under /etc/polkit-1/localauthority/50-local.d/, didn't note that.

But why is this in the wiki-article of udev?!

Offline

#33 2012-08-30 05:55:40

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] mount partition as user

I think that udisks is related to udev.  So you are using polkit to grant access to the user to mount partitions with udev's udisks.  But if you look at the rest of that article and the udev rules, the rules are totally different than polkit rules.

Offline

#34 2012-08-31 23:25:07

D4ve
Member
Registered: 2012-08-02
Posts: 209

Re: [Solved] mount partition as user

I coincidentally just found something that is almost a little hack but i think it's a better solution than the polkit-rule:

If you want to automount something if a user requests access to it, this fstab-entry can do it (works only with systemd):

/dev/sdb1	/media/Datengrab	ext4 noauto,comment=systemd.automount	0	2

You can also use it to mount your /boot-partition. It will only be mounted, if you request access to your /boot-folder.

Brilliant, isn't it?

Offline

Board footer

Powered by FluxBB