LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-10-2004, 11:01 PM   #1
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 654

Rep: Reputation: 53
Non Super Users can not access VFAT Partition


Hi All,
I just set up a dual booting system. It has a partition for Windoze XP and a partition for SuSe 9.1
It also has a shared partition which is for stuff. Problem is.... in Linux only root can write to this partition. Regular users can read and execute, just not write. I have tried to look for chmod information; but nothing seems to work. I tried to change the permissions in KDE graphically, but that is also futile.


btw: the partition is mounted at /shared


Any help is greatly appreated


Shane
 
Old 09-10-2004, 11:09 PM   #2
irfanhab
Member
 
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415

Rep: Reputation: 34
go in fstab

add the 'owner' option in the concerned line
like this
/dev/hda1 /mnt/D vfat defaults, owner 0 0
 
Old 09-10-2004, 11:13 PM   #3
Electronkz
Member
 
Registered: Mar 2004
Location: Punta del Este, Uruguay
Distribution: Fedora
Posts: 176

Rep: Reputation: 31
Did you try editing /etc/fstab
If not:
then edit it,
here is an example of one entry for my /etc/fstab
Code:
/dev/hda1               /mnt/windows/win_c      vfat    rw,auto,umask=0000,users,exec 0 0
Note that "rw" stands for read & write and "users" allow all users to acces the partition,
Before editing fstab make sure you create the directory where you want to mount it, for example in my case it is /mnt/windows/win_c .
If you have a ntfs partition, then you probably dont want to write to it, it is not safe yet.
You can search www.google.com/linux for more information about fstab.
Hope this helps,


 
Old 09-10-2004, 11:15 PM   #4
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 654

Original Poster
Rep: Reputation: 53
That did not work...... i think this is because root is the owner of the directory. Any furthur advice is thanked for in advance.... btw: here is my fstab
Code:
/dev/hdd1            /                    reiserfs   acl,user_xattr        1 1
/dev/hdd4            /shared              vfat       defaults, owner              0 0
/dev/hdd2            /windows/D           vfat       users,gid=users,umask=0002,iocharset=utf8 0 0
/dev/hdd3            swap                 swap       pri=42                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
proc                 /proc                proc       defaults              0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
sysfs                /sys                 sysfs      noauto                0 0
/dev/cdrecorder      /media/cdrecorder    subfs      fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
 
Old 09-10-2004, 11:23 PM   #5
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 654

Original Poster
Rep: Reputation: 53
i tried the suggestion about editing fstab.... and quite simply the drive would not mount..... I mounted it manually and it was just the same old problem.
 
Old 09-10-2004, 11:28 PM   #6
Electronkz
Member
 
Registered: Mar 2004
Location: Punta del Este, Uruguay
Distribution: Fedora
Posts: 176

Rep: Reputation: 31
add "rw" to the /dev/hdd2 Line.
see if it works,
 
Old 09-11-2004, 12:13 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,347

Rep: Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146
Make sure the mount point i.e. /windows/d has the correct permissions when the filesystem is unmounted.

The simplest fstab is
/dev/hdd2 /windows/D vfat users,umask=000 0 0

umask is the opposite of chmod. umask=000 means read / write for all.
 
Old 09-11-2004, 11:25 AM   #8
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 654

Original Poster
Rep: Reputation: 53
micheal, that suggestion worked wonderfully. Thank you all very much for your help!




Shane
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
automount vfat partition with rw access for any user Simon Bridge Red Hat 12 05-26-2005 09:37 AM
mounting vfat-partition rw for all users ruh31 Debian 4 01-27-2005 05:27 AM
vfat partition access denied demmylls Linux - General 1 01-19-2004 03:09 AM
vfat partition - write permission for users group digitized_funk Linux - Newbie 8 03-19-2003 08:30 AM
Access a vfat mounted partition vector Slackware 2 02-25-2003 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:15 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