PDA

View Full Version : [ubuntu] On startup an USB stick is mounted as root


Boldewyn
July 1st, 2008, 02:22 PM
Hi,

I've a Dell Inspiron with Ubuntu 8.04 up and running.

My Problem: When leaving an USB storage stick attached on system shutdown, during the next start it will be mounted as root with rights 700.

That means, other users than root can't open it (ok, thats clear), but even a `sudo chmod 777 /media/usbdisk` fails (no error message, but rights are afterwards again 700).

The only help was an umount and plugin' it in again.

Does anyone know, if there are some preferences to tweak this behaviour? Explaining the other, non-experienced users of my system how umount via terminal works is not an option ;-)

Btw: The stick is formatted as FAT32.

Thanks!

ridgeland
July 12th, 2008, 11:39 PM
I suggest search/learn about udev rules and /etc/fstab.

I used
http://ubuntuforums.org/showthread.php?t=168221
as a starting point.

udev rules plus /etc/fstab tells my PC how to mount my USB card readers etc.

PinkFloyd102489
July 12th, 2008, 11:55 PM
Just a tip: Chmodding a mounted dir wont work. You have to umount it, chmod, then remount.