LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 04-12-2006, 10:32 AM   #1
gilebo
LQ Newbie
 
Registered: Apr 2006
Location: Sittard NL
Distribution: Suse
Posts: 6

Rep: Reputation: 0
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...

Thanks in advance
 
Old 04-12-2006, 11:17 AM   #2
maggie29
LQ Newbie
 
Registered: Feb 2006
Location: Alabama
Distribution: Fedora Core
Posts: 21

Rep: Reputation: 15
Maybe this post will help you?
http://www.linuxquestions.org/questi...66#post2012466
That whole thread might help, really, but it's a little deep for me. Just looked like what you're asking.
 
Old 04-12-2006, 12:33 PM   #3
gilebo
LQ Newbie
 
Registered: Apr 2006
Location: Sittard NL
Distribution: Suse
Posts: 6

Original Poster
Rep: Reputation: 0
Hmm,

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.

the trick:

umount /mount_point as user (e.g /mnt/windows)

then

mount /mount_point also as user
 
Old 04-27-2006, 07:56 AM   #4
jeroensnake
LQ Newbie
 
Registered: Nov 2005
Location: eindhoven, the netherlandse
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
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
 
Old 04-27-2006, 11:42 AM   #5
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
this is all you need in /etc/fstab, should work fine:

Code:
/dev/hdb1        /mnt/fat      vfat    users,defaults,umask=000  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.

regards,
...drkstr
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
chmod to access win partition from user account danieljames Suse/Novell 14 01-09-2006 04:45 PM
can't access ntfs partition as normal user rezzie Linux - Newbie 6 11-26-2005 08:09 AM
Access my windows partition as a normal user necbrownie Slackware 5 10-13-2004 04:22 PM
Write access on FAT partition by ordinary user Linner Fedora 6 06-17-2004 04:42 AM
FSTAB entry for normal user to access windows partition rmanocha Linux - Software 4 01-29-2004 04:33 PM


All times are GMT -5. The time now is 08:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration