Not a severe issue because it can be fixed with a reboot, but I'm curious to know whether there's a way to restore files (probably not all, but as many as possible) in /proc, /sys, /dev/pts and /dev.I deleted them partially when removing a chroot directory with those directories mounted withmount -t proc proc [path/to/chroot]/procmount -t sysfs sys [path/to/chroot]/sysmount --bind /dev/[path/to/chroot]/devmount -t devpts /dev/path [path/to/chroot]/dev/ptson Ubuntu 16.10 amd64. The removal failed for some files (I didn't record the error message) because removal of files was refused which I can understand. I guess that solutions will apply to all Debian-based systems.After quitting the chroot I'm seeing things like$ ls -bash: /dev/null: Keine Berechtigungbash: _upvars: `-a2': invalid number specifier-bash: /dev/null: Keine Berechtigungbash: _upvars: `-a0': invalid number specifierduring autocompletion with Tab on ls (after exporting LANGUAGE=en).
Recover from rm -rf /proc /sys/ /dev/pts /dev without reboot?
linux;mount;devices;proc;sysfs