Failed to mount /sysroot enters emergency mode

Hi all openSUSE lovers,

I am currently sitting at an old laptop computer as my main computer has entered into emergency mode. 2 nights prior it started with popping up config files being read-only and upon rebooting it was ok. Until last night after reboot, it failed to mount /sysroot and enters emergency mode. I run openSUSE 15.6 Leap.

Apologies for the noob question, but how do I use paste.opensuse.org (command) to upload the rdsosreport.txt ?

Am I facing a failed ssd and have to reinstall the os?

Would appreciate your help and guidance.

Regards.

Hi

This comes to mind …

[BTRFS check](https://www.systutorials.com/docs/linux/man/8-btrfs-check/)

as something that may possibly help.

The command is

susepaste

and the documentation is of course at

man susepaste

Thus

cat <path-to>/rdsosreport.txt | susepaste

or

susepast <path-to>/rdsosreport.txt

will do the trick.

Thank you, I will try the --read-only option to not modify anything.

1 Like

I get:

susepaste command not found

It is part of the susepaste package. This install it with YaST → Software or (as root )

zypper in susepaste

When sysroot hasn’t mounted, most commands are unavailable. You may be able to mount something else to copy the rdsosreport.txt file to, then copy from that to something that does boot normally for submission via susepaste or going to susepaste.org in a browser.

What is not clear in the provided screenshot? One needs to boot live image (preferably, having the most recent btrfs-progs version) and run btrfs check. And the output of btrfs check is better sent to the btrfs mailing list for further guidance. If there is anything valuable on this filesystem, one should try to copy it with btrfs rescue. Recent kernel has improved recovery mode where one could attempt mount filesystem read-only even with errors, depending on the exact errors.

Like @mrmazda is saying, there is not many commands I can run. Even zypper is not installed and not found in the emergency mode (or at least where my system is as of this moment).

Thank you for clarifying.

Another noob question though, which parameter(s) do I run the btrfs check and btrfs resue with?

btrfs check asks for [options] <device>

Thank you in advance.

Have you tried to read man page? btrfs check needs at the very least the name of the device with btrfs filesystem.

Sorry, I actually meant btrfs restore. Which needs device and destination directory to copy files into. As for btrfs rescue - it really depends on the specific problem, so at least on the output of btrfs check.

Thank you for the reply.

man is not installed on the system, that is why, and reading online man pages looks like I am hitting a stone wall. (sorry, really a noob)
I can’t get a list devices because df is not installed (command not found).

@simorgh

As already suggested in an earlier Reply, you should create, and use, a new Live / Rescue live image to access the troubled system.

1 Like

You continue to work in dracut rescue shell. I said to boot from a live Linux image and run commands from there.

1 Like

Sorry about that,
this is what I see when inside the live Leap 15.6 rescue and I don’t know which device is my OS is installed on.

When troubleshooting btrfs it is always recommended to use as recent btrfs-progs as possible. E.g. using Tumbleweed.

Show output of lsblk -f. As text, not as picture.

1 Like

Everything, all mousetype.

Unfortunately I can’t make it in a text format as I am posting these on a different computer (laptop) and not my main computer which has failed.
running
lsblk -f | susepaste

gives me this:
Paste failed :-(

Apologies for sending another picture though:

I am going to burn another usb with Tumbleweed on.

Your root device is /dev/nvme0n1p2.

2 Likes

Live media typically use less than a whole USB device, leaving freespace you may use to create an additional partition and filesystem. You can mount that filesystem from the shell prompt and redirect command output to a file on that filesystem for transfer to another computer for upload or paste. The susepaste.org host is an often cantankerous frustration. If repeated retries fail, you may try adding options shown in its man page examples. You may be able to mount a shared filesystem from that other computer and transfer a file to it without need of USB device.

1 Like