hanes Posted April 13, 2006 Report Share Posted April 13, 2006 I have a drive, /dev/sda1 that I mount as /mnt/data (fat32), this drive has worked for a long time, now all of a sudden it is read only for everyone but root. Windows can write to it just fine... I can chown it to the right user, every time I try to mount it right (with umask=0) I still can't get regular users to write to it. Anyone know whats going on? Hanez Quote Link to comment Share on other sites More sharing options...
scarecrow Posted April 14, 2006 Report Share Posted April 14, 2006 Add "uid=hanes" or "gid=users" to the /etc/fstab mount argument. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted April 14, 2006 Report Share Posted April 14, 2006 What is the contents of your /etc/fstab for this drive? Quote Link to comment Share on other sites More sharing options...
hanes Posted April 14, 2006 Author Report Share Posted April 14, 2006 GNU nano 1.3.8 File: /etc/fstab # This file is edited by fstab-sync - see 'man fstab-sync' for details /dev/hda1 / ext3 defaults 1 1 /dev/hda6 /home ext3 defaults 1 2 /dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,sync,codepage=850,noauto,ro,exec,users 0 0 /dev/hdd /mnt/cdrom2 auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0 /dev/sda1 /mnt/data vfat umask=0,iocharset=iso8859-1,codepage=850 0 0 none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0 /dev/hdb1 /mnt/win_c ntfs umask=0,nls=iso8859-1,ro 0 0 none /proc proc defaults 0 0 /dev/hda5 swap swap defaults 0 0 Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted April 14, 2006 Report Share Posted April 14, 2006 This is my entry for mine: /dev/sda1 /mnt/removable auto user,noauto 0 0 auto defines detection of the filesystem, so if you change it from FAT32, then it will automatically mount it, without you having to change the fstab file. The user setting allows me to access as a standard user, and noauto means it won't attempt to mount it automatically when the system is booted, since the disk might not be connected. This should work perfectly fine for you. Yours is missing the "user" entry, so this could be your problem. Quote Link to comment Share on other sites More sharing options...
scarecrow Posted April 14, 2006 Report Share Posted April 14, 2006 The "user" argument just allows (u)mounting the filesystem to any user, but does not change the contents ownership! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.