Mailinglist Archive: opensuse (2778 mails)
| < Previous | Next > |
[opensuse] how does udev and automatically mounting a device in SuSE 10.3 work.
- From: "Scott Pancoast" <SPancoast@xxxxxxxx>
- Date: Fri, 23 May 2008 12:40:48 -0400
- Message-id: <DF569A62D4A461488173EBE91C0432240334AD85@xxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |