View previous topic :: View next topic |
Author |
Message |
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Sun Dec 19, 2010 3:01 am Post subject: how to make usb mounted folders write permission? |
|
|
when i plug in usb hdd the partitions are all mounted in /media not writable. ntfs,ext3 parts.
i cannot copy /move files to /media mounts.from internal hdd
this is in gnome desktop.
any help ?
in windows i am able to do it. it is not sharing problem _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
ASID Apprentice
Joined: 22 Mar 2006 Posts: 195
|
Posted: Mon Dec 20, 2010 8:29 am Post subject: |
|
|
Does your user belong to plugdev group?
For ntfs is a little bit trickier. You should have something in your fstab like the following:
Code: |
/dev/sda2 /media/Windows/Win-C ntfs-3g auto,users,exec,uid=1000,gid=1000 0 0 |
You should use ntfs-3g (emerge it) if you want to write to ntfs. Also you could mount it with uid and gid of your user so as to write to them.
Good luck
|
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Mon Dec 20, 2010 9:24 am Post subject: |
|
|
/dev/sda1 and /dev/sda2 are ntfs and mounted with ntfs-3g in fstab.
there it works correctly and i can read write execute files.
only when a usb hdd is plugged in the problem starts.
mounting and copying from usb partition works but other way no. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
ASID Apprentice
Joined: 22 Mar 2006 Posts: 195
|
Posted: Mon Dec 20, 2010 9:49 am Post subject: |
|
|
Hmmm, then it's just a matter of configuration.
Since you are on gnome I guess you use gnome-volume-manager to automount your usb. It gets additional options from the /system/storage/default_options/$fstype$/mount_options key of gconf.
You can try the following:
Code: | gconf-editor /system/storage/default_options & |
Edit the mount_options key under each filesystem name that you want (e.g. ntfs-3g), like you would in your fstab (e.g. auto,users,exec,uid=1000,gid=1000)
That should probably solve your problem.
|
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Fri Dec 24, 2010 8:32 am Post subject: |
|
|
it does not help in mounting read write mode.
not able to write to usb drive.
permission is only for reading. it does not change with properties adjustments. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Sat Dec 25, 2010 4:26 am Post subject: |
|
|
even as root login the usb drive partitions are mounted in read only mode
root also cannot change the permissions.
by the way i tried in ubuntu-10.10 installation there it works fine. i can write to any usb partition.
help needed , i cannot backup any files to usb hdd now _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
ASID Apprentice
Joined: 22 Mar 2006 Posts: 195
|
Posted: Wed Jan 05, 2011 2:34 pm Post subject: |
|
|
Can you post the /etc/mtab ? |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Wed Jan 05, 2011 3:31 pm Post subject: |
|
|
Gnome stopped using gnome-volume-manager to automount awhile ago. |
|
Back to top |
|
|
briancarden0 n00b
Joined: 05 Jan 2011 Posts: 1 Location: Nashville
|
Posted: Wed Jan 05, 2011 4:40 pm Post subject: how to make usb mounted folders write permission? |
|
|
To enable everyone rw access, the key is umask=0 option to mount command.
sudo mount -o umask=0,uid=nobody,gid=nobody /dev/something /mnt/somewhere
umask=0 is enough, uid and gid just for sake of clarity, so you don't see more 'root' owners than necessarily. |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Wed Jan 05, 2011 5:01 pm Post subject: |
|
|
I'd say 'nls=utf8,fmask=111,dmask=0' is a better set for kernel ntfs.
For ntfs3g,there's no nls=utf8 option, but the other two are correct. |
|
Back to top |
|
|
|