USB management
Christoph Bier
christoph.bier at web.de
Fri Oct 21 14:49:43 UTC 2005
Magnus Therning schrieb am 21.10.2005 15:45:
> 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`.
`pmount' that's it. Thanks!
> Hopefully that gives you enough information to find out how to do
> whatever you want to do.
I just want to know with which flags flash drives get mounted. The
man page to pmount says:
The device will be mounted with the following flags:
async,atime,nodev,noexec,noauto,nosuid,user,rw
But `atime' shouldn't be set for flash drives. As `async' `noatime'
should be set. I expected something like this that's why I
investigated to file a bug report if necessary. But still I'm not
sure whether there's a file I didn't find where further options for
pmount may be set (pmount knows option -A for noatime).
chris at skull:~$ sudo find /etc/ -type f -exec fgrep pmount {} \;
# /etc/pmount.allow
# pmount will allow users to additionally mount all devices that are
man gnome-volume-manager is not that verbose. But it says:
It listens to HAL events and reacts with user-configurable
actions.
Where can I configure these actions? I read the man pages of
gnome-volume-manager and gnome-volume-properties as well as the
README files in /usr/share/doc/gnome-volume-manager. Further ideas?
Thanks so far!
[...]
Regards,
Christoph
--
+++ Typografie-Regeln: http://www.zvisionwelt.de/typokurz.pdf (1.4)
More information about the ubuntu-users
mailing list