mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-08-03 18:15:54 +01:00
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2880 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
40 lines
1.4 KiB
XML
40 lines
1.4 KiB
XML
<sect2><title> </title><para> </para></sect2>
|
|
|
|
<sect2>
|
|
<title>Creating devices</title>
|
|
|
|
<para>Please note that unpacking the MAKEDEV-&makedev-version;.bz2 file
|
|
doesn't create a directory for you to <userinput>cd</userinput> into, as
|
|
the file only contains a single shell script.</para>
|
|
|
|
<para>Install the MAKEDEV script:</para>
|
|
|
|
<para><screen><userinput>bzcat MAKEDEV-&makedev-version;.bz2 > /dev/MAKEDEV
|
|
chmod 754 /dev/MAKEDEV</userinput></screen></para>
|
|
|
|
<para>Run the script to create the device files:</para>
|
|
|
|
<para><screen><userinput>cd /dev
|
|
./MAKEDEV -v generic-nopty</userinput></screen></para>
|
|
|
|
<para>The meaning of the option:</para>
|
|
|
|
<itemizedlist>
|
|
<listitem><para><userinput>-v generic-nopty</userinput>: The
|
|
<userinput>-v</userinput> parameter tells the MAKEDEV script to run in verbose
|
|
mode. The <userinput>generic-nopty</userinput> parameter instructs MAKEDEV to
|
|
create a generic selection of commonly used device special files, except for the
|
|
ptyXX and ttyXX range of files. We don't need those files because we are going
|
|
to use Unix98 PTYs via the <emphasis>devpts</emphasis> file
|
|
system.</para></listitem>
|
|
</itemizedlist>
|
|
|
|
<para>If a device you need is missing, try running
|
|
<userinput>./MAKEDEV -v <device></userinput>. Alternatively, you may
|
|
create devices via the <emphasis>mknod</emphasis> program. Please refer to
|
|
the man and info pages of <emphasis>mknod</emphasis> if you need more
|
|
information.</para>
|
|
|
|
</sect2>
|
|
|