Bug 20381 - Installing nvidia driver results in an unbootable system
Summary: Installing nvidia driver results in an unbootable system
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: 6sta2
Depends on:
Blocks:
 
Reported: 2017-03-02 02:31 CET by William Kenney
Modified: 2017-04-10 06:30 CEST (History)
4 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
journalctl.txt (206.81 KB, application/zip)
2017-03-03 02:03 CET, William Kenney
Details

Description William Kenney 2017-03-02 02:31:15 CET
Description of problem:

Install M6, x86_64, Plasma on real nvidia hardware using:

Mageia-6-sta2-LiveDVD-Plasma-x86_64-DVD.iso 02/28/17
md5sum: 871f96e43903c71434c0486fe0cb4942

Install is clean, uses nouveau driver, common apps work,
system updates then reboots back to a working desktop.

MCC -> Hardware -> Set up the graphical server -> select the nvidia driver

Install process proceeds normally but once installed the launch menu no longer responds.
Force reboot the system.
System boots to a blank screen with the following error:

Minimal BASH-like line editing is supported. For the first word,
TAB lists possible command completions. Anywhere else TAB lists
possible device or file completions.

grub>

Trying something/anything results in:

grub> boot
error: you need to load the kernel first.
grub>

Please feel free to refer this to some other BUG or use this BUG as a catch
all for suggestions or tests to try.

ctrl/alt/f2 is unresponsive
William Kenney 2017-03-02 02:31:47 CET

Whiteboard: (none) => 6sta2

Comment 1 Marja Van Waes 2017-03-02 07:13:34 CET
Hi wilcal,

Do you still have the untouched root partition of that install, or did you already overwrite it?

If you still have it, then please mount that root partition.

There's a directory with a very long hexadecimal name in
 /that/partition's/var/log/journal/

please run, as root, 

  journalctl -D /path/into/that/hexadecimal/directory/ > journal.txt

and attach journal.txt to this bug report.
(compress the journal with xz if it's too large to attach)

If you already wiped that partition, then please install Mageia again, but, before starting MCC to change the video driver, run, as root:

   journalctl -f 2>&1 | tee journal_f.txt

and keep it running while reproducing this bug. After that, attach journal_f.txt to this report.

Btw, you mention 

> ctrl/alt/f2 is unresponsive

after telling about the boot problem. Did it refer to earlier, when the system froze after selecting Nvidia in MCC?

@ barjac

I don't tell wilcal how to restore his bootloader, because I don't know how to do that from a grub prompt (I always use a supergrub2 disk when I get stuck)

CC: (none) => kernel, marja11, zen25000

Comment 2 William Kenney 2017-03-02 07:27:25 CET
(In reply to Marja van Waes from comment #1)

> Do you still have the untouched root partition of that install, or did you
> already overwrite it?

The way I started this test is to wipe the drive clean and let the new LiveDVD iso do all the work. Nothing customized. It installed the nouveau driver and the install was a complete success. No problems at all. As soon as the nvidia driver installed the desktop pretty much became unresponsive so I forced the reboot and got the error message mentioned above.

I have preserved the drive and will get back to it tomorrow to see if I can get anything useful out of it. Remember it's completely unresponsive so trying to run journalctl won't work. Already tried that.

Best thing I think I can do here is to boot from another drive and mount this dead one and see if I can get into the directory structure. That I will try and have something, I hope, by QA meeting tomorrow. If you can think of something somewhere to look post it here and I'll take a look.

The system was running fine with nouveau. As soon as the nvidia driver was installed everything went in the trash can.
Comment 3 Marja Van Waes 2017-03-02 07:55:36 CET
(In reply to William Kenney from comment #2)

> 
> Best thing I think I can do here is to boot from another drive and mount
> this dead one and see if I can get into the directory structure. 

That's exactly what the "journalctl -D" command is for :-)
The following should work on that install's root partition:

(In reply to Marja van Waes from comment #1)

> 
> There's a directory with a very long hexadecimal name in
>  /that/partition's/var/log/journal/
> 
> please run, as root, 
> 
>   journalctl -D /path/into/that/hexadecimal/directory/ > journal.txt
> 
> and attach journal.txt to this bug report.
> (compress the journal with xz if it's too large to attach)
> 

Apart from that, *unless* barjac tells you differently, please do also attach the output of

    ls -al /that/partition's/boot/ 

and attach:

    /that/partition's/boot/grub.cfg
and
    /that/partition's/boot/grub.cfg.old

Thanks :-)
Comment 4 Marja Van Waes 2017-03-02 07:56:55 CET
oh, and please attach

   /that/partition's/etc/X11/xorg.conf
Comment 5 Marja Van Waes 2017-03-02 08:07:20 CET
(In reply to Marja van Waes from comment #3)

> 
>     /that/partition's/boot/grub.cfg
> and
>     /that/partition's/boot/grub.cfg.old
> 

Please read

    /that/partition's/boot/grub2/grub.cfg
and
    /that/partition's/boot/grub2/grub.cfg.old
Comment 6 Barry Jackson 2017-03-02 11:40:04 CET
If you are left at a grub(2) prompt you can sometimes boot by using grub's built in commands.
ls
Should list the drives that it can see.
You can use search.file to find which drive/partition has a specific file e.g:
search.file /etc/mageia-release
Once you have the correct drive/partition then you can set that to the root variable e.g.:
root=(hd1,gpt3)
Assuming a simple/normal Mga installation then the following commands should boot it:
linux /boot/vmlinuz
initrd /boot/initrd.img
boot

The above assumes that grub2 is not broken and that the correct modules are installed to access the file system in use.

You can list loaded grub modules with:
lsmod

and load modules with:
insmod <modulename>


Hope that helps.
Comment 7 William Kenney 2017-03-02 20:18:14 CET
(In reply to Barry Jackson from comment #6)

> If you are left at a grub(2) prompt you can sometimes boot by using grub's
> built in commands.
> ls

grub> ls
(hd0) (hd0,msdos6) (hd0,msdos5) (hd0,msdos1)
grub>
Comment 8 Thomas Andrews 2017-03-03 02:01:10 CET
I did not see this problem on my MBR system with the nvidia340 driver. I know Bill uses nvidia-current, and that may be making the difference, but my procedure was also somewhat different from his, and THAT could be making the difference.

I installed from the LiveDVD and updated as Bill did. (I activated the tainted repositories. Bill didn't say whether he did or not.) 

Where I differ is after installing the nvidia340 driver I used MCC to check the grub2 kernel boot options for the presence of "nokmsboot." It was not there, so I added it. (Bug 18084)

I too had to force a shutdown using the command line. (Bug 20153) Upon rebooting the process took longer than normal, as it usually does after this procedure, but it did complete to a working desktop. Another reboot took the normal amount of time.

CC: (none) => andrewsfarm

Comment 9 William Kenney 2017-03-03 02:03:54 CET
Created attachment 9013 [details]
journalctl.txt

Can you get anything out of this?
Comment 10 Marja Van Waes 2017-03-03 19:36:51 CET
This looks good:
Mar 01 17:07:16 localhost drakx11[2547]: modify_append:  nokmsboot
Mar 01 17:07:16 localhost drakx11[2547]: moved file /boot/grub2/grub.cfg to /boot/grub2/grub.cfg.old
Mar 01 17:07:16 localhost drakx11[2547]: running: update-grub2

It ends with:

..drakx11[2547]: update-grub2 logs: mesg: ttyname failed: Inappropriate ioctl for device
                 Generating grub configuration file ...
                 Found theme: /boot/grub2/themes/maggy/theme.txt
                 Found linux image: /boot/vmlinuz-4.9.13-desktop-1.mga6
                 Found initrd image: /boot/initrd-4.9.13-desktop-1.mga6.img
                 Found linux image: /boot/vmlinuz-desktop
                 Found initrd image: /boot/initrd-desktop.img
                 done
..drakx11[2547]: created file /boot/.enough_space
..drakx11[2547]: removed files/directories /boot/.enough_space
..drakx11[2547]: ### Program is exiting ###

@ barjac

I suppose the "update-grub2 logs: mesg: ttyname failed: Inappropriate ioctl for device" line is unrelated and can be ignored?





There are a lot of KDE errors in the logs, but I don't see how they can
Comment 11 Marja Van Waes 2017-03-03 19:38:23 CET
(In reply to Marja van Waes from comment #10)


> 
> There are a lot of KDE errors in the logs, but I don't see how they can

cause ending up in a grub shell.
Comment 12 William Kenney 2017-03-03 21:20:04 CET
Next task for me is to install the new x86_64 Plasma ISO and see how that does with nvidia. I'll get through that by Sunday, California time.
Comment 13 Marja Van Waes 2017-03-17 15:35:26 CET
(In reply to William Kenney from comment #12)
> Next task for me is to install the new x86_64 Plasma ISO and see how that
> does with nvidia. I'll get through that by Sunday, California time.

Any feedback on that?
Comment 14 Marja Van Waes 2017-04-05 09:42:16 CEST
(In reply to Marja van Waes from comment #13)
> (In reply to William Kenney from comment #12)
> > Next task for me is to install the new x86_64 Plasma ISO and see how that
> > does with nvidia. I'll get through that by Sunday, California time.
> 
> Any feedback on that?

Ping? Do you still end up at a grub prompt when switching to nvidia after installing the pre-testing Mageia-6-rc-LiveDVD-Plasma-x86_64-DVD.iso ?

Or could you reproduce it in different cauldron (e.g. installed from a classical iso)?

Note that this bug wasn't assigned to anyone, yet!

Keywords: (none) => 6sta2
Whiteboard: 6sta2 => (none)

Comment 15 Marja Van Waes 2017-04-10 06:30:09 CEST
@ William

No reply and again no reply, so closing as OLD.


So this can no longer be reproduced with the QA 6RC isos?

Please reopen if the issue is still valid for current QA 6RC isos!

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.