LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-29-2004, 03:35 PM   #1
chilehead
Member
 
Registered: Sep 2003
Location: Lancaster, CA
Distribution: Ubuntu 9.10
Posts: 97

Rep: Reputation: 15
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
 
Old 08-29-2004, 03:43 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Have a look in /path/to/kernel-source/Documentation/devices.txt


Cheers,
Tink
 
Old 08-29-2004, 04:29 PM   #3
chilehead
Member
 
Registered: Sep 2003
Location: Lancaster, CA
Distribution: Ubuntu 9.10
Posts: 97

Original Poster
Rep: Reputation: 15
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
 
Old 08-29-2004, 04:49 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 08-29-2004, 10:56 PM   #5
chilehead
Member
 
Registered: Sep 2003
Location: Lancaster, CA
Distribution: Ubuntu 9.10
Posts: 97

Original Poster
Rep: Reputation: 15
ok...I was able to re-create the modem link. Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Devices jdmml Linux - Newbie 2 07-09-2004 11:10 AM
Devices Sophic Linux - General 0 03-31-2004 10:30 AM
Chp6: Creating devices (Makedev-1.7) fr0zen Linux From Scratch 2 01-22-2004 01:35 AM
sr devices OmegaTemplar Linux - Hardware 1 10-17-2003 04:47 PM
So many devices fyre36 Slackware 2 08-28-2003 11:00 PM


All times are GMT -5. The time now is 05:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration