can't access fat partition with normal user account
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
can't access fat partition with normal user account
Hi,
I know this is a question that has been posted a zillion times (if not more...), and I have read a lot about it already. It simply will not work on my box and I am a bit desperate.
I am running a Suse Linux 10.0SS box. The problem:
although I have let Yast edit the fstab and have tried myself a couple of times as well, I can't get user write access on ANY of the fat drives I mounted. I can go into the directory, so the fat partitions are mounted. I can read and write with root access. I just can't write using a user account(which I really need).
So this is how my fstab looks at the moment, the appropriate partitions that is:
/dev/hda1 /windows/Boot vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hda6 /windows/Documenten vfat user,iocharset=utf8 0 0
/dev/hda9 /windows/Download vfat rw,umask=000 0 0
As you can see I have been trying a bit, but none works.
So then I read somewhere that I should use chmod on the directories, e.g. with a root console: chmod -R 777 .... Interestingly enough, the permissions are NOT changed, if any partition is mounted. If they are not mounted, I can clearly see the permissions being changed. So I am guessing, here is where the problem lies. I just for the love of God can't see the solution...
I think, I found the answer myself. All I needed to do, is to umount the partition using the user account and then mount it again by hand. That was it. Then the permissions were magically changed into what I needed. I never tried it before, cause I was always using a root console to mount and unmount the **** partition.
I have about the same problem. I have mounted a vfat partition with mostly music and movies. But sometimes, out of the blue, i cannot delete or create files. Unmount and mount again (as root); it works again. But it keeps changing back to read-only for some reason.
So what is causing this problem, and how can I fix it? I dont feel like unmount,mount.unmount,mount.unmount,mount, you get my drift...
the line from my /etc/fstab:
/dev/hda5 /mnt/d vfat defaults,dev,user,gid=users,uid=jeroensnake,umask=0022 0 0
I think the problem is in your umask= line, why do you have 4 digits? The above will allow any user to have rwx privlages, adjust acordingly if you don't want execute privlages. ALso, make sure the folder you are mounting it to has the same privlages that you desire.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.