You are not logged in.

#1 2008-03-07 03:18:13

colbert
Member
Registered: 2007-12-16
Posts: 809

Trying to automount external HDD NTFS partition

I have an external HD that is one partition EXT3 and mounts fine, other is a smaller NTFS partition that I'm unable to get to. It mounts fine but won't let me browse it, so I did chmod user:user /media/disk with my username and now I can browse it, yet it returns to being owned by root once I unplug it and plug back in. I have tried this line in fstab:

/dev/sdd1 /media/windrive ntfs-3g noauto,defaults 0 1

And then I right-clicked it in the thunar side pane, hit Mount Volume and I got this:

mount: only root can mount /dev/sdd1 on /media/windrive

I'd really like to get this mounted properly with read/write access, hope someone can help smile

Last edited by colbert (2008-03-07 03:25:35)

Offline

#2 2008-03-07 03:36:32

bsdson.tw
Member
From: Taiwan
Registered: 2005-05-06
Posts: 161

Re: Trying to automount external HDD NTFS partition

Thunar with the help of "volman" and "HAL" can mount it automatically.
Please refer to the wiki for the details.

http://wiki.archlinux.org/index.php/AutoFS_HowTo

ps. you do not have to add the mount config in fstab

Offline

#3 2008-03-07 03:36:49

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Trying to automount external HDD NTFS partition

Just realized I have my XP NTFS partition that mounts just fine. Here's the permissions, I can't figure out how to change the "windrive" to get the same permissions as "xp". As can be seen, I think it's missing write access in the permissions only.

drwxr-xr-x  2 bobby bobby  4096 2008-03-06 22:20 windrive
drwxrwxrwx  1 root  root   4096 2008-02-24 17:21 xp

Offline

#4 2008-03-07 03:45:15

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Trying to automount external HDD NTFS partition

bsdson.tw, I am using thunar-volman and HAL currently, everything mounts a-ok thankfully. It just seems to be a permissions issue with this partition, I just don't know how to emulate the permissions on the XP drive over to windrive. That would solve it.

Offline

#5 2008-03-07 22:47:17

SiC
Member
From: Liverpool, England
Registered: 2008-01-10
Posts: 430

Re: Trying to automount external HDD NTFS partition

Try adding the user,users,groups options to fstab and then try remounting it.

Offline

#6 2008-03-08 04:32:17

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Trying to automount external HDD NTFS partition

I'm getting the following error:

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.

When trying to mount it. I've got the fstab line right I believe:

/dev/sdd1  /media/windrive  ntfs-3g  users,noauto,fmask=0113,dmask=0002,locale=en_US.utf8  0 0

But it won't mount, that error keeps popping up.

Offline

#7 2008-03-08 05:10:22

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

Re: Trying to automount external HDD NTFS partition

mount.ntfs-3g shouldn't be setuid, and it is being pretty cranky about it.

You can fix that with chmod u-s /usr/bin/ntfs-3g, if that is the script that is setuid root, or you could reinstall the package (or it has a bug?)...

Or does it have to do with mount being setuid due to the option in the fstab to allow users to mount?

Offline

#8 2008-03-28 19:10:10

PierreAd
Member
Registered: 2007-05-07
Posts: 19

Re: Trying to automount external HDD NTFS partition

colbert wrote:

bsdson.tw, I am using thunar-volman and HAL currently, everything mounts a-ok thankfully. It just seems to be a permissions issue with this partition, I just don't know how to emulate the permissions on the XP drive over to windrive. That would solve it.

Same problem here ! thunar-volman perfectly auto-mounts my disks, but I get a permission error on my NTFS partition. However, it does mount the partition, but with wrong permissions :

drwx------  1 root      root 8,0K mar 24 18:44 NTFSPART
drwxr-xr-x 15 pabuisson root  48K jan  1  1970 FATPART

sad


Edit : ntfs-3g works well with gnome automount... could it come from a thunar configuration issue ?

Last edited by PierreAd (2008-03-28 19:12:40)

Offline

Board footer

Powered by FluxBB