LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   creating new devices (https://www.linuxquestions.org/questions/linux-newbie-8/creating-new-devices-223989/)

chilehead 08-29-2004 02:35 PM

creating new devices
 
I don't seem to have a modem device. I may have accidentally deleted it at some point in time, but it no longer seems to exist. I checked in the /dev directory, and it is not there. I have read a bit on creating new devices, and it seems that the mknod command is the one to use, yet the stuff that I have read tells me that I need to know the major and minor nimbers for this device. Where do I find these numbers?

Also, when I invoke the mknod command, are there any options that I need to use? Any help would be greatly appreciated.

BTW..I am running Mandrake 9.2, if that helps. If any other system info is needed, let me know and I'll provide it.

Thanks

Tinkster 08-29-2004 02:43 PM

Have a look in /path/to/kernel-source/Documentation/devices.txt


Cheers,
Tink

chilehead 08-29-2004 03:29 PM

not sure if I was looking in the right place, but I found a "devices.txt" file in /usr/share/doc/makedev-4.1/. It was an incredibly long file, and when I finally located dev/modem, all it said was that it is a locally defined symbolic link that should point to the appropriate primary TTY device. Well, it does exist, or at least it used to on my machine. So I still am at a loss as to how to relate this to making it again using mknod.... So any more wisdom would be a great help... And remember I'm still a NEWBIE... so it helps when you spell things out explicitly. Thanks

Tinkster 08-29-2004 03:49 PM

What that text says is that /dev/modem is merely a
symlink. What you're really after is a /dev/ttyS<n>
that corresponds to your actual modem, and then
just re-create that symlink ...


Cheers,
Tink

chilehead 08-29-2004 09:56 PM

ok...I was able to re-create the modem link. Thanks


All times are GMT -5. The time now is 07:31 PM.