You are not logged in.

#1 2009-06-22 22:41:53

epqr
Member
Registered: 2009-06-20
Posts: 13

Mount filesystems with r/w permissionø

So im using fstab to mount some of my pratitions. There is a fat32 one, a ext4 and a ntfs. The problem is i wan't to be able to write and edit files on this filesystems, and as it is now I can't. Can anyone help me out on what i have to do to get write permissions. Right now i can only read the files.

this is how i have set it up in fstab

/dev/sda5 /media/fatdisk vfat user,rw 0 1
/dev/sda1 /media/win7 ntfs user,rw 0 1
/dev/sda7 /media/disk-7 ext4 user,rw 0 1

Also the ntfs is no loger showing up anywhere after i put it up in fstab. I have ntfs-3g installed. It's not mounting, nor does it show up "unmounted" in 'computer' in nautilus.

Thanks smile

Last edited by epqr (2009-06-22 23:28:25)

Offline

#2 2009-06-23 03:54:14

sveinemann
Member
Registered: 2007-09-30
Posts: 108

Re: Mount filesystems with r/w permissionø

Add youre user to Storage group; gpasswd -a user -g storage

It's a long time since I used ntfs-3g, but i chmod 777 the /bin/ntfs-3g. Then the same with the mountpoint.
Mount with umask=000.

/dev/sda1 /media/win7 ntfs-3g users,rw,umask=000 0 1

That works for me, good luck.

Offline

#3 2009-06-23 07:02:31

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Mount filesystems with r/w permissionø

/dev/sda4    /mnt/windows ntfs-3g defaults 0 0

I only just added that to my fstab today and it works just fine.


neutral

Offline

#4 2009-06-23 07:10:23

Statix
Member
From: Hangzhou, China
Registered: 2008-02-16
Posts: 240

Re: Mount filesystems with r/w permissionø

sveinemann wrote:

Add youre user to Storage group; gpasswd -a user -g storage

It's a long time since I used ntfs-3g, but i chmod 777 the /bin/ntfs-3g. Then the same with the mountpoint.
Mount with umask=000.

/dev/sda1 /media/win7 ntfs-3g users,rw,umask=000 0 1

That works for me, good luck.

Why the chmod 777 to /bin/ntfs-3g?

Other than that sounds good. I just want to add that you'll need to pacman the ntfs-3g package before this will work.


Madly in love with Arch64, Openbox, DotA, and of course... penguins!
Happy to help if you're not a Help Vampire. Use your wonderful resources like ArchWiki, Google, and our wonderful search page.

Offline

#5 2009-06-23 12:13:16

epqr
Member
Registered: 2009-06-20
Posts: 13

Re: Mount filesystems with r/w permissionø

Thanks, all working now. This is how it's set up now

/dev/sda5 /media/fatdisk vfat user,rw,umask=000 0 1
/dev/sda1 /media/win7 ntfs-3g users,uid=1000,gid=100,fmask=0113,dmask=0002 0 1
/dev/sda7 /media/disk-7 ext4 user,rw 0 1
/dev/sdb1 /media/maxtor ntfs-3g users,uid=1000,gid=100,fmask=0113,dmask=0002 0 1
/dev/sdb2 /media/maxtor-3 vfat vfat user,rw,umask=000 0 0

I had some issues mounting the sdb1 filesystem, but i found out i had to use chmod 775 (777 might have worked too) on the mounting folder, while it was unmonuted (i could only mount it as superuser), thanks to sveinemann suggestion.

Offline

#6 2009-06-23 12:57:34

epqr
Member
Registered: 2009-06-20
Posts: 13

Re: Mount filesystems with r/w permissionø

Hmm.. Now it's not working again, I have rebooted a couple of times since it last worked. Once again it says i don't have write acsess to the mountpoint (/media/maxtor), even though I use the command

sudo chmod 775 /media/maxtor

That command did the trick for me last time, but now it stopped wokring.

full error message;

[mntent] line 17 in /etc/fstab is bad
ntfs-3g-mount: user has no write access to mountpoint /media/maxtor

Last edited by epqr (2009-06-23 13:16:58)

Offline

#7 2009-06-23 13:19:12

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Mount filesystems with r/w permissionø

Edit the file: /etc/PolicyKit/PolicyKit.conf

put within <config> :

 <match user="$USER">
        <!-- replace with your login or delete the line if you want to allow all users to manipulate devices (keep security issues in mind though) -->
                <match action="org.freedesktop.hal.storage.*">
                        <return result="yes"/>
                </match>
                <match action="hal-storage-mount-fixed-extra-options">
                <!-- for internal devices mounted with extra options like a wished mount point -->
                        <return result="yes" />
                </match>
                <match action="hal-storage-mount-removable-extra-options">
                <!-- for external devices mounted with extra options like a wished mount point -->
                        <return result="yes" />
                </match>
        </match> <!-- don't forget to delete this line if you deleted the first one -->

Reboot and check if its working.


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#8 2009-06-23 13:44:47

epqr
Member
Registered: 2009-06-20
Posts: 13

Re: Mount filesystems with r/w permissionø

Nope that didn't help. I still get the exact same error message.

Offline

#9 2009-06-25 12:33:54

biagio
Member
From: Florence - Italy
Registered: 2008-02-29
Posts: 49

Re: Mount filesystems with r/w permissionø

where sdb is a hard drive, try (in fstab):
/dev/sdb1 /media/maxtor ntfs-3g defaults,quiet,umask=000,users 0 1

Offline

#10 2009-07-05 18:37:16

noMaster
Member
Registered: 2009-07-05
Posts: 70

Re: Mount filesystems with r/w permissionø

I have the same problem. When I use the line
"/dev/sda3    /mnt/windows ntfs-3g defaults 0 0" is nothing happening. But I see my "winxp" in Places on panel bar.
When I use the line
"/dev/sda4 /media/winxp ntfs-3g users,rw,umask=000 0 1" I see both partition (sda3 - winxp and sda4 - filetemp), but I cant open it:

{ Error opening '.dev.sda4': Permission denied Failed to mount '.dev.sda4': Permission denied Please check '.dev.sda4' and the ntfs-3g binary permissions, and the mounting user ID. More explanation is provided at http://ntfs-3g.org/support.html#unrivileged

DBus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes includ: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken }

I have ntfs-3g and I've added my user to storage group. What's wrong?

Offline

Board footer

Powered by FluxBB