2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
2001-03-28 22:20:29 +01:00
|
|
|
<title>Creating devices</title>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-08-17 00:21:31 +01:00
|
|
|
<para>Note: the MAKEDEV-&makedev-version;.bz2 file you have unpacked is not an archive, so it
|
2001-07-22 20:45:10 +01:00
|
|
|
won't create a directory for you to cd into.</para>
|
2001-04-14 04:37:07 +01:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Create the device files by running the following commands:</para>
|
2001-02-08 02:46:55 +00:00
|
|
|
|
2002-08-27 00:43:23 +01:00
|
|
|
<para><screen><userinput>ln -s /static/bin/bash /bin/bash &&
|
|
|
|
cp MAKEDEV-&makedev-version; /dev/MAKEDEV &&
|
2001-10-27 23:21:44 +01:00
|
|
|
cd /dev &&
|
2002-08-27 00:43:23 +01:00
|
|
|
chmod 754 MAKEDEV &&
|
|
|
|
rm /bin/bash</userinput></screen></para>
|
2001-02-08 02:46:55 +00:00
|
|
|
|
2001-08-16 23:26:29 +01:00
|
|
|
<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>
|
2001-12-03 17:57:08 +00:00
|
|
|
<para><screen><userinput>./MAKEDEV -v generic</userinput></screen></para>
|
2001-08-16 23:26:29 +01:00
|
|
|
|
|
|
|
<para>If you do intend to use devpts, then run:</para>
|
2001-12-03 17:57:08 +00:00
|
|
|
<para><screen><userinput>./MAKEDEV -v generic-nopty</userinput></screen></para>
|
2001-08-16 23:26:29 +01:00
|
|
|
|
|
|
|
<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>
|
|
|
|
|
2002-06-03 12:27:19 +01:00
|
|
|
<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 these devices due to kernel
|
|
|
|
limits on the maximum number of partitions.</para>
|
2001-02-23 19:47:41 +00:00
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|