Re: A problem with a simbolic link



Thank You

Gaetano

Il 02/07/2010 19:38, Joshua Gimer ha scritto:
On Fri, Jul 2, 2010 at 10:03 AM, Nicosia Gaetano<
nicosia.gaetano@xxxxxxxxxxx> wrote:

Hi to All,

In RHEL5, I use ttyS0 for modem and I have create this simbolic link:

ln -s /dev/ttyS0 /dev/modem

The link is correctly created eand work fine; but if I restart the server
the link is deleted.

How can to create this link permanently ?

Thank You and best regards
Gaetano
<https://www.redhat.com/mailman/listinfo/redhat-list>

This is due to udev recreating everything in /dev at system boot. You can
create a udev rule to create the symlink at boot.

Edit your /etc/udev/rules.d/50-udev.rules and somewhere after the line that
has 'KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]"' add a line that
contains the following:

KERNEL=="ttyS0", SYMLINK+="modem"

This should cause the symlink to be created at boot. Be careful to maintain
permissions and structure on all udev rules files as you can cause some real
headaches for yourself if they become corrupted.


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: A problem with a simbolic link
    ... The link is correctly created eand work fine; but if I restart the server ... This is due to udev recreating everything in /dev at system boot. ... create a udev rule to create the symlink at boot. ... This should cause the symlink to be created at boot. ...
    (RedHat)
  • Re: Everything (but /boot) on ZFS - trouble
    ... outdated or incomplete; or it's just that I have no clue... ... the guide tells me to create a "boot" symlink on the new ... the new 'a' partition, copying /boot and create a symlink, so far so good. ...
    (freebsd-current)
  • Re: [opensuse] USB, udev and serial numbers
    ... I have made a udev rule that should make a symlink to the device, ... After reloading the rules (udevadm control --reload-rules), ... to see the symlink created when I plug in the device. ... The rule is not triggering or completing successfully. ...
    (SuSE)
  • Re: help: udev rule for usb stick
    ... >> is anyone willing to suggest an udev rule to SYMLINK my usb stick to ... >> this device and symlink it to something else. ... udevinfo starts with the device the node belongs to and then walks up the ... device chain, to print for every device found, all possibly useful attributes ...
    (Debian-User)
  • Re: Users and Groups
    ... # device classes -- these are shell-style globs ... more then one device that looks like a USB serial port. ... udev rule to create a symlink specific to the device, ... console.perms trigger on the symlink instead of the device. ...
    (Fedora)