mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 21:49:13 +00:00
2c094d60db
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2138 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
32 lines
1.2 KiB
XML
32 lines
1.2 KiB
XML
<sect2>
|
|
<title>Creating devices</title>
|
|
|
|
<para>Note that unpacking the MAKEDEV-&makedev-version;.bz2 file doesn't create
|
|
a directory for you to cd into, as the file only contains a script.</para>
|
|
|
|
<para>Prepare for the creation of the device files by running the
|
|
following commands:</para>
|
|
|
|
<para><screen><userinput>cp MAKEDEV-&makedev-version; /dev/MAKEDEV &&
|
|
cd /dev &&
|
|
chmod 754 MAKEDEV</userinput></screen></para>
|
|
|
|
<para>Most people will now want to create devices by running:</para>
|
|
<para><screen><userinput>./MAKEDEV -v generic</userinput></screen></para>
|
|
|
|
<para>But if you intend to use devpts, then run this instead:</para>
|
|
<para><screen><userinput>./MAKEDEV -v generic-nopty</userinput></screen></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 all the devices you need. But if you are certain you are going to use
|
|
devpts, the other command skips creating a set of devices you won't need.</para>
|
|
|
|
<para><filename>MAKEDEV</filename> will create hda[1-20] to hdh[1-20] and
|
|
many more of such disk device nodes, but keep in mind that you probably won't
|
|
be able to use all of these, due to kernel limits on the maximum number of
|
|
partitions.</para>
|
|
|
|
</sect2>
|
|
|