Re: Mounting USB devices with stable names

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

 



Anne Wilson wrote:
> On Friday 10 November 2006 18:22, Mike McCarty wrote:
>>> Hi Mike,
>>>
>>> You may want to read up here:
>>>
>>> http://reactivated.net/writing_udev_rules.html
>>>
>>> Hope this helps,
>> I have only just very briefly looked at the subject, and it indeed
>> seems to address the issue. I have yet to ascertain whether it
>> is the solution I'm looking for. But I'm sending this just to say:
>>
>> Thanks so much for the pointer.
>>
> Mikkel Ellertson did quite a bit of work on that - I benefitted from it at the 
> time - when hal and udev first started.  I wonder where he is?  I haven't 
> seen him around lately.
> 
> Anne
> 
I pop in now and then. But not as much as I used to.

As far as mounting goes, you may want to give the file system
labels, and let HAL auto-mount them. The drive then gets mounted on
/media/<label> when it is plugged in. If there is more then one
partition on the drive, then each gets mounted off of /media. If the
partitions are not labeled, then HAL has some other rules it uses to
construct the names. The auto-mounting will normally make FAT file
systems owned by the user who "owns" the console. You can also turn
off auto-mounting in the GUI.

If you have special requirements for how the drive gets mounted,
then you can ether write HAL rules to cover it, or you can have udev
create a special device name or symlink based on the device. Vendor
ID and device ID are usually enough, but you can also use the serial
number.

I can give better advice if I know exactly what you are after. I am
not an expert on this. But I have played around enough that I can
probably point you in the right direction.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux