I'm experiencing new "glitch". When I try to run scripts via keyboard shortcut in Cinnamon (Linux Mint 21) there is a window with error:
scriptname failure to remap file to open file descriptor (no such file or directory).
Interestingly web search had not found exact error, so I post the question in hope of learning more about Linux system I'm using. Then I was able to run
scriptname from bash terminal which I had opened before "glitch" running my
Also most GUI apps do not start. Making new tab in terminal results in tab with:
failed to open PTY no such file or directory.
That pointed me to discover that many of files in
/dev are gone. I've been doing script with
chroot and that script was run many times before with slight changes, it unmounted and deleted files in chrooted temp working folder, why files in root
/dev got deleted? I still have not understood.
I'd like to know how to restore full functionality w/out reboot. Looks like quick restore of
/dev is not available, from this answer
"With devtmpfs, the only automated method might be a reboot.
What files do you advise me to make manually in
Also, any ideas for "failure to remap file" error? TIA
P.S. Ah, one more thing. After I've discovered the glitches above I've tried to start new console via Ctrl+Alt+Fx (with PTY errors, wasn't it foolish?), got blinking prompt, switched back and now my keyboard/trackpad do not work. I've got idea to connect externals via USB and they work. Ideas how to restart laptop's keyboard?