Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

(Closed) Re-creation of wrong node

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
wollik
Posts: 2
Joined: 2021-02-16 10:28

(Closed) Re-creation of wrong node

#1 Post by wollik »

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.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Recreation of wrong node

#2 Post by p.H »

This sort or behaviour does not happer spontaneously. What did you change ?
Maybe a udev rule ? Check in /etc/udev/rules.d/

wollik
Posts: 2
Joined: 2021-02-16 10:28

(CLOSED] Recreation of wrong node

#3 Post by wollik »

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

Post Reply