-   Linux - Networking (
-   -   reboot deletes /dev/modem link (

cch2cch 08-19-2005 01:26 PM

reboot deletes /dev/modem link

I just installed an external modem to my FC3 system. I used gnome to set up the connection. On first try connection failed because there is no /dev/modem file, so I made a link to the serial device:

ln -s /dev/ttyS0 modem.

Then I can connect to internet but after shutdown/restart the /dev/modem link is gone and I have to relink every time. I noticed that ttyS0 is owned by root:uucp and modem is owned as root:root. I tried chown root:uucp modem , there was no error message but the ownership did not change ( root is not in the group uucp though).

The machine also has an internal modem card., kudzu -p shows both modem devices.
What could be the problem? thanks

Half_Elf 08-19-2005 01:51 PM

FC3 uses udev, so the /dev is generated on-the-fly, it is not a real directory. So, the change that you will make to this directory will disapear on reboot, it is just normal.

Take a look in /etc/udev.d, you should have a directory named "rules" or something similar. This is were you have to put your own "rules" you want to see applied to /dev files. I am not in front on a linux computer right now so I can't post an example, take a look first, it is a bit complex but you may be able to guess the syntax taking a look what is currently in the file.
If you can't figure this out, tell me, I'll post an example... :)

cch2cch 08-23-2005 03:05 PM

This works:
KERNEL="ttyS0" SYMLNK="modem"

I find the man page on udev not contributing to the good name of linux. It didn't explain what %k,%e etc are in the examples.

All times are GMT -5. The time now is 09:38 PM.