Re: making new device names with mknod
From: Neil Brown <hidden>
Date: 2002-09-10 23:00:15
On Tuesday September 10, norman.schmidt@ratnet.stw.uni-erlangen.de wrote:
Hi! Can somebody tell me how to make new device names in /dev? I have installed two additional ide controllers and want to make md devices out of partitions on devices /dev/hde, /dev/hdg, /dev/hdi and /dev/hdk. In /dev, there are only devices up to hdh. In addition to that, I would need to make the /dev entries for the partitions. Is it possible to use more than 16 md devices, how can I make /dev/md16 and so on? I am using Debian Woody, so no makedev, only mknod is available.
/dev/MAKEDEV ide4 ide5
should make hd[ijkl]....
MAKEDEV doesn't seem to know about md devices > 15.
If you changed
md)
major=`Major md 9` || continue
for part in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
do
makedev md$part b $major $part $disk
done
;;
to
md)
major=`Major md 9` || continue
for part in 0 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
do
makedev md$part b $major $part $disk
done
;;
then
/dev/MAKEDEV md
should make you 31 md devices.
NeilBrown