📄 devices.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content= "application/xhtml+xml; charset=iso-8859-1" /> <title> 7.18. Populating ${LFS}/dev </title> <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="stylesheet" href="../stylesheets/lfs-print.css" type= "text/css" media="print" /> </head> <body id="lfs" class="CLFS-SVN-20060417-MIPS"> <div class="navheader"> <div class="headertitles"> <h4> Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS </h4> <h3> Chapter 7. If You Are Going to Boot </h3> </div> <ul class="headerlinks"> <li class="prev"> <a accesskey="p" href="udev-rules.html" title= "Udev Rules-0.1-04172006">Prev</a> <p> Udev Rules-0.1-04172006 </p> </li> <li class="next"> <a accesskey="n" href="changingowner.html" title= "Changing Ownership">Next</a> <p> Changing Ownership </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 7. If You Are Going to Boot">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a> </li> </ul> </div> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h1 class="sect1"> 7.18. Populating ${LFS}/dev </h1> </div> <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="sect2"> 7.18.1. Creating Initial Device Nodes </h2> </div> <div class="note"> <div class="admonhead"> <img alt="[Note]" src="../images/note.png" /> <h3 class="admontitle"> Note </h3> </div> <div class="admonbody"> <p> The commands in the remainder of the book should be run as the <tt class="systemitem">root</tt> user. Also, double-check that $LFS is set as <tt class="systemitem">root</tt>. </p> </div> </div> <p> When the kernel boots the system, it requires the presence of a few device nodes, in particular the <tt class="filename">console</tt> and <tt class="filename">null</tt> devices. The device nodes will be created on the hard disk so that they are available before <span><strong class="command">udev</strong></span> has been started, and additionally when Linux is started in single user mode (hence the restrictive permissions on <tt class= "filename">console</tt>). Create these by running the following commands: </p> <pre class="userinput"><kbd class="command">mknod -m 600 ${LFS}/dev/console c 5 1mknod -m 666 ${LFS}/dev/null c 1 3</kbd></pre> </div> </div> <div class="navfooter"> <ul> <li class="prev"> <a accesskey="p" href="udev-rules.html" title= "Udev Rules-0.1-04172006">Prev</a> <p> Udev Rules-0.1-04172006 </p> </li> <li class="next"> <a accesskey="n" href="changingowner.html" title= "Changing Ownership">Next</a> <p> Changing Ownership </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 7. If You Are Going to Boot">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a>. </li> </ul> </div> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -