7.20. Populating ${LFS}/dev

#### Cross-Compiled Linux From Scratch - Version 1.0.0rc1-PowerPC64-Multilib

### Chapter 7. If You Are Going to Boot

- Prev

  Udev Rules-0.1-05292006

- Next

  Changing Ownership

- Up.
- Home

# 7.20. Populating ${LFS}/dev

## 7.20.1. Creating Initial Device Nodes

### Note

The commands in the remainder of the book should be run as the `root` user. Also, double-check that $LFS 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 ${LFS}/dev/console c 5 1
    mknod -m 666 ${LFS}/dev/null c 1 3

- Prev

  Udev Rules-0.1-05292006

- Next

  Changing Ownership

- Up.
- Home.