问题原文
原帖链接 · Dave · CC BY-SA 3.0
I'm sure the reason I'm having a brain fart is because it's late, but how can I go about performing a btrfs check on the root partition?
The device needs to be unmounted, which can't happen because it's the root partition...
Thanks
社区高分解答
原帖链接 · Tom Hale · CC BY-SA 3.0
If you're using systemd, you can pass the kernel parameter fsck.mode=force to check all filesystems.
This will repair all "safe" errors.
If you still have issues (check your logs), pass fsck.repair=yes in addition to the above, which will attempt to repair everything.
For the source of this and other options (eg shutdown -F) for upstart and sysvinit init, see here.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
