Symlink to Modem Vanishes
Hi,
Slackware 10.2 kernel 2.6.16
Why is it that the symlink /dev/modem to /dev/ttyS0 is gone when machine is halted and has to be made again after rebooting?
I do not know when this started, definitely it did not happen before I got my broadband connection a little over a year ago.
Thanks & regards
Signature · 7 lines
Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 11 lines · Peter
Hi,
Slackware 10.2 kernel 2.6.16
Why is it that the symlink
/dev/modemto/dev/ttyS0is gone when machine is halted and has to be made again after rebooting?I do not know when this started, definitely it did not happen before I got my broadband connection a little over a year ago.
Thanks & regards
Hi, Peter:
...because it is removed during a boot?
Edit /etc/rc.d/rc.6 and put
ls -l /dev/modem [> /home/modem.txt]
ls -l /dev/ttyS0 [> /home/ttyS0.txt]
immediately in front of
'reboot' and 'halt' to see if it is still there immediately before. It is a few lines from the bottom on my Slackware 10.2 - 2.4.31
Boot from a 'live CD' and see of the link is there to see if it is being removed during a boot.
-or-
put "ln -s /dev/modem /dev/ttyS0" at the bottom of your /etc/rc.d/rc.local.
(did ^ ^ I get that right?)
HTH, Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Thanks!
Quoted 4 lines · [email protected] said:
Edit
/etc/rc.d/rc.6and put
ls -l/dev/modem[>/home/modem.txt]
ls -l/dev/ttyS0[>/home/ttyS0.txt] immediately in front of
'reboot' and 'halt' to see if it is still there immediately before.
It does not work. When rebooting or halting it says 'read file system only' when it reaches those lines.
Anyhow symlink /dev/modem is removed when booting or halting.
Quoted 2 lines · [email protected] said:
put "ln -s
/dev/modem/dev/ttyS0" at the bottom of your/etc/rc.d/rc.local.
(did ^ ^ I get that right?)
no, it's the other way around ln -s /dev/ttyS0 /dev/modem. Me too, I get it always wrong the first time around.
I had put it there alrady.
Now
[email protected] said: w/o copying the list
Quoted 10 lines
This sounds like it may be a udev problem. Udev dynamically generates device nodes (/dev/###), and may be missing something. When you manually create a node, the next time you boot, it overwrites what you created. You have to setup udev to create the correct link.
If this computer is more than a year old, it's likely that you updated from devfs to udev, perhaps without even knowing it (if your system does automatic
updates.) Most of the problems I've seen with udev are on systems that have
been updated from devfs to udev.
Quoted 6 lines
I'm not a Slack user , but there's good reading on udev at the link below, just ignore the Gentoo specific stuff, and perhaps look for something similar
for Slack. http://www.gentoo.org/doc/en/udev-guide.xmlAnd on writing udev rules here: http://www.reactivated.net/writing_udev_rules.
html
Guess he is right and the stuff he recommends is a little heavy for me. When booting I see that udev is started.
Regards
Signature · 7 lines
Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs