Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to make usb mounted folders write permission?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Sun Dec 19, 2010 3:01 am    Post subject: how to make usb mounted folders write permission? Reply with quote

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
View user's profile Send private message
ASID
Apprentice
Apprentice


Joined: 22 Mar 2006
Posts: 195

PostPosted: Mon Dec 20, 2010 8:29 am    Post subject: Reply with quote

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
:D
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Mon Dec 20, 2010 9:24 am    Post subject: Reply with quote

/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
View user's profile Send private message
ASID
Apprentice
Apprentice


Joined: 22 Mar 2006
Posts: 195

PostPosted: Mon Dec 20, 2010 9:49 am    Post subject: Reply with quote

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
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Fri Dec 24, 2010 8:32 am    Post subject: Reply with quote

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
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Sat Dec 25, 2010 4:26 am    Post subject: Reply with quote

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
View user's profile Send private message
ASID
Apprentice
Apprentice


Joined: 22 Mar 2006
Posts: 195

PostPosted: Wed Jan 05, 2011 2:34 pm    Post subject: Reply with quote

Can you post the /etc/mtab ?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Wed Jan 05, 2011 3:31 pm    Post subject: Reply with quote

Gnome stopped using gnome-volume-manager to automount awhile ago.
Back to top
View user's profile Send private message
briancarden0
n00b
n00b


Joined: 05 Jan 2011
Posts: 1
Location: Nashville

PostPosted: Wed Jan 05, 2011 4:40 pm    Post subject: how to make usb mounted folders write permission? Reply with quote

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
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Wed Jan 05, 2011 5:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum