6.10. Creating devices (Makedev-1.7)

Estimated build time:           0.07 SBU
Estimated required disk space:  50 KB

6.10.1. Creating devices

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.

6.10.2. Command explanations

./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.

6.10.3. Contents of MAKEDEV

Last checked against version 1.5.

6.10.4. MAKEDEV Installation Dependencies

Last checked against version 1.5.

Bash: sh
Fileutils: chmod, chown, cp, ln, mknod, mv, rm
Grep: grep
Sh-utils: expr, id