亲测解决Clearing orphaned inode 或者recovering journal

这两个问题其实是同时出现的,下面就来说一下解决方法。

背景

坏境:
Ubuntu 22.04 + CUDA driver 535
在配置cuda driver的时候,意外选择了一个扩展包,然后就突然黑屏,强制重开后出现

Clearing orphaned inode
recovering journal

之类的提示(当时没法完整复制error,所以只记下了关键词)。

解决方法

这是由于显卡驱动没有正确安装导致的。所以先进入GRUB,这个可能系统会提示F几进入。小虎的电脑是F11,然后进入setting (最后一行),然后退出会自动进入。
在这里插入图片描述
然后选择Advanced Options -> Recovery mode -> Root access。在带#号的prompt里面,输入:

sudo ubuntu-drivers autoinstall

如果有提示其他安装信息,请按照其提示输入。直到

nvidia-smi

正常使用为止。
然后重启,使用指令:

reboot

英文原版笔记

In grub,
Boot to the GRUB menu.
Choose Advanced Options.
Choose Recovery mode.
Choose Root access.
At the # prompt, type
sudo ubuntu-drivers autoinstall
The above command will autoinstall the drivers suited to your machine and update them. Then, verify it using:
nvidia-smi
Type reboot.

参考资料

How to fix -> Clearing orphaned inode [number]
Error on Ubuntu boot up - “recovering journal”