diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-06-13 12:58:23 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-06-13 12:58:23 +0000 |
commit | 3c928f1c576bdc82b3dab964a575ba5bd56b15bf (patch) | |
tree | 433ea1f68a3f6ee78feba4a3ff73cd754f5fba47 /chapter06/devices.xml | |
parent | 7db6ac519b0b42317dd9f0c4e163ba200dfd35ee (diff) |
Added a separate file for the strippingagain section.
Tags correcitions.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3780 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/devices.xml')
-rw-r--r-- | chapter06/devices.xml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/chapter06/devices.xml b/chapter06/devices.xml index e6b1a8c57..b14789fa0 100644 --- a/chapter06/devices.xml +++ b/chapter06/devices.xml @@ -7,13 +7,14 @@ <title>Populating /dev with device nodes</title> <?dbhtml filename="devices.html"?> -<indexterm zone="ch-system-devices"><primary sortas="a-Devices">Devices</primary></indexterm> +<indexterm zone="ch-system-devices"><primary sortas="e-Devices">Devices</primary></indexterm> <sect2> <title>Creating initial device nodes</title> <para>When the kernel boots the system, it requires the presence of a few device -nodes, in particular the console and null devices:</para> +nodes, in particular the <filename class="devicefile">console</filename> and +<filename class="devicefile">null</filename> devices:</para> <screen><userinput>mknod -m 600 /dev/console c 5 1 mknod -m 666 /dev/null c 1 3</userinput></screen> @@ -22,15 +23,17 @@ mknod -m 666 /dev/null c 1 3</userinput></screen> <sect2> <title>Mounting ramfs and populating /dev</title> -<para>The ideal way to populate /dev is to mount a ramfs onto /dev (like tmpfs, but it +<para>The ideal way to populate <filename class="directory">/dev</filename> is +to mount a <systemitem class="filesystem">ramfs</systemitem> onto <filename class="directory">/dev </filename> +like <systemitem class="filesystem">tmpfs</systemitem>, but it cannot be swapped) and create the devices on there during each bootup. Since we haven't booted the system, we have to do what the bootscripts would otherwise do for us, and -populate /dev ourselves. Begin by mounting /dev:</para> +populate <filename class="directory">/dev</filename> ourselves. Begin by mounting <filename class="directory">/dev</filename>:</para> <screen><userinput>mount -n -t ramfs none /dev</userinput></screen> <para>Now use the provided udevstart utility to create the initial devices based on -all the information in /sys:</para> +all the information in <filename class="directory">/sys</filename>:</para> <screen><userinput>/tools/sbin/udevstart</userinput></screen> |