On Tue, May 29, 2012 at 09:13:24AM +0700, Pandu Poluan wrote > A quick question : for automounting to work, do you need to do sysctl -w > kernel.hotplug=/sbin/mdev , or is it optional?
Thanks, I'll have to document that. In .config, I think you need "CONFIG_HOTPLUG=y". I don't know if the kernel can even be built without it. What output do you get from the command cat /proc/sys/kernel/hotplug I get... /sbin/mdev That's what you need. *IF THAT IS NOT THE CASE FOR YOU* the docs at http://git.busybox.net/busybox/plain/docs/mdev.txt give 2 options... 1) If you have a proc file system (yes we do), the way to do it is echo /sbin/mdev > /proc/sys/kernel/hotplug 2) For embedded systems without a proc filesystem, you can sysctl -w kernel.hotplug=/sbin/mdev Option 2 would probably also work for Gentoo, but the proc filesystem makes things a lot easier. In my case hotplug support was enabled and /sbin/mdev was already listed in /proc/sys/kernel/hotplug. Google turns up a lot of documentation for mdev on stripped down embedded systems. Trying to apply it to a desktop PC is breaking new ground. -- Walter Dnes <[email protected]>

