Can't chmod a mounted HD (Ubuntu 8.04)

Archives Forums/Linux Discussion/Can't chmod a mounted HD (Ubuntu 8.04)

plash(Posted 2008) [#1]
I changed my fstab (and made the directories using 'sudo mkdir /media/disk(-1)') to mount my two FAT32 (one is Windows XP) drives, as following:
/dev/sda1	/media/disk	vfat	defaults	0	0
/dev/sdb1	/media/disk-1	vfat	defaults	0	0


They get mounted just fine, but the user only has read rights to all the files in either drive. I've tried 'sudo chmod -R a+r+w+x /media/disk(-1)' (and in many other ways, using o+r+w+x, r+w+x, 644 and 755), it changes the permissions (rightclick->properties on /media/disk) for "Group: root" and "Others". But the files inside the drives still have read-only access for "Group: root" and "Others".

Great. So I tried to play around with the options for fstab, changing 'defaults' to 'rw,user,noauto,exec'. Nothing.

Help?


dawlane(Posted 2008) [#2]
Try this adding this iocharset=utf8,umask=000,uid=plash (or whatever your user name is) in fstab instead of defaults

have a look at the fstab wikki http://en.wikipedia.org/wiki/Fstab


plash(Posted 2008) [#3]
Thank you very much.


dawlane(Posted 2008) [#4]
At least you didn't ask about NTFS read/write access :)
A wouldn't trust the open NTFS project just yet


Htbaa(Posted 2008) [#5]
ntfs-3g is trusted enough and stable for a while now.


D4NM4N(Posted 2008) [#6]
While were on it, anyone know how to force-mount a usb ntfs disk when it has not been safely removed from windowze? It appears not to mount for safety but sometimes it would be nice to force it anyway.


dawlane(Posted 2008) [#7]
Hey D4NM4N I hear there is way to force a dirty NTFS to mount but it's not recommended. I did a bit of googling on this and found this http://ubuntuforums.org/showthread.php?t=836409
and this https://help.ubuntu.com/community/Mount/USB
Read halfling85 post near the bottom and let me know if it helps ;)

I wonder if there is a way to do this with a script ?


D4NM4N(Posted 2008) [#8]
tx :)