btrfs kernel panic prevents boot of Ubuntu 18.04. How to fix?

Asked by Richard H. on 2020-08-28

I ran

# btrfs bal start -dusage=50

which failed with ENOSPC.
Almost immediately after that, the whole system hangs. The pointer responses to the mouse, but nothing else was happening. I switched to the console, which shows some kernel panic output, including:

RIP: btrfs_root_node+0x10/0x50 [btrfs] RSP: fffb7dd01947ad8

This is my primary filesystem. So now, I cannot boot. I get the same kernel panic when I try.

How can I fix the corrupted filesystem without losing data so I can boot it again?


Question information

English Edit question
Ubuntu linux Edit question
No assignee Edit question
Last query:
Last reply:
Manfred Hampl (m-hampl) said : #1

If booting in recovery mode does not work, then you have to boot into a live system from an installer in the "try Ubuntu without installing" mode and try repairing your file system in that mode.

Can you help with this problem?

Provide an answer of your own, or ask Richard H. for more information if necessary.

To post a message you must log in.