How to btrfs-select-super?

I have a external USB disk with btrfs refusing to mount normally but which still mounts with ro,rescue=all.

btrfs rescue super-recover reports 2 of them are good and a further check of btrfs check --backup --super 1 also reports no error. I got advice at the #btrfs libera channel to try to use btrfs-select-super to select a good super, but despite this option existing in the opensuse manual (btrfs-select-super(8) — btrfsprogs) the command doesn’t exist. I already tried to update the btrfsprogs without any luck.

Is there any way to do this in opensuse tumbleweed?

btrfs check --repair is pretty dangerous, but the only other way I found to use super is btrfs check --backup --super 1 --repair. :grimacing:

btrfs-select-super.static is provided by package btrfsprogs-static.

But as i don’t use btrfs, i don’t know if the static package/command will work. I don’t think so…

1 Like

Thanks! The command seems to work, but errors out in my case, probably due the fs state not the package.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.