-   SUSE / openSUSE (
-   -   cannot write to automounted usbdisk (

uselpa 01-21-2006 09:46 AM

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

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

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:

uselpa 01-21-2006 10:08 AM

I should have all rights:

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 06:37 AM.