[opensuse] disappearing dev links
I have an analogue modem which is configured to /dev/modem which is a link to /dev/ttyS0. However, whenever I restart my machine the link disappears and I have to either create it manually or through yast by redoing my modem. Is this a bug? How can I get it to stay? Thanks Eddie Sorry forgot to mention that this is in openSUSE 10.2 (Kernel 2.6.18.2-34-default). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2007-01-16 at 07:19 -0000, eddieleprince wrote:
I have an analogue modem which is configured to /dev/modem which is a link to /dev/ttyS0. However, whenever I restart my machine the link disappears and I have to either create it manually or through yast by redoing my modem.
Is this a bug? How can I get it to stay?
A known misfeature since 10.1 :-P Edit '/etc/init.d/boot.local': ln -s /dev/ttyS1 /dev/modem ln -s /dev/psaux /dev/mouse Or equivalent for your system. Its a hack, not the real solution, which would be modifying one of the hald or devfs conf files. But it works and is much easier to do. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFrKnutTMYHG2NR9URAqXtAJsHacvaCdtCX5M1dz6coZ4QItAa8wCdEcYX Acd4DZijSMMb1usQ9aRWVuI= =RkQz -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 16 January 2007 10:33, Carlos E. R. wrote:
The Tuesday 2007-01-16 at 07:19 -0000, eddieleprince wrote:
I have an analogue modem which is configured to /dev/modem which is a link to /dev/ttyS0. However, whenever I restart my machine the link disappears and I have to either create it manually or through yast by redoing my modem.
Is this a bug? How can I get it to stay?
A known misfeature since 10.1 :-P
Edit '/etc/init.d/boot.local':
ln -s /dev/ttyS1 /dev/modem ln -s /dev/psaux /dev/mouse
Or equivalent for your system. Its a hack, not the real solution, which would be modifying one of the hald or devfs conf files. But it works and is much easier to do.
Thanks Carlos, It would be nice if a more permanent solution was implemented. Eddie -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2007-01-16 at 12:04 -0000, eddieleprince wrote:
Thanks Carlos,
Welcome.
It would be nice if a more permanent solution was implemented.
Well, that solution is permanent, but its not the "correct" one. I haven't checked bugzilla. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFrMmYtTMYHG2NR9URAn9vAJ4/AtRgYDabZZT2S0cby2VphrXuRQCdG9GF 5y7sDEx6VnnTnFSkcIJfIJM= =Tt5f -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Tuesday 2007-01-16 at 07:19 -0000, eddieleprince wrote:
I have an analogue modem which is configured to /dev/modem which is a link to /dev/ttyS0. However, whenever I restart my machine the link disappears and I have to either create it manually or through yast by redoing my modem.
Is this a bug? How can I get it to stay?
A known misfeature since 10.1 :-P
Edit '/etc/init.d/boot.local':
ln -s /dev/ttyS1 /dev/modem ln -s /dev/psaux /dev/mouse
Or equivalent for your system. Its a hack, not the real solution, which would be modifying one of the hald or devfs conf files. But it works and is much easier to do.
The proper method is to create the link in /lib/udev/devices, from where it will be copied into /dev on boot up. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2007-01-16 at 10:43 -0500, James Knott wrote:
The proper method is to create the link in /lib/udev/devices, from where it will be copied into /dev on boot up.
Sounds sensible... I'll have to try that one. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFrVq9tTMYHG2NR9URAs6cAJ9+2d9U8BE3Z6YP+KrGk2ovvjPbFQCghNjf ipIVNrH9Z9y+z9JjjkwkU30= =j0XT -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
eddieleprince wrote:
I have an analogue modem which is configured to /dev/modem which is a link to /dev/ttyS0. However, whenever I restart my machine the link disappears and I have to either create it manually or through yast by redoing my modem.
Is this a bug? How can I get it to stay?
Thanks Eddie
Sorry forgot to mention that this is in openSUSE 10.2 (Kernel 2.6.18.2-34-default).
/dev is cleared at every boot. You have to create the link in /lib/udev/devices, which will then be copied to /dev. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 2007-01-16 at 07:42 -0500, James Knott wrote:
eddieleprince wrote:
I have an analogue modem which is configured to /dev/modem which is a link to /dev/ttyS0. However, whenever I restart my machine the link disappears and I have to either create it manually or through yast by redoing my modem.
Is this a bug? How can I get it to stay?
Thanks Eddie
Sorry forgot to mention that this is in openSUSE 10.2 (Kernel 2.6.18.2-34-default).
/dev is cleared at every boot. You have to create the link in /lib/udev/devices, which will then be copied to /dev.
When did the /lib/udev directory start appearing? I'm running 10.0 and do not see it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mike McMullin wrote:
On Tue, 2007-01-16 at 07:42 -0500, James Knott wrote:
eddieleprince wrote:
I have an analogue modem which is configured to /dev/modem which is a link to /dev/ttyS0. However, whenever I restart my machine the link disappears and I have to either create it manually or through yast by redoing my modem.
Is this a bug? How can I get it to stay?
Thanks Eddie
Sorry forgot to mention that this is in openSUSE 10.2 (Kernel 2.6.18.2-34-default).
/dev is cleared at every boot. You have to create the link in /lib/udev/devices, which will then be copied to /dev.
When did the /lib/udev directory start appearing? I'm running 10.0 and do not see it.
I don't know. However, it is in 10.2. I believe udev came in with the 2.6 kernel and 10.0 originally came with 2.4.x. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Knott wrote:
I don't know. However, it is in 10.2. I believe udev came in with the 2.6 kernel and 10.0 originally came with 2.4.x.
hmm, I could have sworn that suse moved to the 2.6 kernel in 9.1/SLES9 perhaps I'm getting senile? Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2007-01-16 19:34, J Sloan wrote:
James Knott wrote:
I don't know. However, it is in 10.2. I believe udev came in with the 2.6 kernel and 10.0 originally came with 2.4.x.
hmm, I could have sworn that suse moved to the 2.6 kernel in 9.1/SLES9
perhaps I'm getting senile?
a) it did (there was an optional 2.6 kernel with 9.0), and b) this is not necessarily disproved by the affirmative answer to a) :-) -- The best way to accelerate a computer running Windows is at 9.81 m/s² -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Darryl Gregorash wrote:
On 2007-01-16 19:34, J Sloan wrote:
James Knott wrote:
I don't know. However, it is in 10.2. I believe udev came in with the 2.6 kernel and 10.0 originally came with 2.4.x.
hmm, I could have sworn that suse moved to the 2.6 kernel in 9.1/SLES9
perhaps I'm getting senile?
a) it did (there was an optional 2.6 kernel with 9.0), and
b) this is not necessarily disproved by the affirmative answer to a) :-)
Haha, good point... Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
J Sloan wrote:
James Knott wrote:
I don't know. However, it is in 10.2. I believe udev came in with the 2.6 kernel and 10.0 originally came with 2.4.x.
hmm, I could have sworn that suse moved to the 2.6 kernel in 9.1/SLES9
perhaps I'm getting senile?
Joe
Could be. ;-) I was just going from memory (gotta buy some more <g>). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2007-01-16 19:29, James Knott wrote:
Mike McMullin wrote:
<snip>
When did the /lib/udev directory start appearing? I'm running 10.0 and do not see it.
I don't know. However, it is in 10.2. I believe udev came in with the 2.6 kernel and 10.0 originally came with 2.4.x.
9.0 came with a 2.4 kernel; 9.3 does not. As for /lib/udev/, it is also not present in 9.3. After half an hour of poking around the udev stuff there is on my system, I am still no closer to figuring out how to specify which device nodes are to be created. Perhaps the files in /etc/udev/rules.d/ are relevant. -- The best way to accelerate a computer running Windows is at 9.81 m/s² -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Darryl Gregorash wrote:
On 2007-01-16 19:29, James Knott wrote:
Mike McMullin wrote:
<snip>
When did the /lib/udev directory start appearing? I'm running 10.0 and do not see it.
I don't know. However, it is in 10.2. I believe udev came in with the 2.6 kernel and 10.0 originally came with 2.4.x.
9.0 came with a 2.4 kernel; 9.3 does not.
As for /lib/udev/, it is also not present in 9.3. After half an hour of poking around the udev stuff there is on my system, I am still no closer to figuring out how to specify which device nodes are to be created. Perhaps the files in /etc/udev/rules.d/ are relevant.
As I mentioned, all you have to do is create the symbolic link in /lib/udev/devices and it will be copied to /dev on reboot. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2007-01-16 20:14, James Knott wrote:
Darryl Gregorash wrote:
<snip>
As for /lib/udev/, it is also not present in 9.3....
As I mentioned, all you have to do is create the symbolic link in /lib/udev/devices and it will be copied to /dev on reboot.
I say again, /lib/udev/ does not exist in 9.3, and apparently not in 10.0 or 10.1 either. -- The best way to accelerate a computer running Windows is at 9.81 m/s² -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Darryl Gregorash
I say again, /lib/udev/ does not exist in 9.3, and apparently not in 10.0 or 10.1 either.
Then someone has broken into my system.
links
Reply-To:
In-Reply-To: <45AD95F2.5030306@accesscomm.ca>
X-Operating-System: Linux 2.6.18.5-jen40-default x86_64 SUSE 10.1
Organization: Ptilopteri in Pandemonium
* Darryl Gregorash
I say again, /lib/udev/ does not exist in 9.3, and apparently not in 10.0 or 10.1 either.
Then someone has broken into my system, openSUSE 10.1 00:01 wahoo:~ > ls -la /lib/udev/ total 84 drwxr-xr-x 3 root root 4096 2007-01-16 00:16 . drwxr-xr-x 10 root root 4096 2006-11-01 10:41 .. drwxr-xr-x 5 root root 4096 2006-12-21 17:56 devices -rwxr-xr-x 1 root root 944 2006-09-21 00:43 bluetooth.sh -rwxr-xr-x 1 root root 18489 2007-01-15 09:31 check-mtp-device -rwxr-xr-x 1 root root 495 2007-01-15 09:32 check-ptp-camera -rwxr-xr-x 1 root root 7392 2006-11-25 06:25 create_floppy_devices -rwxr-xr-x 1 root root 86 2006-11-25 06:25 eventrecorder.sh -rwxr-xr-x 1 root root 574 2006-11-25 06:25 firmware.sh -rwxr-xr-x 1 root root 1432 2006-04-22 21:53 idedma.sh -rwxr-xr-x 1 root root 1592 2006-05-02 04:15 isdn.sh -rwxr-xr-x 1 root root 466 2006-11-25 06:25 load_floppy_module.sh -rwxr-xr-x 1 root root 1825 2006-06-02 15:45 mount.sh -rwxr-xr-x 1 root root 6452 2006-06-02 15:45 rename_netiface -rwxr-xr-x 1 root root 947 2006-06-02 15:45 trigger_firewire_loading.sh -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2 OpenSUSE Linux http://en.opensuse.org/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2007-01-16 23:04, Patrick Shanahan wrote:
<snip>
Then someone has broken into my system, openSUSE 10.1
Someone definitely said no /lib/udev in 10.0, and I thought, evidently incorrectly, that I recalled the same remark made about 10.1. -- The best way to accelerate a computer running Windows is at 9.81 m/s² -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2007-01-16 at 20:01 -0600, Darryl Gregorash wrote:
9.0 came with a 2.4 kernel; 9.3 does not.
As for /lib/udev/, it is also not present in 9.3. After half an hour of poking around the udev stuff there is on my system, I am still no closer to figuring out how to specify which device nodes are to be created. Perhaps the files in /etc/udev/rules.d/ are relevant.
There is an udev system in 9.3, but it works quite different than in 10.1 or 10.2. In 9.3 to create, for instance, symbolic links to dvd, cdrom, etc, we edited "/etc/udev/rules.d/20-cdrom.rules" like this: BUS="ide", ID="1.0", SYSFS{removable}="1", SYMLINK="dvdrecorder dvdram dvd" BUS="ide", ID="1.1", SYSFS{removable}="1", SYMLINK="cdrecorder cdrom" # In 10.1 it is in /etc/udev/rules.d/65-cdrom.rules, with an slightly different syntax: SUBSYSTEM=="block", ENV{ID_PATH}=="pci-0000:00:1f.1-ide-1:0", SYSFS{removable}=="1", SYMLINK+="dvdram cdrom dvd cdrecorder" I don't know where the "/dev/modem" symlink is specified in 9.3, but Yast created it, as far as I remember. I think there was a "static" file somewhere, but that one was for forcing creation of nodes, not symlinks. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFrZGztTMYHG2NR9URAhApAJ9HX2cNBpBaiicMCO0WiI6pHOlrcwCff+kI NGCJB9yXR/IADnhSjNOE6Hk= =PX5v -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 17 January 2007 03:01, Carlos E. R. wrote:
The Tuesday 2007-01-16 at 20:01 -0600, Darryl Gregorash wrote:
9.0 came with a 2.4 kernel; 9.3 does not.
As for /lib/udev/, it is also not present in 9.3. After half an hour of poking around the udev stuff there is on my system, I am still no closer to figuring out how to specify which device nodes are to be created. Perhaps the files in /etc/udev/rules.d/ are relevant.
There is an udev system in 9.3, but it works quite different than in 10.1 or 10.2.
In 9.3 to create, for instance, symbolic links to dvd, cdrom, etc, we edited "/etc/udev/rules.d/20-cdrom.rules" like this:
BUS="ide", ID="1.0", SYSFS{removable}="1", SYMLINK="dvdrecorder dvdram dvd" BUS="ide", ID="1.1", SYSFS{removable}="1", SYMLINK="cdrecorder cdrom" #
In 10.1 it is in /etc/udev/rules.d/65-cdrom.rules, with an slightly different syntax:
SUBSYSTEM=="block", ENV{ID_PATH}=="pci-0000:00:1f.1-ide-1:0", SYSFS{removable}=="1", SYMLINK+="dvdram cdrom dvd cdrecorder"
I don't know where the "/dev/modem" symlink is specified in 9.3, but Yast created it, as far as I remember. I think there was a "static" file somewhere, but that one was for forcing creation of nodes, not symlinks.
It all sounds very complicated to me. If I wanted to construct a modem.rules file what number would I use in the file name and why? What would be the syntax of the file, and what would the various options do? I guess if you've designed the thing or played with it often enough, it all looks simple and straight forward but approaching it for the first time, it all seems rather intimidating (for me at least, or maybe I just haven't woken up as yet). Cheers Eddie -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2007-01-17 at 07:54 -0000, eddieleprince wrote:
SUBSYSTEM=="block", ENV{ID_PATH}=="pci-0000:00:1f.1-ide-1:0", SYSFS{removable}=="1", SYMLINK+="dvdram cdrom dvd cdrecorder" ...
It all sounds very complicated to me.
To me too! X-)
If I wanted to construct a modem.rules file what number would I use in the file name and why?
I have absolutely no idea.
What would be the syntax of the file, and what would the various options do? I guess if you've designed the thing or played with it often enough, it all looks simple and straight forward but approaching it for the first time, it all seems rather intimidating (for me at least, or maybe I just haven't woken up as yet).
It IS intimidating. And I haven't seen a plain document explaining it for dummies (there may be one, dunno). I am trained as a programmer (not in Linux), but I don't want to expend days investigating it. And it changed a lot from 9.3 to 10.1. Further, I don't know where to read it. For dummies, I consider my self one of them in this respect. That's why I simply create the symlink in '/etc/init.d/boot.local'. I tried udev and failed, so I gave up. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFreBEtTMYHG2NR9URAt08AJ93P8ossLkEjulnOm064qU1hPUfVACgg32p +2nFCID+lUj2nllTO5X539M= =3nm4 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 2007-01-16 at 20:29 -0500, James Knott wrote:
Mike McMullin wrote:
On Tue, 2007-01-16 at 07:42 -0500, James Knott wrote:
eddieleprince wrote:
I have an analogue modem which is configured to /dev/modem which is a link to /dev/ttyS0. However, whenever I restart my machine the link disappears and I have to either create it manually or through yast by redoing my modem.
Is this a bug? How can I get it to stay?
Thanks Eddie
Sorry forgot to mention that this is in openSUSE 10.2 (Kernel 2.6.18.2-34-default).
/dev is cleared at every boot. You have to create the link in /lib/udev/devices, which will then be copied to /dev.
When did the /lib/udev directory start appearing? I'm running 10.0 and do not see it.
I don't know. However, it is in 10.2. I believe udev came in with the 2.6 kernel and 10.0 originally came with 2.4.x.
Mike@P-733:~> uname -r 2.6.13-15.13-default I'm not into rolling my own kernels, and only install new ones via YOU. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mike McMullin wrote:
Mike@P-733:~> uname -r 2.6.13-15.13-default
I'm not into rolling my own kernels, and only install new ones via YOU.
udev is a separate package, it is not part of the kernel, though its development parallels the kernel development, meaning a new udev package may require features not found in an older kernel. HTH. -- Joe Morris Registered Linux user 231871 running openSUSE 10.2 x86_64 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (8)
-
Carlos E. R.
-
Darryl Gregorash
-
eddieleprince
-
J Sloan
-
James Knott
-
Joe Morris (NTM)
-
Mike McMullin
-
Patrick Shanahan