LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-30-2021, 02:40 AM   #1
marconap
LQ Newbie
 
Registered: Feb 2008
Posts: 13

Rep: Reputation: 0
Symlink into /dev directory are automatically deleted


Hi all, I am encountering a very strange problem. I created some symbolic link in the /dev directory, like this:

lrwxrwxrwx 1 root root 13 29 set 09.54 /dev/ttyM100 -> tty_dgrp_M1_0

I need this link because the new serial port driver creates all the devices with a different name and I have to mantain the compatibility with my old software.
Sometimes I realize that the software is no more able to use the devices, so I go into the /dev directory and I discover that the links are no more present.
Someone can help me?

Thanks a lot
Marco
 
Old 09-30-2021, 04:48 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,488
Blog Entries: 7

Rep: Reputation: 2579Reputation: 2579Reputation: 2579Reputation: 2579Reputation: 2579Reputation: 2579Reputation: 2579Reputation: 2579Reputation: 2579Reputation: 2579Reputation: 2579
Symlink into /dev directory are automatically deleted

This happens because the contents of the /dev directory only exist in RAM. Any files you create or put in there will disappear upon rebooting.

You need to make these changes via a udev rule.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] symlink to symlink confusion, Reprovo Linux - Newbie 2 11-18-2014 02:17 PM
pseudo terminals: /dev/ptmx <-> /dev/pts/ vs. /dev/ptyp <-> /dev/ttyp rtspitz Linux - Software 2 12-02-2011 02:07 PM
Question How to get stat() of symlink and not of target of symlink ? ronbarak Programming 3 11-08-2010 12:14 PM
Need a script to automatically create/update a symlink to the most recent directory Mountain Linux - Software 8 04-19-2009 10:57 PM
/dev/cdrom symlink GETS DELETED on reboot eyeoft Linux - General 2 06-08-2004 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:58 AM.

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