at in newer distros, external media (USB sticks, external disks, CDROMs) are mounted automatically. How does this work, exactly? I tried to hunt it down to no avail. The reason is this: I recently installed Debian 6 on my laptop, which is fine. But one annoying thing is that the first usb media inserted to the computer will always mount as /media/usb0 , no longer /media/<disklabel> .
Now you may argue that disk label can contain spaces and thus is bad for scripts, but at least it can be consistent. I want to know the following: which program or configuration files determines the mount point name and mount option?
Here's the result of my hunt-down so far (for new enough linux distros):
* udisks (the replacement of HAL) is responsible for dispatching device plug/unplug event so that it is mounted properly. Apparently this is done via d-bus.
* gvfs (under GNOME desktop) seems to be responsible for mounting or dismounting the disk.
But that's the farthest
Page: 1 2 3 4 5 6 7 8 9 10