I work with a lot of low quality USB flash memory modules - some of them can even hang the USB controller and block all traffic until I remove them.
I'm testing these drives using
f3 and a custom Bash script to make it suitable for mass production.
My script uses /dev/disk/by/path links to make it possible to link physical location in a USB hub to an entry on the screen.
Sometimes I have broken links in /dev/disk/by-path - I also noticed that lsblk might list drives that have already been removed,and Dolphin file manager lists removable drives that are long gone (physically disconnected).
Is there anything I can do something to clean up these broken symlinks without rebooting the system?
I've also asked a possibly related question: Multiple links in /dev/disk/by-path pointing to the same /dev/sd* device files