I have been researching this, I have most of it figured out, parts are still sketchy, but here is what I have uncovered /figured out so far; Currently, in SUSE version 10.3, it works like this: When you boot the system, a few deamons start. The Kernel (obviously not a deamon, but it is involved) Dbus - I don't know what dbus stands for. Udevd - the udev deamon Hald - the hardware abstraction layer In KDE you have two more deamons running A system notification deamon And a device management deamon So far those are the programs involved. After the system is up and running: The kernel is doing it's thing in the background. A user plugs in a device. The kernel or hald (I am not sure who starts this process) identifies the device has been plugged into the computer. Hald examines the device and reports the properties it has identified for the device to the kernel. Hald also maintains the device information database used by the kernel (http://webcvs.freedesktop.org/hal/hal/doc/spec/hal-spec.html) Hald communicates it's finding via dbus to the kernel, and to udev. Udev is responsible for creating the device nodes located in "/dev" And recently, it is also responsible for module loading. (see man udev, http://www.reactivated.net/writing_udev_rules.html, the readme in /etc/sysconfig/hardware/README.hwcfg_and_device_initialization and a nice little tutorial on connecting device with udev, www.linux.format.co.uk lfx66 May 2005) udev get information about the device from the kernel, and then based on it's rules, udev creates a device node. At this point udev is done and you have a device node that can be mounted. At the console (or command line) you have to manually mount the device. I think it is possible to write a script and have udev run the script to mount the device, but I haven't tried it yet. In kde the actual mounting is handled by two deamons. (configure desktop > kde Components > Service Manager > Startup Services) KDED Media Manager and Media Notifier deamon. These two work together to mount and display devices. In gnome, there is the gnome_volume_manager that handles the mounting of devices. I hope this helps. I won't swear that everything is accurate; I am still trying to figure it all out myself. If anyone else is reading this and you have more information, or more correct information please jump in and correct me. Personally, I am trying to figure out how to change the default mounting from r/w to readonly in KDE. I haven't figured it out yet. :-) Best of luck Scott Pancoast -----Original Message----- From: John Andersen [mailto:jsamyth@gmail.com] Sent: Thursday, May 29, 2008 5:11 PM Cc: opensuse@opensuse.org Subject: Re: [opensuse] Documentation on Hotplugging in 10.3, usb-drives On Thu, May 29, 2008 at 4:59 AM, Dr. Thomas Bruns <th.bruns@freenet.de> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
~ Hi,
I'm desperately searching for information/documentation on how the hotplugging works and is configured in OpenSuSE 10.3
The origin of my quest was, that I wanted to change the default mount options for vfat-partitions on external USB-drives (shortname=lowercase => shortname=mixed). However, all I found was a sdb-article for 9.x and the files in /etc/sysconfig/hotplug mentioned there are no longer existing.
Well hotplugging works like a charm, but neither goggle, nor "find /. -iname '*hotplug*' , nor "grep -R lowercase /etc/* " brought any results which explain how.
I invested several hours already searching for hints on the system and in the web !!!
Where is this configuration hidden and how does it work in current OpenSUSE systems ???
Any help is appreciated,
Thomas
I'd love to find this documentation as well. This whole mounting of devices is one of the deepest mysteries in Linux, and it seems like a moving target. Coders always seem to be the worst documentors, but someone should sit the developer down and pick his brain, and put it in the wiki or something. -- ----------JSA--------- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org