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
|
|
|
|
2002-09-28 22:08:29 +01:00
|
|
|
<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>
|
2001-04-14 04:37:07 +01:00
|
|
|
|
2002-09-08 22:54:14 +01:00
|
|
|
<para>Prepare for the creation of the device files by running the
|
|
|
|
following commands:</para>
|
2001-02-08 02:46:55 +00:00
|
|
|
|
2002-09-02 16:46:18 +01:00
|
|
|
<para><screen><userinput>cp MAKEDEV-&makedev-version; /dev/MAKEDEV &&
|
2001-10-27 23:21:44 +01:00
|
|
|
cd /dev &&
|
2002-08-31 00:08:49 +01:00
|
|
|
chmod 754 MAKEDEV</userinput></screen></para>
|
2001-02-08 02:46:55 +00:00
|
|
|
|
2002-09-08 22:54:14 +01:00
|
|
|
<para>Most people will now want to create devices by running:</para>
|
2002-09-02 16:46:18 +01:00
|
|
|
<para><screen><userinput>./MAKEDEV -v generic</userinput></screen></para>
|
2001-08-16 23:26:29 +01:00
|
|
|
|
2002-09-08 22:54:14 +01:00
|
|
|
<para>But if you intend to use devpts, then run this instead:</para>
|
2002-09-02 16:46:18 +01:00
|
|
|
<para><screen><userinput>./MAKEDEV -v generic-nopty</userinput></screen></para>
|
2001-08-16 23:26:29 +01:00
|
|
|
|
2002-09-08 22:54:14 +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 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>
|
2001-08-16 23:26:29 +01:00
|
|
|
|
2002-09-08 22:54:14 +01:00
|
|
|
<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>
|
2001-02-23 19:47:41 +00:00
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|