Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntfs-3g : Cannot umount as user (SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
windz
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2006
Posts: 89

PostPosted: Thu Mar 15, 2007 12:36 pm    Post subject: ntfs-3g : Cannot umount as user (SOLVED) Reply with quote

Hi,

My hard disk is partitioned into 2 parts; one for XP and the other for Gentoo. I followed the wikipedia on how to enable the NTFS file system support in the kernel and also the wiki on enabling ntfs-write with ntfs-3g. I also followed the instructions to set the suid flag for the ntfs-3g binary. This is my entry for the ntfs partition in /etc/fstab:

/dev/hda1 /mnt/ntfs ntfs-3g noauto,user,uid=1000,fmask=0133,dmask=0022 0 0

With these settings, I am able to mount the partition as well as have read / write assess to it as a normal user. However, I am unable to umount /mnt/ntfs as a normal user. I get this message:

umount: only root can unmount /dev/hda1 from /mnt/ntfs

Can someone please help?

Thanks


Last edited by windz on Fri Mar 16, 2007 7:40 am; edited 1 time in total
Back to top
View user's profile Send private message
Sachankara
l33t
l33t


Joined: 11 Jun 2004
Posts: 696
Location: Stockholm, Sweden

PostPosted: Thu Mar 15, 2007 12:57 pm    Post subject: Re: ntfs-3g : Cannot umount as user Reply with quote

Code:
$ fusermount -u /mnt/ntfs

_________________
Gentoo Hardened Linux 2.6.21 + svorak (Swedish dvorak)
Back to top
View user's profile Send private message
windz
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2006
Posts: 89

PostPosted: Thu Mar 15, 2007 1:10 pm    Post subject: Reply with quote

Thanks, Sachankara, for your reply.

I tried fusermount -u /mnt/ntfs and got this message:

fusermount: entry for /mnt/ntfs not found in /etc/mtab
Back to top
View user's profile Send private message
Sachankara
l33t
l33t


Joined: 11 Jun 2004
Posts: 696
Location: Stockholm, Sweden

PostPosted: Thu Mar 15, 2007 1:14 pm    Post subject: Reply with quote

windz wrote:
Thanks, Sachankara, for your reply.

I tried fusermount -u /mnt/ntfs and got this message:

fusermount: entry for /mnt/ntfs not found in /etc/mtab
If the file system is not listed in /etc/mtab, then it's not mounted. Try mounting the file system like you always do, then run fusermount to unmount it.
_________________
Gentoo Hardened Linux 2.6.21 + svorak (Swedish dvorak)
Back to top
View user's profile Send private message
windz
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2006
Posts: 89

PostPosted: Thu Mar 15, 2007 1:17 pm    Post subject: Reply with quote

Sachankara wrote:
If the file system is not listed in /etc/mtab, then it's not mounted. Try mounting the file system like you always do, then run fusermount to unmount it.


That's what I did.

$ mount /mnt/ntfs

- The partition is mounted correctly

$ fusermount -u /mnt/ntfs

- I get this message: fusermount: entry for /mnt/ntfs not found in /etc/mtab
Back to top
View user's profile Send private message
windz
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2006
Posts: 89

PostPosted: Thu Mar 15, 2007 1:30 pm    Post subject: Reply with quote

Another thing: although the error stated that 'entry for /mnt/ntfs not found in /etc/mtab', I found this entry from " cat /etc/mtab ":

/dev/hda1 /mnt/ntfs fuseblk rw,nosuid,nodev,noexec,noatime,allow_other,default_permissions,blksize=4096 0 0
Back to top
View user's profile Send private message
irgu
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2003
Posts: 131

PostPosted: Thu Mar 15, 2007 8:18 pm    Post subject: Reply with quote

windz wrote:
I tried fusermount -u /mnt/ntfs and got this message:

fusermount: entry for /mnt/ntfs not found in /etc/mtab

This looks to be a fusermount bug and maybe the umount too with the 'user' option.

But umount works for me if I use the 'users' option (note the plural).
Back to top
View user's profile Send private message
windz
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2006
Posts: 89

PostPosted: Fri Mar 16, 2007 7:36 am    Post subject: Reply with quote

irgu wrote:

This looks to be a fusermount bug and maybe the umount too with the 'user' option.

But umount works for me if I use the 'users' option (note the plural).


Thanks. That worked. I wonder though what the difference between user and users is. 'user' works for the rest of my removable drives.

Thanks again.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23064

PostPosted: Sat Mar 17, 2007 12:43 am    Post subject: Reply with quote

windz wrote:
I wonder though what the difference between user and users is. 'user' works for the rest of my removable drives.


From man mount:

Quote:

user Allow an ordinary user to mount the file system. The
name of the mounting user is written to mtab so that he
can unmount the file system again. This option implies
the options noexec, nosuid, and nodev (unless overridden
by subsequent options, as in the option line
user,exec,dev,suid).

users Allow every user to mount and unmount the file system.
This option implies the options noexec, nosuid, and nodev
(unless overridden by subsequent options, as in the
option line users,exec,dev,suid).


Loosely, this means that if you use users, then Alice can mount the filesystem, but Bob unmount it from under her. If you use user, only Alice (or root) can unmount the filesystem after Alice mounts it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum