[Bug 911584] New: Perl-Bootloader: (...) <3> pbl-1790.2 Core::GRUB2::GrubDev2UnixDev.252: Error: did not find a match for hd0 in the device map
http://bugzilla.opensuse.org/show_bug.cgi?id=911584 Bug ID: 911584 Summary: Perl-Bootloader: (...) <3> pbl-1790.2 Core::GRUB2::GrubDev2UnixDev.252: Error: did not find a match for hd0 in the device map Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: x86-64 OS: openSUSE 13.2 Status: NEW Severity: Major Priority: P5 - None Component: Bootloader Assignee: jsrain@suse.com Reporter: Ulrich.Windl@rz.uni-regensburg.de QA Contact: jsrain@suse.com Found By: --- Blocker: --- When installing "http://download.opensuse.org/repositories/openSUSE:/13.2/standard/x86_64/uco..." the booloader possibly wasn't updated correctly: [...] *** Creating image file done *** Update bootloader... Perl-Bootloader: 2015-01-03 20:20:30 <3> pbl-1790.2 Core::GRUB2::GrubDev2UnixDev.252: Error: did not find a match for hd0 in the device map + exit D: %posttrans(ucode-intel-20140913-1.1.x86_64): waitpid(3324) rc 3324 status 0 -- This is the contents of /boot/grub2/device.map: (hd1) /dev/md125 (hd0) /dev/md124 -- Installation was done on LVM with LIKS-encrypted PV on an Intel-ICH RAID1; /proc/mdstat: Personalities : [raid1] md124 : active (auto-read-only) raid1 sdc[1] sdd[0] 244195328 blocks super external:/md125/0 [2/2] [UU] md125 : inactive sdc[1](S) sdd[0](S) 6248 blocks super external:imsm -- PV VG Fmt Attr PSize PFree /dev/mapper/cr_md-uuid-2047fabb:aa554b5d:ff1519a1:7d0ff016-part5 system lvm2 a-- 199,98g 3,88g -- Possible reasons for the problem could be the messages form pbl.log: pbl-1790.2 Core::GRUB2::GetDeviceMap.131: skip partition /dev/md124 in device map -- leading to: pbl-1790.2 Core::GRUB2::GetDeviceMap.180: Warning: empty device.map -- Some more helpful lines from that log: pbl-1790.2 Core::SplitDevPath.267: /boot was split to /dev/system/root + /boot pbl-1790.2 Core::GRUB2::GetKernelDevice.199: From /dev/system/root to /dev/dm-2 pbl-1790.2 Core::GRUB2::ParseLines.503: checking boot device /dev/disk/by-id/md-uuid-2047fabb:aa554b5d:ff1519a1:7d0ff016 pbl-1790.2 Core::GRUB2::ParseLines.539: detected boot_root -- When running grub2-mkconfig, the following message appeared: grub2-probe: Fehler: Laufwerk »lvmid/3Ef9oz-Xfr2-XuKX-0fAt-8atP-yzlY-40E7Kz/ELfc6R-zGSn-gPma-Plqu-iakm-opLT-kw8wDv« wurde nicht gefunden.. -- Note the ID refers to VG "system", thin LV "archive" (which is not activly used): --- Logical volume --- LV Path /dev/system/archive LV Name archive VG Name system LV UUID ELfc6R-zGSn-gPma-Plqu-iakm-opLT-kw8wDv LV Write Access read/write LV Creation host, time i7a, 2014-11-28 22:52:02 +0100 LV Pool name arcpool LV Status available # open 0 LV Size 40,00 GiB Mapped size 80,64% Current LE 2560 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:8 -- Anyway, a openSUSE boot entry is present in an updated /boot/grub2/grub.cfg. (Uses "set root='lvmid/3Ef9oz-Xfr2-XuKX-0fAt-8atP-yzlY-40E7Kz/Cksomh-IXF2-DRHY-u1TX-LYSt-Psfa-oPWN9g'") -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
Jiri Srain
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
Steffen Winterfeldt
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
Michael Chang
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
--- Comment #3 from Ulrich Windl
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
--- Comment #4 from Michael Chang
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
--- Comment #5 from Ulrich Windl
+ $sys_dev =~ s#/#!#;
I wonder: Shouldn't it be "$sys_dev =~ s#^.*/##;"? If the device is "/dev/md123" your command would make "!dev/md123" from it, while my command would make "md123". I didn't watch the whole context, but in /sys/block there are entries like "md123"... While at it, also fix the comment, because the code does something different than the comment suggests. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
--- Comment #6 from Steffen Winterfeldt
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
--- Comment #7 from Ulrich Windl
>>>>>>>>>>
Was that the command to ruin my boot configuration? ;-) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
Ulrich Windl
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
--- Comment #8 from Michael Chang
(In reply to comment #2 and comment #4) The suggested commands take quite some time, and the first one finished without output, while the second one (what is it supposed to do?) gave this output:
It (update-bootloader --reinit) is supposed to reintall your bootloader and also recreate bootloader config.
Perl-Bootloader: 2015-01-08 20:01:00 <3> pbl-2016.2 Core::RunCommand.1658: Error: '/usr/sbin/grub2-install --target=i386-pc --force --skip-fs-probe "/dev/system/root"' failed with exit code 1, output: <<<<<<<<<<<<<<<<
That's odd, the /dev/system/root definitely can't be the install device. And if it was how could it pass the installation and booted. What is your content of /etc/default/grub_installdevice ? Could you please attach it. And also please attach /var/log/pbl.log. Thanks.
Was that the command to ruin my boot configuration? ;-)
I suppose Not, because it was failed and aborted .. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
--- Comment #10 from Ulrich Windl
That's odd, the /dev/system/root definitely can't be the install device. And if it was how could it pass the installation and booted.
--somewhat off-topic-- Well, when installing, I entered that selection in Yast, and Yast accepted it. At the end of the installation there was an error installing the bootloader, and somehow YaST ended with replacing my MBR boot code... As this is not what I wanted, I had started this query: https://forums.opensuse.org/showthread.php/502944-Adding-GRUB2-quot-boot-sec... At the end I managed to install the GRUB2 bootloader in a way that Windows bootloader still works (I guess after the MBR before the first partition starts). I guess I did not adjust some configuration settings after that ---end off-topic---
What is your content of /etc/default/grub_installdevice ? Could you please attach it. And also please attach /var/log/pbl.log.
I don't have those here right now. Later.
Was that the command to ruin my boot configuration? ;-)
I suppose Not, because it was failed and aborted ..
Unfortunately not: It replaced my MBR bootloader (Windows). I used my MBR backup to revert the change. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
--- Comment #11 from Ulrich Windl
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
--- Comment #12 from Ulrich Windl
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
Michael Chang
# cat /etc/default/grub_installdevice /dev/disk/by-id/md-uuid-2047fabb:aa594b5d:ff1519a1:7d0ff516 Fine, this is mbr disk devce on Intel Firmware Raid.
/dev/system/root
Did your yast2 bootloader settings have enabled root partition as install device for grub2? Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
Ulrich Windl
Did your yast2 bootloader settings have enabled root partition as install device for grub2?
Yes. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
--- Comment #15 from Michael Chang
(In reply to Michael Chang from comment #13)
Did your yast2 bootloader settings have enabled root partition as install device for grub2?
Yes.
Did you enable it manually? If yes, why ? MBR is unable to chain-load loader image from lvm blocks. If the setting was not explicitly enabled by user, I wonder YaST did a wrong location proposal here. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
--- Comment #16 from Michael Chang
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
Ulrich Windl
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
--- Comment #18 from Michael Chang
http://bugzilla.opensuse.org/show_bug.cgi?id=911584
--- Comment #19 from Michael Chang
participants (1)
-
bugzilla_noreply@novell.com