makedev-inst.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Creating devices</title>
  4. <para>Please note that unpacking the MAKEDEV-&makedev-version;.bz2 file
  5. doesn't create a directory for you to <userinput>cd</userinput> into, as
  6. the file contains one shell script.</para>
  7. <para>Install the MAKEDEV script:</para>
  8. <para><screen><userinput>cp MAKEDEV-&makedev-version; /dev/MAKEDEV</userinput></screen></para>
  9. <para>Prepare the script for execution:</para>
  10. <para><screen><userinput>cd /dev &amp;&amp;
  11. chmod 754 MAKEDEV</userinput></screen></para>
  12. <para>Run the script to create the device files:</para>
  13. <para><screen><userinput>./MAKEDEV -v generic</userinput></screen></para>
  14. <para>If a device you need is missing, try running
  15. <userinput>./MAKEDEV -v &lt;device&gt;</userinput>. Alternatively, you may
  16. create devices via the <emphasis>mknod</emphasis> program. Please refer to
  17. the man and info pages of <emphasis>mknod</emphasis> if you need more
  18. information.</para>
  19. <para>If you intend to use devpts, pass the
  20. <userinput>generic-nopty</userinput> option to <filename>MAKEDEV</filename>.
  21. This creates the same devices as <userinput>generic</userinput>, but it skips
  22. the creation of pty devices so that devpts can manage them itself.</para>
  23. <para><filename>MAKEDEV</filename> will create devices ranging from hda[1-20]
  24. to hdh[1-20] and beyond, but keep in mind that you probably won't be able to
  25. use all of these due to kernel limits on the maximum number of
  26. partitions.</para>
  27. </sect2>