Fedora 34 upgrade - root locked

I am upgraded fedora 34, and error


Hp laptop 1 boot: fedora 34
/Dev/sda1- boot
/Dev/sda2 - EFI
/Dev/sda3- home

I am Linux man 8 sulogin. Not helpful

I am google search’s and ask fedora is grub/2… Yes??

My mind is answers step- by-step … Grub/2 …

Try rebooting, and when the grub menu displays press “e” to edit.

At the end of the line beginning with linux add a space and the number 1 then ctrl-x to boot.

It should boot to single user mode where you can repair the error, and if desired create a password for the root user so login is possible in emergency mode next time.

If it cannot boot to single user mode then you may need to boot from the install (live) usb device and do repairs from there.

“Ro” - change “rw” ??

Where is this from?
Is it the display when pressing “e” from the grub boot menu?

If so then no, that line is correct for a default install of fedora 34. I verified it on my fedora 34 VM.

If you’re having trouble booting into single-user mode, follow the instructions for editing the command line. Instead of adding a space and a 1, add this:

init=/bin/bash

Then use Ctrl-x to boot. This will log you in as root without needing a password. If this works, you can create a root password as part of whatever diagnostics and repair work you need.

Do not work

Do not work

It is shell Bourne.

Grub? Grub2? Following directions?

I think you misunderstood.
Instead of both the number 1 and init=/bin/bash, he suggested using one or the other, not both. The number 1 gets you to a login prompt, the init=/bin/bash actually logs you in as root.

I would, for testing purposes, delete the “rhgb quiet” and anything following then insert “init=/bin/bash” instead. Boot with ctrl-X then you will be able to see the text as it boots. It should get you to the single user mode and logged in as root.

Whoami
Root

Grub? Grub2?

You have to put the init=/bin/bash at the very end of the line that starts with linux, not on a line of its own before that.

You have to put the init=/bin/bash at the very end of the line that starts with linux, not on a line of its own before that.

Yes

Grub? Grub2? Grubby? I am Procedures following

You are root in a bash shell. This is where you can repair the problem that prevents booting, including giving root a password so you can log in if this ever happens again.

Your very first post showed you were in emergency mode but unable to log in as root with the account locked as is default.

When in single user mode you can look at what is actually mounted, and with dmesg and journalctl look at the logs to see why the system failed to emergency mode instead of a normal boot. It may be a file system error, it may be hardware error, it may be something else but you have to investigate to identify why and fix it.

Maybe the /home file system failed to mount due to corruption, maybe something else. Only the logs will be able to tell us the cause.