Estimated build time: 0.07 SBU Estimated required disk space: 50 KB |
Note that unpacking the MAKEDEV-1.7.bz2 file doesn't create a directory for you to cd into, as the file only contains a script.
Prepare for the creation of the device files by running the following commands:
cp MAKEDEV-1.7 /dev/MAKEDEV && cd /dev && chmod 754 MAKEDEV |
Most people will now want to create devices by running:
./MAKEDEV -v generic |
But if you intend to use devpts, then run this instead:
./MAKEDEV -v generic-nopty |
Note that if you aren't sure, it's best to use the ./MAKEDEV -v generic 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.
MAKEDEV 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.
./MAKEDEV -v generic: This creates a whole bunch of devices. Normally, these are all the devices you will need. But it is possible that some special devices needed for your hardware configuration are missing. Create these with ./MAKEDEV -v <device>. The generic-nopty option mostly creates the same devices as generic, but skips those that aren't needed if you are using devpts.
Last checked against version 1.5.
MAKEDEV
MAKEDEV is a script that creates the necessary static device nodes usually residing in the /dev directory. Detailed information on device nodes can be found in the Linux kernel source tree in Documentation/devices.txt.
Last checked against version 1.5.
Bash: sh
Fileutils: chmod, chown, cp, ln, mknod, mv, rm
Grep: grep
Sh-utils: expr, id