[opensuse] how does udev and automatically mounting a device in SuSE 10.3 work.
Hi all; I have been trying to figure out how SuSE10.3 mounts an external device such as a thumb drive or an external hard drive. I have read the man pages on udev, sysfs, hotplug, hw(up|down|status), autofs, etc ... and I am missing something. My understanding is: The device is plugged in. The kernel connects to the device and queries the device for identifying information. udev listen for the signal (from either hotplug or the kernel), and it starts. Udev reads the identifying information from the /sys directory (placed there by the kernel), then udev creates a device node in the /dev directory (or where it is told to, e.g. /dev/sdb) based on it's rules. The rules are found in /etc/udev/rules.d. The part I am missing is what process creates a mount point for the device and actually mounts the device. Essentially, I understand how we get to the device node. But, I am missing the process that automates the command: mount -t ext2 /dev/sdb2 /media/thumbdrive2 I thought it was in the udev rules. Using the "mount+=" statement. But, I can't find that type of a statement for USB devices. Or maybe I missed it. Is the "symlink+=" command doing the work? Or is there something else? Scott -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
"Scott Pancoast" <SPancoast@nw3c.org> writes:
The part I am missing is what process creates a mount point for the device and actually mounts the device.
The process does involved udev, but the work is done by the HAL daemon. The policies and other info for mounting is located in /etc/hal and /usr/share/hal. Charles
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2008-05-23 at 12:40 -0400, Scott Pancoast wrote:
The part I am missing is what process creates a mount point for the device and actually mounts the device.
Essentially, I understand how we get to the device node. But, I am missing the process that automates the command:
mount -t ext2 /dev/sdb2 /media/thumbdrive2
I understand it is done by the desktop (kde or gnome). To proof: log out of kde/gnome, log in text mode, plug in an usb disk. It is recognized, but not mounted, and there is no new mount point - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFINw1/tTMYHG2NR9URAhA5AKCL47HkauS2u78Gfh3PX6/BvEtGEgCfSvfe Tzdxwp539haruLCqbfAnCYQ= =Yx6y -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
"Carlos E. R." <robin.listas@telefonica.net> writes:
I understand it is done by the desktop (kde or gnome).
This is due to the HAL integration in Gnome and KDE. Here is a HAL article on storage devices: http://www.mythic-beasts.com/~mark/random/hal/ Charles
participants (3)
-
Carlos E. R.
-
Charles philip Chan
-
Scott Pancoast