USB management

Magnus Therning magnus at therning.org
Fri Oct 21 13:45:24 UTC 2005


On Fri, Oct 21, 2005 at 12:42:51PM +0200, Christoph Bier wrote:
>Can somebody please point me to a document where I can find how Ubuntu
>manages USB devices. I know that it's done via hotplug. But I couldn't
>find the mount command used by this procedure.

I don't have any good direct pointers to resources, but basically this
is what happens (please correct me if I'm wrong):

 kernel finds out that new hardware is plugged in
 udev is informed and creates a device node for it
 hal is informed of the new hardware
 hal sends out messages using d-bus

Somewhere in there the needed kernel modules are loaded. The mounting is
done by whatever is listening to hal's messages. In GNOME it's
gnome-volume-manager (gvm), and it's hardcoded to use `pmount`.

Hopefully that gives you enough information to find out how to do
whatever you want to do.

If you are interested in HAL I've recently had to deal with it to
prevent gvm to mount a partition on my USB stick:
http://therning.org/magnus/archives/72

/M

-- 
Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
magnus at therning.org
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

Applying computer technology is simply finding the right wrench to
pound in the correct screw.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20051021/34aa4c3a/attachment.sig>


More information about the ubuntu-users mailing list