好吧,如果有人想扮演上帝并创造奇迹,我很失望。
所以,我的任务是制作一个脚本,找到超过 6 个月的文件,压缩它们然后删除它们。在我制作 tihs 脚本的过程中,我运行了这个:
find / -type f -mtime -400 ! -mtime -180 | xargs gzip blablabla
Run Code Online (Sandbox Code Playgroud)
这给了每个文件一个 .gz 扩展名。现在我一注意到就取消了,但为时已晚。完成命令后,我的 bash 命令都不起作用,因为 $PATH 变量自行清空。在意识到问题出在哪里之前,我尝试了很多东西。
因此,在解压缩所有内容后,我仍然无法启动。在我按照在线说明进行了以下操作之后,我设法进行了 grub 救援:
root (hd0,0)
setup (hd0)
kernel (hd0,0)/boot/vml[...]
initrd (hd0,0)/boot/initrd.im[...]
Run Code Online (Sandbox Code Playgroud)
之后我的 linux 部分启动但给了我以下错误:
Begin : Running /scripts/init-bottom ... mount : mounting /dev on /root/dev failed : No such file or directory
mount: mounting /sys/ on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed : No such file or …
Run Code Online (Sandbox Code Playgroud)