系统文件已删除 (rm -rf /*) 帮助

系统文件已删除 (rm -rf /*) 帮助

今天我运行时犯了一个错误:

rm -rf /*
0200:00/power/control': Operation not permitted
rm: cannot remove /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:01/PNP0200:00/power/runtime_suspended_time': Operation not permitted

所以现在我无法使用任何命令,甚至reboot不起作用。

root@HLCommunity12:/var/www# ls
-bash: /bin/ls: No such file or directory
root@HLCommunity12:/var/www# ps x
-bash: /bin/ps: No such file or directory
root@HLCommunity12:/var/www# cd
-bash: cd: /root: No such file or directory
root@HLCommunity12:/var/www# umount /dev/sdb
-bash: umount: command not found
root@HLCommunity12:/var/www# grub-install '(hd0)'
-bash: /usr/sbin/grub-install: /bin/sh: bad interpreter: No such file or directory
root@HLCommunity12:/var/www# fsck /dev/sda1
-bash: fsck: command not found
root@HLCommunity12:/var/www# umount /home
-bash: umount: command not found
root@HLCommunity12:/var/www# apt-get
-bash: /usr/bin/apt-get: No such file or directory
root@HLCommunity12:/var/www# yum
-bash: yum: command not found
root@HLCommunity12:/var/www# chmod ugo+w .
-bash: /bin/chmod: No such file or directory
root@HLCommunity12:/var/www# grep -a -C 500 'known pattern' /dev/sda | tee /tmp/recover
-bash: grep: command not found
-bash: /usr/bin/tee: No such file or directory
root@HLCommunity12:/var/www# init=/bin/bash
root@HLCommunity12:/var/www# mount -rw -o remount /
-bash: mount: command not found
root@HLCommunity12:/var/www# pwconv
-bash: /usr/sbin/pwconv: No such file or directory
root@HLCommunity12:/var/www# reboot
-bash: reboot: command not found

答案1

是的,你已经毁掉了你的系统。重新安装操作系统并恢复备份。

相关内容