(Closed) Re-creation of wrong node

If none of the more specific forums is the right place to ask

(Closed) Re-creation of wrong node

Postby wollik » 2021-02-16 10:58

Hi Linux Admins,
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

I got a process that is creating a regular file (ttyUSB1) in my /dev directory. Unter this device name I need a character device with a major device number of 188 and that device schould belong to the dialout group.

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
Last edited by wollik on 2021-02-24 09:33, edited 1 time in total.
wollik
 
Posts: 2
Joined: 2021-02-16 10:28

Re: Recreation of wrong node

Postby p.H » 2021-02-16 13:07

This sort or behaviour does not happer spontaneously. What did you change ?
Maybe a udev rule ? Check in /etc/udev/rules.d/
p.H
 
Posts: 1674
Joined: 2017-09-17 07:12

(CLOSED] Recreation of wrong node

Postby wollik » 2021-02-22 16:59

Hi there,
this question can be closed.
the situation happend during the detection of a new connected USB-2-Serial stick, that has caused an HW error because of a USB-Connection Failure.
The system was not able to get the node added corectly but instead created a wrong node.
When I tried to remove this it was recreated wrongly again by the system.
This was also the case after a reboot.
I got this fixed by disconnection also the working USB-2-Serial Stick so that no USB-Device was connected and then both /dev/ttyUSB* entriey have been removed.

Thanks for your help
Regards
wollik
wollik
 
Posts: 2
Joined: 2021-02-16 10:28


Return to General Questions

Who is online

Users browsing this forum: No registered users and 16 guests

fashionable