LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   mounting usb pen drive as writeable for other users (https://www.linuxquestions.org/questions/ubuntu-63/mounting-usb-pen-drive-as-writeable-for-other-users-424692/)

linuxmandrake 03-14-2006 05:44 AM

mounting usb pen drive as writeable for other users
 
How do I mount a usb pen drive so it's writeable by other users besides root. Kinda annoying if I have to keep using the terminal to cp files to pen drive.

jomen 03-14-2006 06:21 AM

add the keywords "users" and "rw" to the mount options in /etc/fstab

linuxmandrake 03-14-2006 12:22 PM

I did /dev/sdc1 /media/usb vfat rw,user 0 0

The mount point keeps changing to belong to root when it's mounted
i still cant copy and paste to the mount point using the browser (program used to browse file systems) provided by gnome

aysiu 03-14-2006 01:10 PM

Have you tried this?
Code:

/dev/sdc1 /media/usb vfat iocharset=utf8,umask=000 0 0

nadroj 03-14-2006 01:17 PM

linuxmandrake, jomen said 'users', not 'user'.

lixx 03-16-2006 08:22 PM

Use pmount instead of mount.

linuxmandrake 03-17-2006 04:29 AM

for some reason pmount wont mount it. Just basically says it cant do it

nadroj 03-17-2006 11:52 AM

the command that jomen told you should work.. does it not?

jomen 03-17-2006 12:34 PM

Quote:

I did /dev/sdc1 /media/usb vfat rw,user 0 0
The mount points in /media are usually managed by the systems automounting solutions like pmount or ivman or both or other solutions...the problem with the changing permissions could be there?

If you put it where it normally is - to /mnt - it will not get touched by the system and your permissions will stay the way you set them...

fstab entry:
Code:

/dev/sdc1 /mnt/usb vfat rw,users 0 0
just in case...the directory /mnt/usb needs to exist...

lixx 03-18-2006 04:57 PM

Quote:

Originally Posted by linuxmandrake
for some reason pmount wont mount it. Just basically says it cant do it

pmount works perfectly for me.
$ pmount /dev/sdd1 /mnt/
(sometimes /dev/sdd )
Then I'm able to read/write my flash device as user.
BTW: It is posible mount flash drive/card to any directory U wish (/home/username/foo , for example) with pmount.

linuxmandrake 03-18-2006 06:01 PM

I think I should reinstall pmount.

sudo dpkg -r --force pmount
would uninstall it regardless of dependencies right?
then I'll use apt-get to install it

Is it safe to do?

jomen 03-18-2006 06:23 PM

since it appears to be not working now anyway...yes - it should be safe.
You will reinstall it afterwards anyway - I'd be surprised if this fixes anything though.
What about a change to /etc/fstab like I suggested - did that not change anything - did it not work?

linuxmandrake 03-18-2006 06:37 PM

I reinstalled it and it said permission denied when I executed pmount but works as root.

jomen 03-18-2006 06:53 PM

Did you pay attention to any (possible) messages while you installed it?
(requiering you to do something to make things work...)
pmount is not intended to be used on command-line - it is used by your system to make automounting or mounting with a click in your DE (Gnome or KDE) possible.
For this the user who wants to be able to use this feature needs t be in a certain group sometimes - Ubuntu should have set this up for you - but maybe not...
Check if you can mount the device in your DE by clicking on Computer and selecting the device - it should appear there if you plug it in.

linuxmandrake 03-18-2006 07:18 PM

i did and it complains saying it cant execute it


All times are GMT -5. The time now is 04:19 AM.