[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mtab SNAFU



Haines Brown <brownh@hartford-hwp.com> writes:

> Thanks for your reply. Yes, I sometimes run into trouble by having too
> many different USB drives to mount. I got the impression that
> configuring udev was the answer, but I was intimidated by the coding
> necessary to do it.

disk/by-id is now provided by udev config (may be by debian). So you
should not have any udev coding to do.

>> On my side, to be sure that a usb-device is always mounted on the same
>> point, I use an entry from /dev/disk/by-id/ instead of relying on
>> /dev/sdd1.  
>
> Interesting. I see the logic by looking at /dev/disk/by-id, and it
> looks simple. But I am a bit nervous about experimenting. Can you
> refer me to a HOWTO, or do I have to play around to see if I can get
> it to work? It seems this use of by-id is actually part of udev.

It's quite simple:
- check the content of /dev/disk/by-id
- plug your thumb-drive
- check the new entries in  /dev/disk/by-id
- add this kind of line to your fstab:
  /dev/disk/by-id/<new_entry> <usb_mount_point> auto rw,noatime,user 0 0 

HTH

-- 
Dominique Dumont 
"Delivering successful solutions requires giving people what they
need, not what they want." Kurt Bittner



Reply to: