LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-09-2006, 10:11 PM   #1
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Rep: Reputation: 30
Question NO permission to write to FAT32 partition


This has been tackled before, and I am sorry to bring this up again. I have tried to follow all the instructions to mount and put command in fstab to allow me to read and write to my 2 other FAT32 partitons through Ubuntu.
here is my fstab file:
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda8       /               reiserfs notail          0       1
/dev/hda1       /media/hda1     ntfs    defaults        0       0
/dev/hda5       /media/hda5     vfat    defaults        0       0
/dev/hda6       /media/hda6     vfat    defaults        0       0
/dev/hda7       none            swap    sw              0       0
/dev/hdb        /media/cdrom0   udf,iso9660 user,noauto     0       0


/dev/hda5 /media/winD vfat umask=000 0 0
/dev/hda6 /media/winE  vfat umask=000 0 0

/dev/hda1 /media/winC ntfs umask=0222 0 0

Where am I going wrong? Note I have done
sudo mkdir /mount/winC
sudo mkdir /mount/winD
sudo mkdir /mount/winE

and these directories exist. But they have a yellow lock onthem, which probably means I can read but not write. Right?

I also checked if I could write to disc, and give me errors that I do not have permission to write.

Help much appreciated,
regards,
SL

Edit: I even tried this suggestion from another post here:

===
/dev/hda5 /media/winD vfat users,iocharset=iso8859-15,umask=0,codepage=850 0 0
/dev/hda6 /media/winE vfat users,iocharset=iso8859-15,umask=0,codepage=850 0 0

/dev/hda1 /media/winC ntfs users,iocharset=iso8859-15,umask=0,codepage=850 0 0

===

and it does not work even after I rebooted.

Last edited by smiley_lauf; 02-09-2006 at 10:23 PM.
 
Old 02-09-2006, 10:30 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'd try changing it to:
Code:
/dev/hda5 /media/winD vfat umask=0000,rw,uid=1000,gid=100,users 0 0
/dev/hda6 /media/winE vfat umask=0000,rw,uid=1000,gid=100,users 0 0
I'm assuming that you have a user with a uid of 1000 and the required group has a gid of 100.
 
Old 02-09-2006, 10:57 PM   #3
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Original Poster
Rep: Reputation: 30
Sweet, worked perfectly!
 
Old 02-10-2006, 12:09 PM   #4
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Original Poster
Rep: Reputation: 30
Just one problem though: pdf files opened in Firefox can'y be saved into these drives. Otherwise all other file types can. Any ideas?
 
Old 02-10-2006, 01:29 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
That's odd - if the user running Firefox can manually put files there, then Firefox should be able to as well. What error message are you seeing?
 
Old 02-11-2006, 08:11 AM   #6
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Original Poster
Rep: Reputation: 30
My bad!...Remember I had created /mount/hda5..previously? Now I have a new /mount/winD. I was using the old hda5 directory (which now does not exist) and thus failing to save files. When choose winD is works fine. I am trrribly sorry. Thanks otherwise Gilead.
 
Old 02-11-2006, 12:38 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
No problem - I'm glad it's working now
 
Old 02-13-2006, 10:01 AM   #8
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by gilead
I'd try changing it to:
Code:
/dev/hda5 /media/winD vfat umask=0000,rw,uid=1000,gid=100,users 0 0
/dev/hda6 /media/winE vfat umask=0000,rw,uid=1000,gid=100,users 0 0
I'm assuming that you have a user with a uid of 1000 and the required group has a gid of 100.
Steve,

I have another laptop also using Ubuntu 5.10 on which I have made a similar partition hda5. I copied your recommended syntax into the /etc/fstabs file, but this time around I do not get permission to write, I can read, but not write. I am sure this is correct, I have even rebooted to check it is the case.

Any idea why this may happen? Could it be a gid or uid issue? what do I do to write to this common FAT32 partition; and by the way, my WIN XP is also FAT32, and I want to write to that too (hda1).

Much appreciated,

SL
 
Old 02-13-2006, 01:17 PM   #9
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If you can read the files it means that the dev and mount values are OK, so it sounds like the uid/gid values are wrong. Can you try it again with the values returned by the following?
Code:
grep "^$(whoami)" /etc/passwd | cut -d: -f3
grep "^$(groups | cut -d' ' -f1)" /etc/group | cut -d: -f3
 
Old 02-13-2006, 02:09 PM   #10
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by gilead
If you can read the files it means that the dev and mount values are OK, so it sounds like the uid/gid values are wrong. Can you try it again with the values returned by the following?
Code:
grep "^$(whoami)" /etc/passwd | cut -d: -f3
grep "^$(groups | cut -d' ' -f1)" /etc/group | cut -d: -f3

For both I get 1000.
 
Old 02-13-2006, 08:42 PM   #11
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
OK, can you try it with 1000 for the gid value and see if that fixes it?
 
Old 02-13-2006, 09:56 PM   #12
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Original Poster
Rep: Reputation: 30
It worked, thanks. You are a lifesaver; now my wife will be very happy to have access to her documents in winxp.
best wishes,
sl
 
Old 02-14-2006, 12:49 AM   #13
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
No problem - glad it worked
 
  


Reply



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
No permission to write to FAT32 partition smiley_lauf Linux - Newbie 5 02-04-2006 01:53 PM
permission for FAT32 partition academik Linux - Software 6 01-16-2006 09:20 AM
how to give ordinary users write permission to fat32 LeftyAce Debian 3 01-15-2006 03:03 PM
Write to FAT32 Partition ok? ziphem Linux - Newbie 8 01-25-2005 06:39 PM
Can't write to second FAT32 partition stewe151 Linux - Hardware 13 07-22-2002 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration