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.
|
 |
03-10-2005, 06:34 PM
|
#1
|
LQ Newbie
Registered: Mar 2005
Posts: 5
Rep:
|
Change /dev Designation?
Is it possible to force Linux to use a different /dev designation for a device?
I want to make it recognize my modem as something other than /dev/ttyS14, as the kernel I'm currently using (and that I can't compile more easily than I can learn to use mknod or something else) only supports up to /dev/ttyS13.
I'm about to tear my hair out.
|
|
|
03-11-2005, 11:18 AM
|
#2
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
I think it's possible to use an alias in the /etc/modules.conf file, but as for exactly how to do that, I'm not sure.
It's something along the lines of:
alias /dev/ttyS04 /dev/ttyS03
or if the module for your modem is something like lt_modem, you might try:
alias lt_modem /dev/ttyS03
but this is only a guess from reading the modules.conf man page, I may well be wrong.
Last edited by Komakino; 03-11-2005 at 11:22 AM.
|
|
|
03-11-2005, 11:31 AM
|
#3
|
LQ Newbie
Registered: Mar 2005
Posts: 5
Original Poster
Rep:
|
The problem isn't that I can't let programs access the modem, it's that the kernel is not built with support to detect/use the device...
|
|
|
03-11-2005, 12:23 PM
|
#4
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
Quote:
Originally posted by Cicatriz
The problem isn't that I can't let programs access the modem, it's that the kernel is not built with support to detect/use the device...
|
So you need kernel modules? Or what...? You said you wanted to change designation, I've suggested how to do that. What exactly is it you need?
|
|
|
03-11-2005, 12:57 PM
|
#5
|
LQ Newbie
Registered: Mar 2005
Posts: 5
Original Poster
Rep:
|
No. In the kernel config there's an option to set how many 'legacy' serial devices (ttySx--I think these are designated as legacy in this case) are supported. My modem is detected and assigned the node /dev/ttyS14 (known from previous experience), but the kernel the system is using supports only up to /dev/ttyS13, and I don't have the necessary tools to recompile it. I need it to be something other than /dev/ttyS14.
I'm about to try a couple of commands I happened upon on Google..
makedev /dev/ttyS14
mknod -m 666 /dev/ttyS14 c 4 78
Sorry for the lack of clarity. I'm really, really exasperated by this.
Last edited by Cicatriz; 03-11-2005 at 12:59 PM.
|
|
|
All times are GMT -5. The time now is 01:59 PM.
|
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
|
|