makedev-inst.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <sect2>
  2. <title>Creating devices</title>
  3. <para>Note: the MAKEDEV-&makedev-version;.bz2 file you have unpacked is not an archive, so it
  4. won't create a directory for you to cd into.</para>
  5. <para>Create the device files by running the following commands:</para>
  6. <para><screen><userinput>ln -s /static/bin/bash /bin/bash &amp;&amp;
  7. cp MAKEDEV-&makedev-version; /dev/MAKEDEV &amp;&amp;
  8. cd /dev &amp;&amp;
  9. chmod 754 MAKEDEV</userinput></screen></para>
  10. <para>Now, depending on whether you are going to use devpts or not, you
  11. can run one of two commands:</para>
  12. <para>If you do not intend to use devpts, run:</para>
  13. <para><screen><userinput>./MAKEDEV -v generic &amp;&amp;
  14. rm /bin/bash</userinput></screen></para>
  15. <para>If you do intend to use devpts, then run:</para>
  16. <para><screen><userinput>./MAKEDEV -v generic-nopty &amp;&amp;
  17. rm /bin/bash</userinput></screen></para>
  18. <para>Note that if you aren't sure, it's best to use
  19. the <userinput>./MAKEDEV -v generic</userinput> command as this will
  20. ensure you have the devices you need. If you are sure you are going to
  21. use devpts however, the other command makes sure that you don't create a
  22. set of devices which you don't require.</para>
  23. <para>MAKEDEV will create hda[1-20] to hdh[1-20] and such, but keep in mind
  24. that you may not be able to use all of these devices due to kernel
  25. limits on the maximum number of partitions.</para>
  26. </sect2>