Ask Your Question
1

Repairing my initframs in dracut emergency mode Fedora26

asked 2017-11-11 17:08:34 -0500

ghislain gravatar image

updated 2018-11-04 03:55:48 -0500

hhlp gravatar image

I am trying to install nvidia drivers on fedora, following this tutorial : https://www.if-not-true-then-false.co...

Everything went fine till 2.7 : reboot to runlevel 3. While booting I get such warnings : "dracut-initqueue timeout -starting timeout scripts"

Finally, it starts the "dracut emergency shell". And suggests to regenerate my initramfs.

The error report says that "/dev/fedora/root does not exist" "/dev/fedora/swap does not exist" "/dev/mapper/fedora_host-004-root does not exist"

I tried to do "dracut --regenerate-all --force" but the dracut command is unknown.

Do you have an idea of how I could regenerate the initramfs or fix what I did ?

Thank you!

edit retag flag offensive close merge delete

Comments

Your problem is/was caused elsewhere. You were not supposed to replace uname by your username. (Had you done so, the command would have failed). So, that's not what happened here.

florian gravatar imageflorian ( 2017-11-11 19:39:45 -0500 )edit

Thanks, I edited my question

ghislain gravatar imageghislain ( 2017-11-12 05:12:02 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-11-11 17:50:25 -0500

sideburns gravatar image

I'm not sure, here, what you mean by "replacing uname by my user name," because what you're supposed to type is exactly what you see in the instructions: (uname -r). This is so that bash will run the command uname -r with the output of the command, which will be the exact version of the running kernel, which is what you need here. I think that you would need to edit the command line in GRUB, to boot your most recent kernel into single-user mode one time, run dracut again, with the correct arguments and try to reboot normally.

edit flag offensive delete link more

Comments

Thanks for the answer! I tried to boot in single user mode following those instructions https://docs.fedoraproject.org/f26/sy...withtheGRUB2BootLoader.html

It didn't work. In the error report it is written that /Dev/fedora/root does not exist. As the instruction to boot in single user mode comes after the call to /Dev/fedora/root, maybe it doesn't boot in single user mode but fails before.

ghislain gravatar imageghislain ( 2017-11-11 19:24:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-11-11 17:08:34 -0500

Seen: 1,739 times

Last updated: Nov 12 '17