Bug 20667 - Grub2 fails to install the bootloader on SATA drive on fakeraid 0 ("grub2-install failed: cannot find a GRUB drive for /dev/mapper/pdc_hejhdeee. Check your device.map")
Summary: Grub2 fails to install the bootloader on SATA drive on fakeraid 0 ("grub2-ins...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
: 20669 20670 20671 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-04-14 22:14 CEST by Luis Menina
Modified: 2017-04-19 09:30 CEST (History)
6 users (show)

See Also:
Source RPM: drakx-installer-stage2, grub2
CVE:
Status comment:


Attachments
logs from /root for the install with fake raid 0 setup (251.68 KB, application/x-compressed-tar)
2017-04-15 16:24 CEST, Luis Menina
Details

Description Luis Menina 2017-04-14 22:14:15 CEST
Description of problem:

The machine is an old MSI K7N2 Delta ILSR motherboard:
https://www.msi.com/Motherboard/support/K7N2_DeltaL_ILSR.html

I have a Crucial SSD connected on one of the serial ATA ports. He're what says the motherboard manual about that:

======================================================
Promise 20376 Serial ATA Interface (Optional)
  Support 2 serial ATA plus 1 ATA133 
    -  RAID O or 1 are supported
    -  RAID function works w/ATA133+SATA H/D or 2 SATA H/D
Connect up to 2 SATA devices and 1 ATA133 device 
======================================================

The problem is that the installation run sucessfully, but at the very end, grub2 installation fails. Seems to be related to the RAID. I used the install DVD of mageia 6 sta 2 downloaded yesterday from mageia website.

How reproducible:
Always. If I remember well, I had the problem under mageia 5 too.

Steps to Reproduce:
1. Just install
Comment 1 Marja Van Waes 2017-04-14 22:50:21 CEST
*** Bug 20671 has been marked as a duplicate of this bug. ***
Comment 2 Marja Van Waes 2017-04-14 22:51:06 CEST
*** Bug 20670 has been marked as a duplicate of this bug. ***
Comment 3 Marja Van Waes 2017-04-14 22:51:28 CEST
*** Bug 20669 has been marked as a duplicate of this bug. ***
Comment 4 Marja Van Waes 2017-04-14 22:57:35 CEST
Please attach /root/drakx/report.bug.xz

or reproduce the problem, switch to tty2 with Ctrl+Alt+F2, insert a USB key and type 

     bug


report.bug will be written to the USB key.

please compress it with xz ( xz report.bug ) and then attach report.bug.xz to this bug report.

Btw, did you try whether you could reboot into the new install, despite the error?

Keywords: (none) => NEEDINFO
CC: (none) => mageiatools, marja11, zen25000

Comment 5 Luis Menina 2017-04-15 16:22:46 CEST
I've been told to take the log from /root, I wasn't aware of the "bug" command. Since then I formatted the machine and tried to reinstall, and I understand the problem a bit more. I'm trying to install on a single SATA disk. The problem is that the SATA ports are handled by the Promise raid controler. On that motherboard, it seems that nobody could boot from a SATA disk without having to put it in a raid array.

So I tried to install to the disk without having it in a RAID array → it installs to sda, but fails to boot (motherboard limitation from what I read int some forums).

If I try to put it in a fake raid 0 array, then the installer fails to install GRUB 2 at the end of the install process.

I didn't want to pass too much time on this, so as a workaround, I took and old 1 GB PATA drive, and chose in the installed to dedicate it to /boot.

> Btw, did you try whether you could reboot into the new install, despite the error?

I tried, and it didn't boot. With the fake raid 0 setup, I tried to run grub-install on /dev/sda using the rescue CD, it failed as I was left on a GRUB black screen prompt without being able to type anything. That's the first time I have to mess up with RAID.

Summary: Grub2 fails to install on sata drive => Grub2 fails to install on SATA drive on fakeraid 0

Comment 6 Luis Menina 2017-04-15 16:24:02 CEST
Created attachment 9202 [details]
logs from /root for the install with fake raid 0 setup
Comment 7 Luis Menina 2017-04-15 16:25:04 CEST
BTW, that seems similar to bug 16035, not sure it's the same thing, though.
Comment 8 Marja Van Waes 2017-04-16 12:37:47 CEST
(In reply to Luis Menina from comment #6)
> Created attachment 9202 [details]
> logs from /root for the install with fake raid 0 setup

The setupBootloader step finished without anything that I recognize as a related error.

The error about failing to install the Grub2 bootloader to the MBR, doesn't appear in the ddebug.log, there is nothing after "* step `configureX' finished"

Assigning to the Mageiatools maintainers and CC'ing pterjan, because of the ERROR and DEBUG lines in the setupSCSI step

(I didn't look for errors in the partitioning step, there might be errors there, too)

CC: (none) => pterjan
Keywords: NEEDINFO => (none)
Summary: Grub2 fails to install on SATA drive on fakeraid 0 => Grub2 fails to install the bootloader on SATA drive on fakeraid 0 (after ERROR lines in setupSCSI)
Source RPM: (none) => drakx-installer-stage2
Assignee: bugsquad => mageiatools

Comment 9 Luis Menina 2017-04-18 14:21:54 CEST
A picture of the tty where the GRUB error was printed is here:
http://hpics.li/d5db3ed
Comment 10 Thierry Vignaud 2017-04-19 09:30:11 CEST
The logs are useless as they don't actually include the bootloader step from the summary.
The bootloader step that appears here is just a preparing step that only build the initrds but doesn't setup the bootloader.

Source RPM: drakx-installer-stage2 => drakx-installer-stage2, grub2
Keywords: (none) => NEEDINFO
CC: (none) => thierry.vignaud, tmb
Summary: Grub2 fails to install the bootloader on SATA drive on fakeraid 0 (after ERROR lines in setupSCSI) => Grub2 fails to install the bootloader on SATA drive on fakeraid 0 ("grub2-install failed: cannot find a GRUB drive for /dev/mapper/pdc_hejhdeee. Check your device.map")


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