记一次ubuntu黑屏经历:
最近长期使用ubuntu,下班前用google下载了一些文件,也跑了一些程序,然后第二天早上上班就发现电脑息屏了。
尝试重启,出现报错
fsck from util-linux 2.26.2
/dev/nvm0n1p2 a6 contains a file system with errors, check forced.
/dev/nvm0n1p2 : Inodes that were part of a corrupted orphan linked list found.
/dev/sda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
fsck exited with status code 4
The root filesystem on /dev/nvm0n1p2 requires a manual fsck
Busybox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs) _
去网上搜了一些办法,都不行,差点想重装系统了,但是里面有很多软件和资料,还是需要想办法。
尝试了一个答案,输入fsck /dev/nvmOn1p2
,仍然报错“fsck: error 2 (No such file or directory) while executing fsck.ext2 for /dev/nvm0n1p2 ”,后来看到另一个答案提示,发现是O和0写错了,于是重新输入fsck /dev/nvm0n1p2
,然后一直按y或者直接按a,等自动修复完成后,按电源按钮重启,就顺利进入系统了。