You are not logged in.

#1 2010-08-06 12:04:14

liorc666
Member
Registered: 2009-03-28
Posts: 11

Auto mounting not allowed

Hey , I am trying to automount the windows partition
I am using gnome and my system is up to date

/dev/sdX /media/location ntfs-3g auto,rw,user 0 0
adding such lines to /etc/fstab would not work as ntfs-3g quit with error (cannot mount when not root ..):
(adding umask and users group to options will not do the trick either)

I've changed the /usr/share/polkit-1/actions/org.freedesktop.udisks.policy file to be able to click-mount from the gnome nautilus file browser.
yet when the I log in the volumes are not mounted automatically.
udev rules from the wiki is not working either.
and I cant get HAL to do the work ..

in other distos I often get gnome with a volume manager but I'd like to see "arch way" solution to this matter


thanks in advanced

Offline

#2 2010-08-06 12:10:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Auto mounting not allowed

I'm not sure about ntfs-3g and nautilus and automounting but pmount lets users mount. Maybe you can add a script which will automount them for you.

Offline

#3 2010-08-06 12:20:09

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: Auto mounting not allowed

This line in /etc/fstab works for me to auto-mount my windows partition:

/dev/sda1          /mnt/windows     ntfs-3g      uid=1000,gid=100,umask=0022    0 0

Last edited by skanky (2010-08-06 12:23:17)


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#4 2010-08-06 12:21:09

liorc666
Member
Registered: 2009-03-28
Posts: 11

Re: Auto mounting not allowed

Hey , from what I understand pmount will only mount removable devices ... I am getting "is not removable" when I try to mount hard disk

EDIT:

it worked with skanky solution somehow I am sure I've tried exact alike configuration anyway thanks for your help and time.

Last edited by liorc666 (2010-08-06 12:32:00)

Offline

#5 2010-08-06 12:52:39

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Auto mounting not allowed

liorc666 wrote:

Hey , from what I understand pmount will only mount removable devices ... I am getting "is not removable" when I try to mount hard disk

EDIT:

it worked with skanky solution somehow I am sure I've tried exact alike configuration anyway thanks for your help and time.

Could you please mark the thread as solved, by editing your first post and prefixing your subject line with [SOLVED] smile


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2010-08-07 04:57:04

ixnine
Member
Registered: 2008-11-01
Posts: 60

Re: Auto mounting not allowed

Before you guys move on I'd like to ask if auto-mounting to ~/somefolder works in fstab.

Mounting in fstab to /media/windows using ntfs-3g works fine, but when I try to mount to /home/user/windows, it says folder can't be found (but I know it exists)

Offline

#7 2010-08-07 11:47:30

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: Auto mounting not allowed

TBH I've never tried. Instead I link from my home folder to the mount point. E.g. in the example above I have a ~/win folder that's a link to /mnt/windows. That way I can also link into subdirs - eg directly into my "home" folder under windows.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#8 2010-08-07 15:07:23

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Auto mounting not allowed

I always get the following message when trying to mount an ntfs volume as non-root:

Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://ntfs-3g.org/support.html#unprivileged

How have you guys solved this?

Offline

#9 2010-08-07 15:35:46

ixnine
Member
Registered: 2008-11-01
Posts: 60

Re: Auto mounting not allowed

skanky wrote:

TBH I've never tried. Instead I link from my home folder to the mount point. E.g. in the example above I have a ~/win folder that's a link to /mnt/windows. That way I can also link into subdirs - eg directly into my "home" folder under windows.

Sounds good

Ramses de Norre wrote:

I always get the following message when trying to mount an ntfs volume as non-root:

Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://ntfs-3g.org/support.html#unprivileged

How have you guys solved this?

From the ntfs-3g man page:

If ntfs-3g is set setuid-root then non-root users will be also able to mount volumes.

Offline

#10 2010-08-07 15:39:42

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Auto mounting not allowed

ixnine wrote:
Ramses de Norre wrote:

I always get the following message when trying to mount an ntfs volume as non-root:

Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://ntfs-3g.org/support.html#unprivileged

How have you guys solved this?

From the ntfs-3g man page:

If ntfs-3g is set setuid-root then non-root users will be also able to mount volumes.

I had already tried that, the result:

Mount is denied because setuid and setgid root ntfs-3g is insecure with the
external FUSE library. Either remove the setuid/setgid bit from the binary
or rebuild NTFS-3G with integrated FUSE support and make it setuid root.
Please see more information at http://ntfs-3g.org/support.html#unprivileged

Last edited by Ramses de Norre (2010-08-07 15:40:14)

Offline

#11 2010-08-07 21:11:42

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: Auto mounting not allowed

Ramses de Norre wrote:

I always get the following message when trying to mount an ntfs volume as non-root:

Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://ntfs-3g.org/support.html#unprivileged

How have you guys solved this?

AFAICR* I've never seen that message - sorry.


* I keep regretting not taking notes as I go along.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#12 2010-08-08 06:10:26

ixnine
Member
Registered: 2008-11-01
Posts: 60

Re: Auto mounting not allowed

Ramses de Norre wrote:

I had already tried that, the result:

Mount is denied because setuid and setgid root ntfs-3g is insecure with the
external FUSE library. Either remove the setuid/setgid bit from the binary
or rebuild NTFS-3G with integrated FUSE support and make it setuid root.
Please see more information at http://ntfs-3g.org/support.html#unprivileged

Don't know about that. If it's a removable device (USB hard disk) you might want to take a look at pmount

Offline

#13 2010-08-15 06:50:36

CPUnltd
Member
From: Milwaukee, WI
Registered: 2009-12-05
Posts: 483
Website

Re: Auto mounting not allowed

does pmount require a reboot?  I restarted HAL and the errors continue?


Help grow the dev population... have your tech trained and certified!

Offline

#14 2010-08-15 07:50:25

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Auto mounting not allowed

pmount does not require a reboot. O_o


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#15 2010-08-15 16:48:11

CPUnltd
Member
From: Milwaukee, WI
Registered: 2009-12-05
Posts: 483
Website

Re: Auto mounting not allowed

interesting... well I installed it and I still get mounting errors when plugging in USB drives (flash or otherwise) so I'm not sure what the issue is.  And it's the same for both my laptop and desktop... was hoping pmount would cure my issue, but I may have to post my error on here... debating on whether I should start a new thread or not because my mount error is a bit different from the one started here.


Help grow the dev population... have your tech trained and certified!

Offline

#16 2010-08-16 08:00:01

nicoledc109
Member
Registered: 2010-08-16
Posts: 1

Re: Auto mounting not allowed

ixnine wrote:

Before you guys move on I'd like to ask if auto-mounting to ~/somefolder works in fstab.

Mounting in fstab to /media/windows using ntfs-3g works fine, but when I try to mount to /home/user/windows, it says folder can't be found (but I know it exists)

Thanks for sharing.

__________________
Watch Piranha 3D Online Free

Last edited by nicoledc109 (2010-08-16 08:00:29)

Offline

Board footer

Powered by FluxBB