External HDD auto-mounted as root

JD jd1008 at gmail.com
Sat Mar 26 05:04:31 UTC 2011


On 03/25/2011 09:47 PM, suvayu ali wrote:
> Hi Hiisi and JB,
>
> On Fri, Mar 25, 2011 at 9:07 PM, JD<jd1008 at gmail.com>  wrote:
>> On 03/25/2011 08:37 PM, Suvayu Ali wrote:
>>> Hi everyone,
>>>
>>> I just bought a 1TB WD Passport. It came formatted as NTFS, on plugging
>>> it in, it auto-mounted as the regular user. But after I formatted it to
>>> use ext4 (with gparted), it keeps getting auto-mounted as root both on
>>> F13 and F14. Any ideas what I could do about this?
>>>
>> Udev is the daemon that associated a drive name in /dev
>> with a physical drive. You have a choice of either using
>> uuids or make udev rules for each drive.
>>
> I presume by uuids you mean put it in my fstab? And wouldn't udev rules
> be machine specific too? Doesn't either of these defeat the purpose of
> portable external drives? I would have to do this one all my current
> systems, and all future systems I wish to use these drives with?
>
> I was hoping there would be a more generic solution. I am surprised
> since my USB flash drives are auto-mounted as regular user just fine.
>
uuid's are supposed to be universal - but I am not sure what that means.
>From  the man page:
OSSP uuid - Universally Unique Identifier Command-Line Tool

That said, I do not know of any way that will let you
connect your drive to any (Linux?) system and expect it to be automounted
onto some specific mount point (assuming the mount point exists).


More information about the users mailing list