LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 12-29-2006, 02:39 PM   #1
arunvk
Member
 
Registered: Nov 2005
Location: India
Distribution: Fedora 11
Posts: 194

Rep: Reputation: 30
loses permissions mid session


Hi,

Iam using FC6. the problem is that i lose my FAT32 Permissions while am in between a session. to be more precise i lose my write permission for FAT32 but iam still able to read it. the only way to get the permission back to reboot.

can anyone plz tell me wat to do. why are the permissions lost.

thanks.
 
Old 12-29-2006, 03:15 PM   #2
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
sounds like a bug somewhere in whatever driver is providing FAT32 support. Check syslog to see if that gives any hints.

I personally have never gotten write access to a FAT32 filesystem to work correctly.
 
Old 12-30-2006, 01:46 AM   #3
arunvk
Member
 
Registered: Nov 2005
Location: India
Distribution: Fedora 11
Posts: 194

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by dombrowsky
sounds like a bug somewhere in whatever driver is providing FAT32 support. Check syslog to see if that gives any hints.
driver?? all my iam using is the default. passing the permissions through fstab.

where is syslog located?
 
Old 12-30-2006, 11:39 AM   #4
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
/var/log/syslog on my system. Its a plain-text file on debian, but log management varies 100% between distros, so you may have to do some digging.

As I understand linux, every filesystem must have a corresponding driver in the kernel. Many filesystems are built into the kernel (ext2 for example).

Be prepared to get your hands dirty if you really want to fix this.
 
Old 12-30-2006, 12:33 PM   #5
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 31
Perhaps it would help if you told us how you're setting the permissions, i.e. show us the line in /etc/fstab. FAT32 filesystems don't support UNIX-style permissions, so just specifying the rw option won't work. You need to use the umask option and possibly the uid and gid options.

I wouldn't worry about the kernel drivers. The vfat module (which handles all FAT filesystems) is very widely used and quite reliable. It's much more likely that your configuration is wrong than that the kernel is broken.
 
Old 12-30-2006, 02:23 PM   #6
arunvk
Member
 
Registered: Nov 2005
Location: India
Distribution: Fedora 11
Posts: 194

Original Poster
Rep: Reputation: 30
here is the my fstab. please go thru it and tell me whr iam wrong.

LABEL=/ / ext4 defaults 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/hda1 /win/c vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
/dev/hda5 /win/d vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
/dev/hdb7 /win/e_avk vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
/dev/hdb8 /win/f_avk vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
LABEL=SWAP-hdb6 swap swap defaults 0 0
/dev/hdd /media/cdrom auto pamconsole,exec,noauto,managed 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0


thanks.
 
Old 12-30-2006, 02:43 PM   #7
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 31
Try adding "umask=000" to the options for your FAT32 filesystems and then re-mounting the filesystems. That whould make them writable to all users. With the uid-500 option, they should be writable to whoever user ID 500 belongs to (and root of course), but not to any other accounts.
 
Old 06-13-2007, 04:59 AM   #8
oliverjames
LQ Newbie
 
Registered: Jan 2005
Location: 01220 France
Distribution: Mandrake 10.1
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by arunvk
here is the my fstab. please go thru it and tell me whr iam wrong.

LABEL=/ / ext4 defaults 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/hda1 /win/c vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
/dev/hda5 /win/d vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
/dev/hdb7 /win/e_avk vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
/dev/hdb8 /win/f_avk vfat rw,exec,noatime,uid=500,,gid=500,user 0 0
LABEL=SWAP-hdb6 swap swap defaults 0 0
/dev/hdd /media/cdrom auto pamconsole,exec,noauto,managed 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0


thanks.
Came across this old posting, probably solved by now but I had a similar experience recently and learnt Thanks to Guth from the Zenwalk forum) that Linux automatically suppresses write permissions when it detects a problem with the file system. Try verifying/reparing the Win file system, check the disk (if it hasn't failed by now) and that may solve the problem.

Clever stuff this Linux software!
 
  


Reply

Tags
correct, fat32, filesystem, kernel


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
mounted partition loses it's permissions titopoquito Linux - Software 2 02-27-2006 05:07 AM
Lose permissions mid-session johngcarlsson Linux - Newbie 18 08-02-2004 08:23 PM
msec in MDK 10 makes me lose permissions mid-session johngcarlsson Mandriva 2 07-19-2004 08:00 PM
x server refuses connections in mid-session mark9121 Linux - General 3 09-21-2003 10:30 PM
Switch groups in mid-session nxny Linux - General 4 10-23-2002 12:10 PM


All times are GMT -5. The time now is 02:32 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration