aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/makedev-inst.xml
blob: bd35924d349e261313f0a9f8c3e9c02eb68299fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>

<sect2>
<title>Creating devices</title>

<para>Please note that unpacking the MAKEDEV-&makedev-version;.bz2 file
doesn't create a directory for you to <userinput>cd</userinput> into, as
the file contains one shell script.</para>

<para>Install the MAKEDEV script:</para>

<para><screen><userinput>cp MAKEDEV-&makedev-version; /dev/MAKEDEV</userinput></screen></para>

<para>Prepare the script for execution:</para>

<para><screen><userinput>cd /dev &amp;&amp;
chmod 754 MAKEDEV</userinput></screen></para>

<para>Run the script to create the device files:</para>

<para><screen><userinput>./MAKEDEV -v generic</userinput></screen></para>

<para>If a device you need is missing, try running
<userinput>./MAKEDEV -v &lt;device&gt;</userinput>. Alternatively, you may
create devices via the <emphasis>mknod</emphasis> program. Please refer to
the man and info pages of <emphasis>mknod</emphasis> if you need more
information.</para>

<para>If you intend to use devpts, pass the
<userinput>generic-nopty</userinput> option to <filename>MAKEDEV</filename>.
This creates the same devices as <userinput>generic</userinput>, but it skips
the creation of pty devices so that devpts can manage them itself.</para>

<para><filename>MAKEDEV</filename> will create devices ranging from hda[1-20]
to hdh[1-20] and beyond, 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>

</sect2>