Symbolic links breaking after restart 16.04. LTS (linux)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite












i created a symbolic link with the below command (on UBUNTU 16.04 LTS 64 bit)



ln -s ttyACM0 ttyS5



to use with a usb pin pad ,but every time i restart the machine the link is broken.



i have little knowledge on linux.After the reboot this command shows that he link already exist.



ln -s ttyACM0 ttyS5 so i have to remove and create again but machine keeps losing the settings.



Please help










share|improve this question





















  • Where do you create that symlink ?
    – Soren A
    Feb 7 at 13:24










  • “/dev” directory
    – Simon Sande
    Feb 7 at 13:57






  • 1




    You probably need to Create a symlink in /dev using /etc/udev/rules
    – steeldriver
    Feb 7 at 14:25














up vote
2
down vote

favorite












i created a symbolic link with the below command (on UBUNTU 16.04 LTS 64 bit)



ln -s ttyACM0 ttyS5



to use with a usb pin pad ,but every time i restart the machine the link is broken.



i have little knowledge on linux.After the reboot this command shows that he link already exist.



ln -s ttyACM0 ttyS5 so i have to remove and create again but machine keeps losing the settings.



Please help










share|improve this question





















  • Where do you create that symlink ?
    – Soren A
    Feb 7 at 13:24










  • “/dev” directory
    – Simon Sande
    Feb 7 at 13:57






  • 1




    You probably need to Create a symlink in /dev using /etc/udev/rules
    – steeldriver
    Feb 7 at 14:25












up vote
2
down vote

favorite









up vote
2
down vote

favorite











i created a symbolic link with the below command (on UBUNTU 16.04 LTS 64 bit)



ln -s ttyACM0 ttyS5



to use with a usb pin pad ,but every time i restart the machine the link is broken.



i have little knowledge on linux.After the reboot this command shows that he link already exist.



ln -s ttyACM0 ttyS5 so i have to remove and create again but machine keeps losing the settings.



Please help










share|improve this question













i created a symbolic link with the below command (on UBUNTU 16.04 LTS 64 bit)



ln -s ttyACM0 ttyS5



to use with a usb pin pad ,but every time i restart the machine the link is broken.



i have little knowledge on linux.After the reboot this command shows that he link already exist.



ln -s ttyACM0 ttyS5 so i have to remove and create again but machine keeps losing the settings.



Please help







16.04






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 7 at 13:23









Simon Sande

111




111











  • Where do you create that symlink ?
    – Soren A
    Feb 7 at 13:24










  • “/dev” directory
    – Simon Sande
    Feb 7 at 13:57






  • 1




    You probably need to Create a symlink in /dev using /etc/udev/rules
    – steeldriver
    Feb 7 at 14:25
















  • Where do you create that symlink ?
    – Soren A
    Feb 7 at 13:24










  • “/dev” directory
    – Simon Sande
    Feb 7 at 13:57






  • 1




    You probably need to Create a symlink in /dev using /etc/udev/rules
    – steeldriver
    Feb 7 at 14:25















Where do you create that symlink ?
– Soren A
Feb 7 at 13:24




Where do you create that symlink ?
– Soren A
Feb 7 at 13:24












“/dev” directory
– Simon Sande
Feb 7 at 13:57




“/dev” directory
– Simon Sande
Feb 7 at 13:57




1




1




You probably need to Create a symlink in /dev using /etc/udev/rules
– steeldriver
Feb 7 at 14:25




You probably need to Create a symlink in /dev using /etc/udev/rules
– steeldriver
Feb 7 at 14:25










1 Answer
1






active

oldest

votes

















up vote
0
down vote













If you do a df -h in a terminal you will see that /dev is "mounted on" udev, not /dev/sdx or anything else indicating a physical disk. udev is a virtual file-system (in memory) that is regenerated every time the system is booted.



That's why your symbolic link disappears on reboot.






share|improve this answer




















  • yes i have seen as per above.. is there a way to get around this ,i would really appreciate
    – Simon Sande
    Feb 7 at 14:16











  • Follow the link @steeldriver provided ..
    – Soren A
    Feb 7 at 15:12










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1003890%2fsymbolic-links-breaking-after-restart-16-04-lts-linux%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













If you do a df -h in a terminal you will see that /dev is "mounted on" udev, not /dev/sdx or anything else indicating a physical disk. udev is a virtual file-system (in memory) that is regenerated every time the system is booted.



That's why your symbolic link disappears on reboot.






share|improve this answer




















  • yes i have seen as per above.. is there a way to get around this ,i would really appreciate
    – Simon Sande
    Feb 7 at 14:16











  • Follow the link @steeldriver provided ..
    – Soren A
    Feb 7 at 15:12














up vote
0
down vote













If you do a df -h in a terminal you will see that /dev is "mounted on" udev, not /dev/sdx or anything else indicating a physical disk. udev is a virtual file-system (in memory) that is regenerated every time the system is booted.



That's why your symbolic link disappears on reboot.






share|improve this answer




















  • yes i have seen as per above.. is there a way to get around this ,i would really appreciate
    – Simon Sande
    Feb 7 at 14:16











  • Follow the link @steeldriver provided ..
    – Soren A
    Feb 7 at 15:12












up vote
0
down vote










up vote
0
down vote









If you do a df -h in a terminal you will see that /dev is "mounted on" udev, not /dev/sdx or anything else indicating a physical disk. udev is a virtual file-system (in memory) that is regenerated every time the system is booted.



That's why your symbolic link disappears on reboot.






share|improve this answer












If you do a df -h in a terminal you will see that /dev is "mounted on" udev, not /dev/sdx or anything else indicating a physical disk. udev is a virtual file-system (in memory) that is regenerated every time the system is booted.



That's why your symbolic link disappears on reboot.







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 7 at 14:02









Soren A

3,0681724




3,0681724











  • yes i have seen as per above.. is there a way to get around this ,i would really appreciate
    – Simon Sande
    Feb 7 at 14:16











  • Follow the link @steeldriver provided ..
    – Soren A
    Feb 7 at 15:12
















  • yes i have seen as per above.. is there a way to get around this ,i would really appreciate
    – Simon Sande
    Feb 7 at 14:16











  • Follow the link @steeldriver provided ..
    – Soren A
    Feb 7 at 15:12















yes i have seen as per above.. is there a way to get around this ,i would really appreciate
– Simon Sande
Feb 7 at 14:16





yes i have seen as per above.. is there a way to get around this ,i would really appreciate
– Simon Sande
Feb 7 at 14:16













Follow the link @steeldriver provided ..
– Soren A
Feb 7 at 15:12




Follow the link @steeldriver provided ..
– Soren A
Feb 7 at 15:12

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1003890%2fsymbolic-links-breaking-after-restart-16-04-lts-linux%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491