LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-30-2005, 12:48 PM   #1
awl
Member
 
Registered: Aug 2005
Location: Belgrade, Serbia
Distribution: Debian testing
Posts: 30

Rep: Reputation: 15
A /dev/modem link not persistent


Well, the title says it. Ok, I have a WinModem, compiled some sources from heby.de and its working fine under /dev/ttyLTM0 . The problem is I have to make a /dev/modem soft link to ttyLTM0 each time I start the system. Where' s the catch?

-------------------------------------------------
I hereby apologize to all of you who helped me with various problems regarding Linux for not clicking the THANKS button , since I just saw it an hour ago, when I was browsing an other post, with the guy who explicitely asked for people to click that if he helps them. SORRY!
 
Old 08-30-2005, 12:57 PM   #2
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 535

Rep: Reputation: 30
The problem could be "udev" if you're using 2.6 series kernel as it resets the whole device nodes sytem at each boot
If you're system is using 2.4 kernel that sounds unusual.
Can you give some additional infos about your system ?
Ciao
 
Old 08-30-2005, 01:08 PM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
A quick "hack" would be to add ln -s /dev/ttyLTM0 /dev/modem in /etc/rc.d/rc.local or just point your modem software to /dev/ttyLTM0.
 
Old 08-30-2005, 01:24 PM   #4
awl
Member
 
Registered: Aug 2005
Location: Belgrade, Serbia
Distribution: Debian testing
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by urka58
The problem could be "udev" if you're using 2.6 series kernel as it resets the whole device nodes sytem at each boot
If you're system is using 2.4 kernel that sounds unusual.
Can you give some additional infos about your system ?
Ciao
yes, i am using 2.6.7 kernel. I remember even something about it in the config docs for the driver, however they do not tell much (smthg like RTFM for udev).

if there is a straightforward solution with udev thingy, please let me know. Otherwise I will use "quick hack" method : )
 
Old 08-30-2005, 01:38 PM   #5
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 535

Rep: Reputation: 30
Yes, you can fix the problem quite easiy this way
Create a new file in your /etc/udev/rules.d called 01-udev.rules with a line like
KERNEL="ttyLTM[0-9]", NAME="%k", SYSFS{dev}="240:1", SYMLINK="modem"
This will set up a permanent link to /dev/ttyLTM0.
Just make sure major and minor numers of the node are correct by
udevinfo -a -p `udevinfo -q path -n /dev/ttyLTM0`
Hope this helps
Ciao
 
Old 08-30-2005, 02:58 PM   #6
awl
Member
 
Registered: Aug 2005
Location: Belgrade, Serbia
Distribution: Debian testing
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks people! (in advance since I need to reboot)
 
  


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
dev/modem link keeps vanishing in SUSE 10.0 DeekBeek Suse/Novell 5 05-30-2006 09:50 AM
reboot deletes /dev/modem link cch2cch Linux - Networking 2 08-23-2005 04:05 PM
ln: creating symbolic link `/dev/dvd' to `/dev/hdc': Permission denied qazwsx27 Fedora 3 06-14-2005 03:09 PM
/dev/modem and /dev/ttyLT0 keep disappearing (ltmodem) himm Linux - Hardware 1 12-15-2004 03:17 PM
symbolic link: /dev/sound to /proc/asound/dev otterit Linux - General 3 08-08-2002 06:33 PM


All times are GMT -5. The time now is 03:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration