source: BOOK/boot/common/devices.xml@ 2d83034

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 2d83034 was ef7cdfb, checked in by Joe Ciccone <jciccone@…>, 15 years ago

During the boot section also create the nodes that the installation of the bootscripts does not create.

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-boot-devices">
9 <?dbhtml filename="devices.html"?>
10
[91ad4a4]11 <title>Populating /dev</title>
[3f8be484]12
13 <indexterm zone="ch-boot-devices">
[91ad4a4]14 <primary sortas="e-/dev/*">/dev/*</primary>
[3f8be484]15 </indexterm>
16
17 <sect2>
18 <title>Creating Initial Device Nodes</title>
19
[bf3dcb3f]20 <note os="a">
21 <para>The commands in the remainder of the book should be run as
[35c749e]22 the <systemitem class="username">root</systemitem> user. Also,
[040521bc]23 double-check that ${CLFS} is set as
[6c4e93e]24 <systemitem class="username">root</systemitem>.</para>
[bf3dcb3f]25 </note>
26
27 <para os="b">When the kernel boots the system, it requires the presence
[3f8be484]28 of a few device nodes, in particular the <filename
29 class="devicefile">console</filename> and <filename
30 class="devicefile">null</filename> devices. The device nodes will
31 be created on the hard disk so that they are available before
32 <command>udev</command> has been started, and additionally when Linux
33 is started in single user mode (hence the restrictive permissions on
34 <filename class="devicefile">console</filename>). Create these by running
35 the following commands:</para>
36
[3f76cac]37<screen><userinput>mknod -m 600 ${CLFS}/dev/console c 5 1
38mknod -m 666 ${CLFS}/dev/null c 1 3</userinput></screen>
[3f8be484]39
[ef7cdfb]40 <para>Before udev starts a tmpfs filesystem is mounted over <filename class="directory">/dev</filename> and the previous entries are no-longer available. The folling command creates files that are copied over by the udev bootscript:</para>
41
42<screen><userinput>mknod -m 600 ${CLFS}/lib/udev/devices/console c 5 1
43mknod -m 666 ${CLFS}/lib/udev/devices/null c 1 3</userinput></screen>
44
[3f8be484]45 </sect2>
46
47</sect1>
Note: See TracBrowser for help on using the repository browser.