LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Suse/Novell (http://www.linuxquestions.org/questions/suse-novell-60/)
-   -   cannot write to automounted usbdisk (http://www.linuxquestions.org/questions/suse-novell-60/cannot-write-to-automounted-usbdisk-406156/)

uselpa 01-21-2006 09:46 AM

cannot write to automounted usbdisk
 
Hi,
when I plug in my USB disk, it gets automounted to /media/usbdisk.
Code:

/dev/sdb1 on /media/usbdisk type subfs (rw,nosuid,nodev,sync,fs=ext2)
However I cannot write to the usbdisk as a normal user:
Code:

pu@susev:/> touch /media/usbdisk/test
touch: cannot touch `/media/usbdisk/test': Permission denied

How can I change this so that a normal user can write to the USB stick?

abisko00 01-21-2006 09:48 AM

Maybe you have no sufficient permissions on the mountpoint:
http://portal.suse.com/sdb/en/2005/0...iteaccess.html

uselpa 01-21-2006 10:08 AM

I should have all rights:
Code:

drwxrwxrwx  1 root root 0 2006-01-21 16:14 /media/usbdisk/
Even after "chgrp users /media/usbdisk" there's no change.

uselpa 01-21-2006 10:50 AM

It appears to be linked to the fact that I formatted the usb disk with ext2 (although I could mount it fine in Slackware). But even in Slackware every now and then it didn't work and I had to be root to mount it. This was whenever the mount wanted to do an fsck, which only root was allowed to. The bottom line being that ext2 is not a good format for usb sticks.

I've reformatted it to vfat. Now it works well.


All times are GMT -5. The time now is 09:11 PM.