mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 13:37:39 +00:00
f12213ad91
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@986 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
34 lines
1.3 KiB
XML
34 lines
1.3 KiB
XML
<sect2>
|
|
<title>Creating devices</title>
|
|
|
|
<para>Note: the MAKEDEV-&makedev-version;.bz2 file you have unpacked is not an archive, so it
|
|
won't create a directory for you to cd into.</para>
|
|
|
|
<para>Create the device files by running the following commands:</para>
|
|
|
|
<para><screen><userinput>cp MAKEDEV-&makedev-version; /dev/MAKEDEV &&</userinput>
|
|
<userinput>cd /dev &&</userinput>
|
|
<userinput>chmod 755 MAKEDEV</userinput></screen></para>
|
|
|
|
<para>Now, depending on whether you are going to use devpts or not, you
|
|
can run one of two commands:</para>
|
|
|
|
<para>If you do not intend to use devpts, run:</para>
|
|
<para><userinput>./MAKEDEV -v generic</userinput></para>
|
|
|
|
<para>If you do intend to use devpts, then run:</para>
|
|
<para><userinput>./MAKEDEV -v generic-nopty</userinput></para>
|
|
|
|
<para>Note that if you aren't sure, it's best to use
|
|
the <userinput>./MAKEDEV -v generic</userinput> command as this will
|
|
ensure you have the devices you need. If you are sure you are going to
|
|
use devpts however, the other command makes sure that you don't create a
|
|
set of devices which you don't require.</para>
|
|
|
|
<para>MAKEDEV will create hda[1-20] to hdh[1-20] and such but keep in mind
|
|
that you may not be able to use all of those devices due to kernel
|
|
limitations regarding the max. number of partitions.</para>
|
|
|
|
</sect2>
|
|
|