public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] Automount under mdev; looking for testers
  @ 2012-05-29  6:32 99%   ` Walter Dnes
  0 siblings, 0 replies; 1+ results
From: Walter Dnes @ 2012-05-29  6:32 UTC (permalink / raw
  To: gentoo-user

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 <waltdnes@waltdnes.org>



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2012-05-28 22:18     [gentoo-user] Automount under mdev; looking for testers Walter Dnes
2012-05-29  2:13     ` Pandu Poluan
2012-05-29  6:32 99%   ` Walter Dnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox