Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-29-2004, 02:35 PM
|
#1
|
Member
Registered: Sep 2003
Location: Lancaster, CA
Distribution: Ubuntu 9.10
Posts: 97
Rep:
|
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
|
|
|
08-29-2004, 02:43 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Have a look in /path/to/kernel-source/Documentation/devices.txt
Cheers,
Tink
|
|
|
08-29-2004, 03:29 PM
|
#3
|
Member
Registered: Sep 2003
Location: Lancaster, CA
Distribution: Ubuntu 9.10
Posts: 97
Original Poster
Rep:
|
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
|
|
|
08-29-2004, 03:49 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
08-29-2004, 09:56 PM
|
#5
|
Member
Registered: Sep 2003
Location: Lancaster, CA
Distribution: Ubuntu 9.10
Posts: 97
Original Poster
Rep:
|
ok...I was able to re-create the modem link. Thanks
|
|
|
All times are GMT -5. The time now is 03:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|