Emergency mode after trying to install NVIDIA driver

Hi everyone. Hope all is well.
I was following this guide on how to install nvidia drivers for a 1070ti and after step 2.7 (Reboot to runlevel 3 ) the system went to emergency mode.
When I exit the emergency mode I can read:
Warning: Not all disks have been found
Warning: You might want to regenerate your initramsfs
I really would appreciate some help here. I would not mind paying for this help too.
Here is the link for the guide: https://www.if-not-true-then-false.c…-nvidia-guide/
THANK YOU !

Hello @cheapcigar, there is no need to offer money in order to ask for help. Here, like in many free software communities, there is a lot of kindly people that is happy to collaborate with each other in order to solve issues.

1 Like

Hi @cheapcigar!

First of all – as written here on Ask Fedora quite a few times already – there is much better way to install NVidia drivers on Fedora.

https://rpmfusion.org/Howto/NVIDIA

Both links have info on how to install the same driver from the the same source, first one is short and to the point, second is with longer explanations aimed at newer / less experienced users.


As you haven’t yet done the installation of driver, I would suggest reverting changes you’ve done already, and then installing the driver from the repository.

I (and I hope other people here too) will try to provide you the help you’ll need to undo the changes.
How about such a plan? Are you with me?

The other possible way will be trying to proceed with installation – but I don’t like this approach (that’s me personally). Chances are (from your description of the problem) something went wrong for you on step 2.6.5 Generate initramfs, and that’s why you are dropped to emergency mode. I can’t be sure, of course. Also keep in mind I’ve never installed NVidia’s driver using that guide.

7 Likes

Thank you so much @nightromantic

2.6 Enable nouveau

2.6.1 Create or edit /etc/modprobe.d/blacklist.conf

edit sudo nano /etc/modprobe.d/blacklist.conf, and delete this line
:arrow_right: blacklist nouveau

2.6.2 Edit /etc/sysconfig/grub

Append this file sudo nano /etc/sysconfig/grub and delete rd.driver.blacklist=nouveau at the end, that file should look like this ‘GRUB_CMDLINE_LINUX=”… rhgb quiet`

2.6.3 Update grub2 conf

## BIOS ##
grub2-mkconfig -o /boot/grub2/grub.cfg

## UEFI ##
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

2.6.4 Install xorg-x11-drv-nouveau

If you have following row on /etc/dnf/dnf.con file, then you can remove it:

sudo nano /etc/dnf/dnf.conf/ and delete the following line, exclude=xorg-x11*

then install it

sudo dnf install xorg-x11-drv-nouveau

2.6.5 Generate initramfs

## Restore Original initramfs nouveau image ##
sudo mv /boot/initramfs-$(uname -r)-nouveau.img /boot/initramfs-$(uname -r).img 
 
or

## Create new initramfs image ##
sudo dracut /boot/initramfs-$(uname -r).img $(uname -r)

2.7 Reboot to runlevel 5

Run level 5 is emulated by graphical.target (and runlevel5.target is a symbolic link to graphical.target ).

systemctl isolate graphical.target

reboot

NOTE: Now you can test with other tools like the official way

Regards.,

1 Like

Actually, you have nothing to thank me for ) @hhlp did all the work, I was waiting for your confirmation you’re ready to take path I’ve suggested before writing detailed instructions.

Please tell us – have you succeeded in undoing changes?

Hello all! After spending HOURS trying to fix the above issue, I found this post. The difference is, I can’t enter any commands in Dracut emergency mode and exiting it causes my Dell XPS to hang. When I first followed the document to load the drivers, I was able to boot but now I get the error that my root, swap and live-root don’t exist. I’ve tried using the other GRUB menu items and now, not even the rescue one works. I’ve posted to the author’s site but haven’t heard anything back. I am on the verge of just wiping my disk and starting again but I don’t want to have to restore all of the data back. The journalctl file only says that the above disks are not visible as does the rdsosreport.text file. Can someone please help? Don’t know if I have a problem with grub or the kernel but the system is a boat anchor right now.

I guess there is no flagging mechanism here and I got no responses on my question. I did find out from the article here that the NVIDIA driver for my card (GeoForce 6800) doesn’t have any updated drivers and is end of life. Luckily, I was able to mount the volume group from my drive, take a backup and re-install the Fedora OS. I really would have liked to know how I could have rebuilt the kernel without deleting all of the data but, next time, I’ll create a new case for some exposure.

@beachcomberny, well, if your situation was similar to the original one, then live session using Fedora install USB could help you.

You could mount you root partition and edit necessary config files on it.

Installation of a packet is a bit trickier, but can be done using chroot. In your case it’s a way to “enter” inside your installed Fedora from a Live USB – in command line mode only, but that’s enough for troubleshooting (actual uses of chroot are much wider than that).

To do it you can follow steps 1 through 8 from this acticle.

Once you’re in chroot environment, you can do things like changing configuration files and installing/deleting packages. Quite often it’s enough to help you in returning your installed system to life.

You can use live session of a USB to back up files you need (to network storage or external harddrive, for example).

Of course, we can think of situations where it won’t be able to help you – but it’s a useful troubleshooting tool and a good thing to remember of.