/dev and MAKEDEV

Ynog

Golden Member
Oct 9, 2002
1,782
1
0
I have a probably stupid question.

How do you go about creating dev devices, like hard drives.
Where you have the /dev/hda, then you have /dev/hda1, hda2, hda3 etc etc.

I am curious because i have to create a dev for a diskonchip device. The
diskonchip acts like a harddrive in that it has a ext3 file system on it.
Now I could use MAKEDEV to create a /dev/nftla. However when I try
nftla1, nftla2, ext for each partition, on nftla it fails with this error.

don't know how to make device "nftla1"

Now nftla is disk 93 16.

So would mknod nftla1 disk 93 17 do what I am looking for?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
My copy of MAKEDEV doesn't have any entries for nftla, so you'll probably have to find out what the major/minor numbers for it are from the documentation. They usually are sequential so you're probably right, but they don't have to be so I'd double-check.