PDA

View Full Version : [ubuntu] user rights mounting USB ext3 external disk



nccm
July 4th, 2008, 07:29 AM
I have ext3 formatted a freecom 250GB external USB disk, but can only access it as su.
I think that it is possible to edit fstab, but how can I reach the point where the automatic mounting gives a normal user the rights to access this drive?

The mount information:
/dev/sdb1 on /media/disk type ext3 (rw,nosuid,nodev,uhelper=hal)

Thanks for your kind help,
Niels

chewearn
July 4th, 2008, 09:14 AM
After auto-mounting, you run chown. E.g.


sudo chown user:user /media/disk

/media/disk
Where the disk got automounted

user
Your username.

nccm
July 4th, 2008, 11:56 PM
Thanks,

It works.
But it should be done automatically when I plug in my usb drive.

Niels

chewearn
July 5th, 2008, 04:18 AM
Thanks,

It works.
But it should be done automatically when I plug in my usb drive.

Niels

You only need change the owner once. The disk will "remember" your change, and you don't have to do it in subsequent user automount.

nccm
July 5th, 2008, 07:15 AM
Thank you, I am completely happy.

Niels

simiasota
May 4th, 2009, 10:37 AM
hello,
I'm trying to deal with the same problem.. or almost the same:
I would like to be able to mount the external disk in different linux boxes, where I'm identified by different uids.
Once I chowned the root of the external disk to my uid in that linux box, said it LB1, I would unmount the disk, access another LB (LB2) and automount the disk with complete ownership, even if my uid on LB2 is different from that on LB1.

Should it be possible?

many thanks
francesco