Navigation: [prev KC1: Won't boot with new kernel] [next KC3: Networking] [Kernel Compilation] [Table of Contents]
Notice: as of kernel-2.6.13 devfs is no longer included in the kernel in favour of [topic=406527]udev[/topic].
KC2. What is devfs? Do I really need it in my kernel? How do I enable it?
Devfs isn't a file system in the traditional sense of the term with regard to how data is structured inside a partion. Rather, devfs is a system that allows the kernel to automagically make relevent hardware device entries in your /dev/ directory when it initializes a driver that is either built into the kernel or when a module is loaded.
While Gentoo can be run without devfs, you will have to manually make new device entries in the /dev/ directory on your own with the mknod or mkdev commands, which introduces some extra (and usually needless) complexity.
To enable devfs in the kernel, start by bringing up the kernel configuration screen with "make menuconfig" in your /usr/src/linux directory. You may first have to enable experimental options support by going into the very first section "Code Maturity Level Options -->" and say yes to the option "Prompt for development and/or incomplete drivers". Then exiting out of that section, go into the "File Systems -->" section. Then scroll down with the down arrow key until you see the option for "/dev file system support (EXPERIMENTAL)". Select yes to this option and the sub-option that will come up beneath it "Mount automatically at boot." You can then exit out of this section and then either make any more changes you wish to your kernel, or simply exit out of the kernel configuration screen alltogether. You can now build your kernel as normal, and it will have proper devfs support.

