Creating devices (Makedev-1.4)

Estimated build time:           1 minute
Estimated required disk space:  57 KB

Creating devices

Note: the MAKEDEV-1.4.bz2 file you have unpacked is not an archive, so it won't create a directory for you to cd into.

Create the device files by running the following commands:

cp MAKEDEV-1.4 /dev/MAKEDEV &&
cd /dev &&
chmod 754 MAKEDEV

Now, depending on whether you are going to use devpts or not, you can run one of two commands:

If you do not intend to use devpts, run:

./MAKEDEV -v generic

If you do intend to use devpts, then run:

./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 the devices you need. If you are sure you are going to use devpts however, the other command makes sure that you don't create a set of devices which you don't require.

MAKEDEV will create hda[1-20] to hdh[1-20] and such but keep in mind that you may not be able to use all of those devices due to kernel limitations regarding the max. number of partitions.

Command explanations

./MAKEDEV -v generic: This creates generic devices. Normally, these devices are all the devices you need. It's possible that you are missing some special devices that are needed for your hardware configuration. Create them with ./MAKEDEV -v <device>. The generic-nopty option does a similar job but skips some devices which are not needed if you are using devpts.

Contents of MAKEDEV-1.4

Descriptions

MAKEDEV

MAKEDEV is a script that can help in creating the necessary static device files that usually reside in the /dev directory. More information on device nodes can be found in the Linux Kernel source tree in Documentation/devices.txt.

Dependencies

MAKEDEV-1.4 needs the following to be installed:


bash: sh
fileutils: chmod, chown, cp, ln, mknod, mv, rm
grep: grep
sh-utils: expr, id