diff options
author | Timothy Bauscher <timothy@linuxfromscratch.org> | 2003-01-15 09:25:15 +0000 |
---|---|---|
committer | Timothy Bauscher <timothy@linuxfromscratch.org> | 2003-01-15 09:25:15 +0000 |
commit | f8fe1c1eeb0612a83735906285a08f4b5cb56337 (patch) | |
tree | 22a6aee809101c6f66c979bf7d3f5ef112f8c5bc /chapter06/makedev-inst.xml | |
parent | 6293eb6f337084ce16075db0f0228b677c241ee5 (diff) |
Convert makedev into new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2332 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/makedev-inst.xml')
-rw-r--r-- | chapter06/makedev-inst.xml | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/chapter06/makedev-inst.xml b/chapter06/makedev-inst.xml index d9ec9b784..bd35924d3 100644 --- a/chapter06/makedev-inst.xml +++ b/chapter06/makedev-inst.xml @@ -1,30 +1,39 @@ +<sect2><title> </title><para> </para></sect2> + <sect2> <title>Creating devices</title> -<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> +<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>Prepare for the creation of the device files by running the -following commands:</para> +<para><screen><userinput>cp MAKEDEV-&makedev-version; /dev/MAKEDEV</userinput></screen></para> -<para><screen><userinput>cp MAKEDEV-&makedev-version; /dev/MAKEDEV && -cd /dev && +<para>Prepare the script for execution:</para> + +<para><screen><userinput>cd /dev && chmod 754 MAKEDEV</userinput></screen></para> -<para>Most people will now want to create devices by running:</para> +<para>Run the script to create the device files:</para> + <para><screen><userinput>./MAKEDEV -v generic</userinput></screen></para> -<para>But if you intend to use devpts, then run this instead:</para> -<para><screen><userinput>./MAKEDEV -v generic-nopty</userinput></screen></para> +<para>If a device you need is missing, try running +<userinput>./MAKEDEV -v <device></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>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> +<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 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 +<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> |