You are not logged in.

#1 2010-11-08 10:21:49

zevstatiev
Member
Registered: 2010-11-07
Posts: 11

Auto mount fat32, permissions

Hello,
I'm trying to make a bridge between my windows and my arch, so I created a fat32 partition for them to share. I'm trying to make it boot when the system start so I made this entry to the fstab:

/dev/sda3 /home/usrnm/data vfat defaults 0 0

It boots like it's supposed to, but I have no write permission in ~/data folder. Tried

sudo chmod 777 ~/data -R

It doesn't bring any errors but still there is no effect
This is the output from ls -la

drwxr-xr-x  3 root  root  16384 Jan  1  1970 data

but when I try to copy smth there I get

Error opening file '/home/usrnm/data/filename': Permission denied

Any ideas how to fix the problem ?

Thanks

Offline

#2 2010-11-08 10:36:38

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Auto mount fat32, permissions

check with rw and user option instead of defaults.

Offline

#3 2010-11-08 11:19:51

zevstatiev
Member
Registered: 2010-11-07
Posts: 11

Re: Auto mount fat32, permissions

Changed fstab so it looks like:

/dev/sda3 /home/zevst/data vfat user,rw,auto 0 0

but nothing has changed hmm

Offline

#4 2010-11-08 13:08:12

igndenok
Member
From: Sidoarjo, Indonesia
Registered: 2010-06-07
Posts: 160

Re: Auto mount fat32, permissions

You should check Wiki first.


Ask, and it shall be given you.
Seek, and ye shall find.
Knock, and it shall be opened unto you.

Offline

#5 2010-11-08 13:48:10

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: Auto mount fat32, permissions

I'm not sure that your 'sudo chmod' accesses the correct mountpoint - why don't you try it with the full path

sudo chmod -R 777 /home/$USERNAME/data

Offline

#6 2010-11-08 15:53:54

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Auto mount fat32, permissions

umask,dmask,fmask,uid,gid

Fast and unsecure version is umask=0000

Sidenote: It's much better to use ntfs for a shared partion than vfat.
No 4gb filesize limit, somewhat more reliable, less fragmentation.

Last edited by Mr.Elendig (2010-11-08 15:54:53)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2010-11-08 18:53:41

zevstatiev
Member
Registered: 2010-11-07
Posts: 11

Re: Auto mount fat32, permissions

I did it, thanks everyone!

Last edited by zevstatiev (2010-11-08 19:02:13)

Offline

Board footer

Powered by FluxBB