Sys 파일 제거(rm -rf /*) 도움말

Sys 파일 제거(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

네, 당신은 시스템을 파괴했습니다. OS를 다시 설치하고 백업을 복원합니다.

관련 정보