Re: USB ownership
Emanoil Kotsev wrote:
> Paul Cartwright wrote:
>
>> Andrei Popescu wrote:
>>> On Mon,20.Oct.08, 17:06:25, Emanoil Kotsev wrote:
>>>
>>>> I suggested to use device by uuid
>>>>
>>>> /dev/disk/by-uuid/3fca395b-d75d-44ab-98be-9ec05b2e45fd
>>>> /media/usb_2G_part3 auto users,noauto,atime,rw,nodev,noexec,nosuid 0 0
>>>
>>> You can shorten this a bit:
>>>
>>> UUID=3fca....
>>>
>>> It's not much, but given that the UUID is already very long...
>>>
>> here is my /etc/fstab entry ( that works)
>> UUID=686C-7E81 /media/usb_DAWGS vfat
>> users,atime,rw,nodev,noexec,nosuid,noauto 0 0
>>
>> ( that was all one line)
>>
>> in the /media folder is a file called .hal-mtab
>> I was trying to add an entry in there for this, so my wife could unmount
>> it, but I was not successful. The fstab entry still mounts it:
>>
>> drwxr-xr-x 2 root root 4096 2008-08-16 15:14 usb_DAWGS
>>
>>
>
> For me the UUID= entry did not work
>
> The /dev/disk/by-uuid work
>
> Paul, the .hal entries are system entries they do not have to be set in
> fstab
>
I tried adding that /dev/disk/by-uuid entry to .hal-mtab , but no change.
I think the REAL way to do it would be with a /etc/udev/rules.d entry,
but after looking at man udev and the 50.udev-rules file, it is way over
my head. I give up. I'll just have to tell her to switch to my user to
add entries, since I seem to own everything inserted.
--
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459
Reply to: