LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-03-2004, 11:56 PM   #1
naijin
Member
 
Registered: Nov 2003
Location: Montreal, Canada
Posts: 36

Rep: Reputation: 15
/dev/modem dissapearing after reboot.


I just moved to kernel 2.6.7 under Slack 10.0. Now, I'm using the same drivers for my winmodem that I used under 2.4 (ltmodem). The installation goes smoothly and everything works. However, when I reboot the computer and try to connect to the internet via kppp it says that the /dev/modem link doesn't exist (the driver installation creates one and points it to /dev/ttyLT0). So basically, I gotta reinstall the driver to get my Internet up. Where's the problem?
 
Old 08-04-2004, 03:00 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Did you try add /sbin/modprobe lt_serial in /etc/rc.modules ?

Also, try to copy the alias and modules parameter from /etc/modules.conf to /etc/modprobe.conf

Last edited by Cedrik; 08-04-2004 at 03:03 AM.
 
Old 08-04-2004, 07:02 AM   #3
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Do you really have to reinstall the driver or just recreate the modem symlink?
 
Old 08-04-2004, 09:35 AM   #4
naijin
Member
 
Registered: Nov 2003
Location: Montreal, Canada
Posts: 36

Original Poster
Rep: Reputation: 15
I found out that the modules do load correctly (I see them in lsmod). Now, when kppp complains about the missing /dev/modem file, I found out that the file that it suppose the point to doesnt exist either (/dev/ttyLT0, created during installation)

And yeah, I do have to reinstall, since /dev/ttyLT0 is nowehere to be found.
 
Old 08-04-2004, 11:52 AM   #5
maxheadroom
LQ Newbie
 
Registered: Oct 2003
Location: Texas
Distribution: Slackware 9.1
Posts: 6

Rep: Reputation: 0
I'm having the same issue too. /dev/modem and /dev/ttyLT0 vanish after reboot. The modules load fine(per dmesg). Is there some udev trick or something?
 
Old 08-05-2004, 09:13 AM   #6
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
How about if you just try a MAKEDEV ttyLT0 as root from the /dev directory. What does that do?
 
Old 08-05-2004, 11:53 AM   #7
naijin
Member
 
Registered: Nov 2003
Location: Montreal, Canada
Posts: 36

Original Poster
Rep: Reputation: 15
command not found
 
Old 08-05-2004, 12:06 PM   #8
maxheadroom
LQ Newbie
 
Registered: Oct 2003
Location: Texas
Distribution: Slackware 9.1
Posts: 6

Rep: Reputation: 0
Ok, here's what I found late last night. when I modprobe lt_serial, it creates the dev ttLTM0. Which according to what I read is what udev does. When a module is loaded, it creates the node for the device and names it what it feels it should be called. So I went into /etc/udev/rules.d and edited the udev_rules file(can't remember the exact name, I'm at work on a Win box right now) at the end I added KERNEL="$udevroot/ttLTM0" SYMLINK="$udevroot/modem" Again that variable $udevroot is probably not the exact name, but look at the udev rules above it to see what the exact variable name is. When udev creates the ttLTM0 node after the modprobe, it will slide through these rules and create the symlink modem to that node. You should then be able to use whatever ppp dialer you want. That's a halfway solution basically. You just have to modprobe the driver, wait like a second or two and then dial in. I guess the issue is with hotplugging. It doesn't recognize the device and so doesn't create the node at boot time. I think that's the issue. Workarounds could be installing of the drivers at boot, or creation of the node by the extra node script in /etc/udev/scripts. I feel there is a more elegant solution possibly, but I don't know what it is, yet.
 
Old 08-05-2004, 07:13 PM   #9
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
You should be able to add the module to /etc/modules, then. That should blindly load it at boot time.

Quote:
command not found
Try a ./MAKEDEV, then.

Last edited by adz; 08-05-2004 at 07:18 PM.
 
Old 08-06-2004, 10:18 AM   #10
naijin
Member
 
Registered: Nov 2003
Location: Montreal, Canada
Posts: 36

Original Poster
Rep: Reputation: 15
My both /etc/modules.conf and /etc/modprobe.conf have the same stuff inside them.

alias /dev/modem lt_serial
alias char-major-62 lt_serial
alias /dev/tts/LT0 lt_serial

So, what exactly should I add here?
 
Old 08-06-2004, 08:46 PM   #11
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
No, just /etc/modules with no extension. In there, just add the name of the modules as you would to the modprobe command.
 
Old 08-07-2004, 01:41 PM   #12
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Rep: Reputation: 30
#chmod -x /etc/rc.d/rc.udev

 
  


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
reboot deletes /dev/modem link cch2cch Linux - Networking 2 08-23-2005 03:05 PM
/dev/dsp ... it goes away after a reboot. RoaCh Of DisCor Linux - Hardware 3 01-27-2005 02:52 AM
/dev/modem Disappears on Reboot farmerdan Mandriva 11 12-27-2004 03:37 PM
/dev/modem and /dev/ttyLT0 keep disappearing (ltmodem) himm Linux - Hardware 1 12-15-2004 02:17 PM
Linuxant driver, /dev/modem disappears after reboot slackist Linux - Newbie 5 10-18-2004 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:51 PM.

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
Open Source Consulting | Domain Registration