[Bug 1017778] New: bootloader is written to disk sdb, while this is not configured. System does not show the bootloader when sdb is selected.
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778 Bug ID: 1017778 Summary: bootloader is written to disk sdb, while this is not configured. System does not show the bootloader when sdb is selected. Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.2 Hardware: x86-64 OS: openSUSE 42.2 Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader Assignee: jsrain@suse.com Reporter: richard.bos@xs4all.nl QA Contact: jsrain@suse.com Found By: --- Blocker: --- Created attachment 708204 --> http://bugzilla.opensuse.org/attachment.cgi?id=708204&action=edit y2log for only the bootloader session YaST/bootloader configured, with the options shown in the screenshot Bootloader_code_tab.jpg. There is nowhere set or mentioned (displayed) at which disk the bootloader will be stored. From the documentation [1] and help [2] I understood that the bootloader would be stored at 1st disk (sda), but according the logs the bootloaders is stored at sdb. Why? On the other hand it's something I wanted (bootloader at disk sdb) so I can test the bootloader. After booting the system and selecting the 2nd disk (sdb) there is no bootprompt at all :( Two questions: 1) Why is the bootloader saved at sdb (2nd disk) and not to the 1st? 2) The system does not boot from the saved bootloader at sdb, why? [1]: https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.ref... [2]: https://bugzilla.opensuse.org/attachment.cgi?id=708132 (#1017677) y2logs attached for only this bootloader session. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778#c1
--- Comment #1 from Richard Bos
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778#c2
--- Comment #2 from Richard Bos
From the logs it can be seen that the bootloader (MBR) is written to sdb 2017-01-02 20:18:59 <1> mycloud(14014) [Ruby] bootloader/mbr_update.rb:66 Copying generic MBR code to /dev/sdb 2017-01-02 20:18:59 <1> mycloud(14014) [Ruby] lib/cheetah.rb:158 Executing "/bin/dd bs\=440 count\=1 if\=/usr/share/syslinux/mbr.bin of\=/dev/sdb".
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778#c3
Jiri Srain
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778#c4
Josef Reidinger
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778#c5
Jiri Srain
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778#c6
--- Comment #6 from Richard Bos
From #c3: Perhaps we should prevent installing generic code to MBR if GRUB is not installed on the first (according to the order) disk?
If installing the MBR does not make sense, it shouldn't be done. I want to provide this system (the one I'm working with at the moment) with a RAID-1 for the various partitions, so there will be a /dev/md0 [sda1,sdb1] /dev/md1 [sda2,sdb2] etc Now, when disk sda gets defect it should be possible to start from the second disk, just by selecting the 2nd disk manually during system startup. In this case the bootloader config can/must be the same (similar) for sda and sdb. See article that I referenced in 1017761#c0 With this in mind I find the YaST bootloader confusing. In the disk boot order is set sda and then sdb. But the bootloader is written to sdb... What is the reason for the disk order popup window? It's for this reason I opened #1017731#c0. Let's see if this can be improved... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778
http://bugzilla.opensuse.org/show_bug.cgi?id=1017778#c7
--- Comment #7 from Jiri Srain
From #c3:
Perhaps we should prevent installing generic code to MBR if GRUB is not installed on the first (according to the order) disk?
If installing the MBR does not make sense, it shouldn't be done.
Well, with booting, there are too many unknowns, which cannot be detected. When booting the installation from CD/USB, the boot order is different than the one when you boot after installation. And the installer cannot know how you set your BIOS for next boot. As Josef pointed out, what I thought that makes no sense can make sense at the end - therefore we should be careful. MD arrays make quite a change. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com