I need your help in deleting a wrongly created node in the /dev directory.
Here is what I get:
Code: Select all
pi@debian: uname -sv
Linux #5.92 SMP Wed Jul 31 22:07:23 CEST 2019
pi@debian: ls -li /dev/ttyUSB*
697079 crw-rw---- 1 root dialout 188, 0 Feb 16 12:31 /dev/ttyUSB0
1392102 -rw-r--r-- 1 root root 1 Feb 16 12:31 /dev/ttyUSB1
pi@debian:
pi@debian: sudo rm -i /dev/ttyUSB1
rm: remove regular file '/dev/ttyUSB1'? y
pi@debian: ls -li /dev/ttyUSB*
697079 crw-rw---- 1 root dialout 188, 0 Feb 16 12:31 /dev/ttyUSB0
1395491 -rw-r--r-- 1 root root 1 Feb 16 12:32 /dev/ttyUSB1
When I remove this file it will be recreated directly (wrong again as a file and not as a node!) like you see on the new inode number.
I've rebooted the SBC and have only one USB-2-Serial Adapter attached, but the ttyUSB1 will be created.
Please can you help me in detecting what environment is creating this file instead a correct node when the HW is detected?
Regards
Wollik