You are not logged in.

#1 2009-01-17 07:40:27

edmondchang
Member
Registered: 2009-01-14
Posts: 7

External hard drive with NTFS partitions automounting problem

Hi all, I have an external USB hard drive with 2 NTFS partitions on it. I want it to be automounted when hotplugined.

The partitions are able to be recognized by the system and icons would show up on the desktop when I plug it in. However when I try to open it, a message saying "You are not privileged to mount volume xxx" appeared and I cannot see the contents.

I can manually mount the partitions as root, but it is too inconvenient.
I am a member of the 'storage' group, and I'm sure of it. USB sticks with vfat filesystem works fine.
(BTW these partitions are not in the list of /etc/fstab file, does this matter?)

I have read the HAL wiki page, and in the section of NTFS, ntfs-3g is employed but I have no requirement to write NTFS partitions so I DO NOT want to install ntfs-3g. What I need is the right of READ ONLY. The NTFS partitions on the internal hardrive works perfect without ntfs-3g.(by adding them into the /etc/fstab file)

Any suggestion would be appreciated.

Last edited by edmondchang (2009-01-17 07:44:38)

Offline

#2 2009-01-17 09:48:06

InfernalH
Member
From: Lithuania/Klaipeda-Vilnius
Registered: 2005-02-08
Posts: 101
Website

Re: External hard drive with NTFS partitions automounting problem

I'd try to add entry to fstab with all "uid=1000,gid=100,fmask=0113,dmask=0002" stuff

Offline

#3 2009-01-17 10:52:10

bwalk
Member
Registered: 2007-03-21
Posts: 177

Re: External hard drive with NTFS partitions automounting problem

Why no ntfs-3g? It is by far the best driver around, even for read-only.

Offline

#4 2009-01-17 15:03:24

edmondchang
Member
Registered: 2009-01-14
Posts: 7

Re: External hard drive with NTFS partitions automounting problem

InfernalH wrote:

I'd try to add entry to fstab with all "uid=1000,gid=100,fmask=0113,dmask=0002" stuff

I have added entries in fstab. Here it is.

UUID=547fdad0-ec45-4d95-9247-fb1460c119ad /home reiserfs defaults 0 1
UUID=c13545cd-db5a-41e8-953a-358c2f0b4c8d swap swap defaults 0 0
UUID=eefcf826-b131-4141-8082-7ec1f67cf95e / reiserfs defaults 0 1
/dev/sda1 /mnt/Zeus ntfs auto,ro,uid=1000,dmask=027,fmask=337,nls=utf8 0 0
/dev/sda5 /mnt/Hades ntfs auto,ro,uid=1000,dmask=027,fmask=337,nls=utf8 0 0
/dev/sda6 /mnt/Apollo ntfs auto,ro,uid=1000,dmask=027,fmask=337,nls=utf8 0 0
LABEL=Athena /mnt/Athena ntfs auto,ro,uid=1000,dmask=027,fmask=337,nls=utf8 0 0
LABEL=Artemis /mnt/Artemis ntfs auto,ro,uid=1000,dmask=027,fmask=337,nls=utf8 0 0

As you see, I have two NTFS partitions on my first hardive(internal), there's no permission problem for them at all. But removable hardrive doesn't work, I have to manually mount them by "sudo mount -a" as superuser which is too inconvenient.

Offline

#5 2009-01-17 15:23:38

edmondchang
Member
Registered: 2009-01-14
Posts: 7

Re: External hard drive with NTFS partitions automounting problem

bwalk wrote:

Why no ntfs-3g? It is by far the best driver around, even for read-only.

To be honest I am quite a newbie, and those two NTFS partitions are very important to me, I'm not quite sure about ntfs-3g and no need to write. Last choice if I can't solve this.

Offline

#6 2009-01-18 09:52:00

InfernalH
Member
From: Lithuania/Klaipeda-Vilnius
Registered: 2005-02-08
Posts: 101
Website

Re: External hard drive with NTFS partitions automounting problem

Try to add "user" to your removable devices options, for example "auto,ro,uid=1000,user,...". It permits any user to mount the filesystem.

Offline

#7 2009-01-18 15:34:00

edmondchang
Member
Registered: 2009-01-14
Posts: 7

Re: External hard drive with NTFS partitions automounting problem

InfernalH wrote:

Try to add "user" to your removable devices options, for example "auto,ro,uid=1000,user,...". It permits any user to mount the filesystem.

Still saying "You are not privileged to mount volume xxx"...
any other suggestion?

Last edited by edmondchang (2009-01-18 15:35:28)

Offline

#8 2009-01-18 17:04:31

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: External hard drive with NTFS partitions automounting problem

What DE/filemanager are you using? and how do you start X (startx/GDM/KDM etc)?

Also, you could try the Hal policy file in the wiki but just change 'ntfs-3g' to 'ntfs', you'll need to remove the entries from fstab before you try that though.

Offline

#9 2009-01-19 05:46:11

edmondchang
Member
Registered: 2009-01-14
Posts: 7

Re: External hard drive with NTFS partitions automounting problem

ghostHack wrote:

What DE/filemanager are you using? and how do you start X (startx/GDM/KDM etc)?

Also, you could try the Hal policy file in the wiki but just change 'ntfs-3g' to 'ntfs', you'll need to remove the entries from fstab before you try that though.

I'm using Xfce4, Thunar. I start X with 'startx' after I login under console mode.

I've tried the HAL policy method and removed entries of fstab, this time I could mount the volume but could not access it. The Error message is "Fail to open the directory. Permission Denied.".

Here's the result of 'mount' command after I plugin the external disk in.

[edmond@Arch ~]$ mount
/dev/sda7 on / type reiserfs (rw)
none on /dev type ramfs (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda8 on /home type reiserfs (rw)
/dev/sda1 on /mnt/Zeus type ntfs (ro,uid=1000,dmask=027,fmask=337,nls=utf8)
/dev/sda5 on /mnt/Hades type ntfs (ro,uid=1000,dmask=027,fmask=337,nls=utf8)
/dev/sda6 on /mnt/Apollo type ntfs (ro,uid=1000,dmask=027,fmask=337,nls=utf8)
/dev/sdb5 on /media/Athena type ntfs (rw,nosuid,nodev)
/dev/sdb6 on /media/Artemis type ntfs (rw,nosuid,nodev)

Last edited by edmondchang (2009-01-19 05:46:41)

Offline

#10 2009-01-19 20:20:48

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: External hard drive with NTFS partitions automounting problem

What versions of thunar/hal/exo do you have?  There seems to be an open bug that sounds similar to your issue (here)

Offline

#11 2009-01-26 14:07:34

edmondchang
Member
Registered: 2009-01-14
Posts: 7

Re: External hard drive with NTFS partitions automounting problem

ghostHack wrote:

What versions of thunar/hal/exo do you have?  There seems to be an open bug that sounds similar to your issue (here)

hal 0.5.11-4
thunar 0.9.3
exo 0.3.4-3

I've checked that bug page, but my CD mounting works fine.

Last edited by edmondchang (2009-01-26 14:10:17)

Offline

Board footer

Powered by FluxBB