Re: making new device names with mknod

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux