Stuck in emergency mode after force shutdown

The night prior, I was kinda tired and decided to leave my computer on cause eh. I turned off my 2 monitors and left.

When i wake up, my computer wouldnt wake. i also found my keyboard wasnt responding.

As a result, i had to force shutdown my computer and resulted in this:

I am on Fedora 40 Matay

And the red with everything above is me trying to solve it.

booting to a live works.

kernel parameter command is not found (via terminal)

Sorry for the late reply. i was helping at a church yard sale.

anyways, what do i do at the grub menu? I have the OS, mate-compiz, and uefi firmware settings

ok, so i pressed c and typed the command. i got a new line but thats it.

i booted into a live. there are 4 drives:

fedora
Anaconda
2.3 GB Volume
Anaconda

fedora and Anaconda #1 im unable to mount
2.3 GB Volume neither but thats the cd drive.
Anaconda 2 yes.

I opened gparted and found 2 checksums failed and that it couldnt read treeroot

Added btrfs, f40, mate

um, why did you delete your posts?

after successfully doing an fsck



I suggest not attempting repairs, it can make the problem worse. Try booting from a current Fedora live desktop image (USB stick, any desktop), and try to mount using:

mount -o ro,rescue=all

If that works, I suggest copying out any important data while you can. Keep it embargoed. The rescue=all mount option disables data checksum verification so the files copied could contain corruption. But it’s sometimes better to have important files such as they are, than not at all.

Next umount the file system and run

btrfs check $DEV
and
btrfs check --mode lowmem $DEV

Copy/paste the terminal output here using the preformatted text option. I’ll see if one of the Btrfs developers has a momen to look at it. Most likely these messages will match the kernel messages you posted about bad tree block start. It’s very unexpected that both mirror copies of the tree root, and all the backups, aren’t readable. That’s a lot of problems all at once.

mount -o ro,rescue=all

doesent work. im getting bad usage.

btrfs check:

Opening filesystem to check...
checksum verify failed on 808009728 wanted 0x00000000 found 0xca72d647
checksum verify failed on 808009728 wanted 0x780fa0fd found 0x2ce4b8af
checksum verify failed on 808009728 wanted 0x780fa0fd found 0x2ce4b8af
bad tree block 808009728, bytenr mismatch, want=808009728, have=0
Couldn't read tree root
ERROR: cannot open file system

lowmem:

Opening filesystem to check...
checksum verify failed on 808009728 wanted 0x00000000 found 0xca72d647
checksum verify failed on 808009728 wanted 0x780fa0fd found 0x2ce4b8af
checksum verify failed on 808009728 wanted 0x780fa0fd found 0x2ce4b8af
bad tree block 808009728, bytenr mismatch, want=808009728, have=0
Couldn't read tree root
ERROR: cannot open file system

if i was supposed to include the drive in mount, than im getting that it couldnt find in /etc/fstab

Can you join https://matrix.to/#/#btrfs:fedora.im and refer to this discussion?

Yes it needs to be completed for your specific case:

mount -o ro,rescue=all /dev/nvme0n1p3 /mnt

Also helpful to post the output from:

btrfs insp dump-s -fa /dev/nvme0n1p3
btrfs insp dump-t -b 808009728 /dev/nvme0n1p3

let me do that.