| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 | <sect2><title> </title><para> </para></sect2><sect2><title>Creating devices</title><para>Please note that unpacking the MAKEDEV-&makedev-version;.bz2 filedoesn't create a directory for you to <userinput>cd</userinput> into, asthe file only contains a single shell script.</para><para>Install the MAKEDEV script:</para><screen><userinput>bzcat MAKEDEV-&makedev-version;.bz2 > /dev/MAKEDEVchmod 754 /dev/MAKEDEV</userinput></screen><para>Run the script to create the device files:</para><screen><userinput>cd /dev./MAKEDEV -v generic-nopty</userinput></screen><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 verbosemode. The <userinput>generic-nopty</userinput> parameter instructs MAKEDEV tocreate a generic selection of commonly used device special files, except for theptyXX and ttyXX range of files. We don't need those files because we are goingto use Unix98 PTYs via the <emphasis>devpts</emphasis> filesystem.</para></listitem></itemizedlist><para>If a device you need is missing, try running<userinput>./MAKEDEV -v <device></userinput>. Alternatively, you maycreate devices via the <emphasis>mknod</emphasis> program. Please refer tothe man and info pages of <emphasis>mknod</emphasis> if you need moreinformation.</para><para>Additionally, if you were unable to mount the devpts filesystem earlier inthe "Mounting the proc and devpts file systems" section, now is the time totry the alternatives. If your kernel supports the devfs file system, run thefollowing command to mount devfs:</para><screen><userinput>mount -t devfs devfs /dev</userinput></screen><para>This will mount the devfs file system over the top of the new static<filename>/dev</filename> structure. This poses no problems, as the device nodescreated are still present, they are just hidden by the new devfsfilesystem.</para><para>If this still doesn't work, the only option left is to use the MAKEDEVscript to create the ptyXX and ttyXX range of files that would otherwise not beneeded. Ensure you are still in the <filename>/dev</filename> directory then run<userinput>./MAKEDEV -v pty</userinput>. The downside of this is, we arecreating an extra 512 device special files which will not be needed when wefinally boot into the finished LFS system.</para></sect2>
 |