You are not logged in.

#1 2009-03-21 18:43:13

bwh1969
Member
Registered: 2008-01-05
Posts: 151

what fstab option allows for mount/unmount by user

I want fstab entries for my partitions, and I want to be able to mount/unmount in dophin (kde4)/or device manager.

Currently, when in fstab, I get a HAL error when trying to unmount using these methods.

I know I can do a sudo umount command.

Currently, the options in fstab are "defaults" and for some odd reason, the only way I can read/write to vfat and ntfs-3g is to have also add uid=500,gid=500.

I am not even sure if is possible to have it "both ways"  Alternatively, is hal easily configured to automount certain devices?

Last edited by bwh1969 (2009-03-21 18:44:32)

Offline

#2 2009-03-22 01:11:31

muunleit
Member
From: Germany
Registered: 2008-02-23
Posts: 234

Re: what fstab option allows for mount/unmount by user

According to this wikipage (http://wiki.archlinux.org/index.php/Fstab) "user" would be the right option to mount as user and "defaults" means among other things "nouser".


"The mind can make a heaven out of hell or a hell out of heaven" -- John Milton

Offline

#3 2009-03-22 13:45:05

rine
Member
From: Germany
Registered: 2008-03-04
Posts: 217

Re: what fstab option allows for mount/unmount by user

With "user" you can mount and unmount, but only the user who mounted a device can unmount it. The option "users" on the other hand lets everyone mount/unmount everything.

Offline

#4 2009-03-22 16:06:54

bwh1969
Member
Registered: 2008-01-05
Posts: 151

Re: what fstab option allows for mount/unmount by user

If I use "defualts" and put "users" after that like

UUID=lotsofcharaters  /media/place  ntfs-3g  defaults,users 0 0

Then I suppose I will get the defaults with "users" over riding the "nouser" intended by "defaults?"

Offline

#5 2009-03-22 19:21:06

rine
Member
From: Germany
Registered: 2008-03-04
Posts: 217

Re: what fstab option allows for mount/unmount by user

yup

Offline

#6 2009-03-22 21:26:40

bwh1969
Member
Registered: 2008-01-05
Posts: 151

Re: what fstab option allows for mount/unmount by user

Didn't work... so I just found a post to configure HAL so it mounts my ntfs drives using ntfs-3g so I can read/write.  This was a better option for me

Offline

#7 2009-04-05 17:57:31

Fackamato
Member
Registered: 2006-03-31
Posts: 579

Re: what fstab option allows for mount/unmount by user

bwh1969 wrote:

Didn't work... so I just found a post to configure HAL so it mounts my ntfs drives using ntfs-3g so I can read/write.  This was a better option for me

Where did you find this?

Offline

#8 2009-04-05 21:06:11

bwh1969
Member
Registered: 2008-01-05
Posts: 151

Re: what fstab option allows for mount/unmount by user

it doesn't work for me with the new kernel supplied with Chakra-Project Alpha 2, but I found it here:

http://wiki.archlinux.org/index.php/HAL#NTFS

and used the mount.ntfs linking part of the post

ln -s /sbin/mount.ntfs-3g /sbin/mount.ntfs

I cannot get it to mount using hal with my current version of what Alpha 2 uses.  I tried the other tricks listed there and I get no results.  i can mount using the command line so I just added mount and umount to my sudoers file in /etc/ since I am the only user of the computer.  It somewhat simplifies the process but it would be nice for it just to work with out all of the annoyances.  It is one thing that has 'just worked' in Ubuntu.  if the ntfs3-g driver it present, it mounts rw.  I hope no one posts here that the driver is 'unsafe' or 'experimental.'  I have been using it for a long time and have never booted back into XP with errors or data loss.

I get a permissions error regarding the drive /dev/sda5 and the ntfs-3g driver.  Works from command line, like I said, and none of the items in the hal wiki seem to make it work now.  It is like someone went out of their way to disable it!

Offline

#9 2009-04-06 08:00:00

froli
Member
From: Germany
Registered: 2008-06-17
Posts: 455

Re: what fstab option allows for mount/unmount by user

Have you tried this (as root):

usermod -aG disk <user>

archlinux on Macbook Pro 10,1

Offline

#10 2009-04-06 13:26:18

bwh1969
Member
Registered: 2008-01-05
Posts: 151

Re: what fstab option allows for mount/unmount by user

No I did not.  I made a note of this, as it could be useful for me at some other point.  I looked up the usermod MAN page and don't see the -a option.  Do I place a number after the -aG flag?

Would it be in my case

$usermod -aG /dev/sda5

or

$usermod -aG <group name, or #> /dev/sda5

It started working after:

I just reinstalled ntfs-3g again (3rd time) and suddenly it started mounting with HAL.  I do have the items from the HAL wiki also "enabled" so I am not sure what combination of tricks finally got this to work.

I am thinking when the NTFS-3g driver reinstalled, it 'saw' the policies in place and it configured itself appropriately so if anyone comes across this, do the tricks in the HAL Arch Wiki and then reinstall ntfs-3g.  It seems to have worked for me anyway.

Offline

#11 2009-04-06 16:46:46

froli
Member
From: Germany
Registered: 2008-06-17
Posts: 455

Re: what fstab option allows for mount/unmount by user

It's $usermod -aG disk yourusername


archlinux on Macbook Pro 10,1

Offline

Board footer

Powered by FluxBB