7.18. Populating /dev

7.18.1. Creating Initial Device Nodes

[Note]

Note

The commands in the remainder of the book should be run as the root user. Also, double-check that ${CLFS} is set as root.

When the kernel boots the system, it requires the presence of a few device nodes, in particular the console and null devices. The device nodes will be created on the hard disk so that they are available before udev has been started, and additionally when Linux is started in single user mode (hence the restrictive permissions on console). Create these by running the following commands:

mknod -m 600 ${CLFS}/dev/console c 5 1
mknod -m 666 ${CLFS}/dev/null c 1 3