[Bug 848902] New: Live USB KDE 64 bits. GRUB option 'boot from Hard Disk' fails. OpenSUSE option starts OK
https://bugzilla.novell.com/show_bug.cgi?id=848902 https://bugzilla.novell.com/show_bug.cgi?id=848902#c0 Summary: Live USB KDE 64 bits. GRUB option 'boot from Hard Disk' fails. OpenSUSE option starts OK Classification: openSUSE Product: openSUSE 13.1 Version: RC 2 Platform: x86-64 OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: tonrev@gmail.com QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 The hardware is an new ASUS PC, GPT partitioned, UEFI. The OpenSUSE 13.1 RC2 Live USB KDE 64 bits starts and shows GRUB menu OK. OpenSUSE starts and runs OK but if in the GRUB menu you select the option 'boot from Hard Disk' (to go back to the native OS) the screen makes a flash (I can not see any message, it is too fast) and comes back to the GRUB menu. After that if you select the 'OpenSUSE' option in GRUB, it shows the error: Error: file '/boot/x86_64/loader/linux' not found Loading initrd... error:you need to load the kernel first and the only option is to power off the PC from the hardware button. I have tried with UEFI secure boot enabled and disabled, UEFI CSM enabled and disabled with the same esult Reproducible: Always Steps to Reproduce: 1.Run OpenSUSE 13.1 RC2 Live USB KDE 64 bits from the USB 2.In the GRUB menu select the option 'boot from Hard Disk' 3. Actual Results: You can not start the native OS, nor OpenSUSE, not even exit from GRUB except with the hardware power button. Expected Results: Start the native OS I mark this bug as critical because final release is very close and people booting from a live USB expects to be able to came back to his native OS easily. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c1
--- Comment #1 from ton rev
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c2
Jiri Srain
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c3
--- Comment #3 from ton rev
Tested here and works well.
Can you exit the graphical interface when booting the live media and boot manually? Perhaps you can spot some error then...
Sorry, I am not a big expert. Can you say me how do I exit the graphical interface when booting the live media and then boot manually? Are there some log files in the USB live media to attach? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c4
ton rev
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c5
Jiri Srain
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c6
--- Comment #6 from ton rev
OK, this finally says something. I'm not entirely sure whether it tries to boot directly from network instead of local disk, or after reading the disk fails.
Michael, since it refers to uEFI, can you check?
Sorry, I did not mention but this error was got with the 32 bits Live USB on an old 32 bits BIOS (non UEFI) PC. The 64 bits Live USB also fails on a new UEFI PC but I can not see the error, it seems to show something but it returns immediatly to the initial screen. I also tried to go to text mode in the initial GRUB menu (pressing the ESC key) and selecting the option "harddisk" with the same result: It seems to show some error but immediatly returns to the initial grafical screen. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c7
--- Comment #7 from ton rev
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c
ton rev
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c8
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c9
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c10
--- Comment #10 from ton rev
Hi ton,
Thanks for your report and efforts to investigate this problem. By the way could you confirm you have the problem on legacy bios as well ? (from your report it did ..)
Yes, I have the same problem with the "Boot from Hard Disk" option on two different legacy bios 32 bit PC (a six years old notebook and a two years old netbook) in this case obviously using the 32 bits Live USB. In the 32 bits case I think the "Boot from Hard Disk" option launchs the command (taken from file syslinux.cfg) "localboot 0x80" but I still have not investigate syslinux options so I have no idea how to change it. If at least the options to reboot or halt the system where added to the final version Live USB, people with problems like me would be able to exit the Live USB menu without having to use the hardware power button that is never recommended. Cheers. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c11
Jeffrey Cheung
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c15
Michael Chang
I tried on both UEFI and non-UEFI machine, "Boot from Hard Disk" option fail and thus I think that the problem is not related to UEFI.
Checked with legacy bios with isolinux bootloader. In "Boot from Hard Disk" the 'Disk' is your primary hard drive define by bios with id 0x80. When booting off from USB, the primary hard drive is the USB disk itself as it's the booted device thus got assigned id 0x80. So if you "Boot from Hard Disk" it boots to itself again. I'm not sure, we'd better check with Steffen how to handle such case properly. Maybe we have to use 0x81 to boot secondary disk. About the efi, I'm looking for the hardware to test. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c16
Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c17
--- Comment #17 from ton rev
About the efi, I'm looking for the hardware to test.
From my tests (Comment 7) in UEFI the "Boot from Hard Disk" option (in file /EFI/BOOT/grub.cfg) boots: root='hd0,1' chainloader /EFI/BOOT/bootx64.efi where hd0,1 in GRUB2 is the first partition (1) of the first hard disk (0), but as the system is booting from the live USB, it seems that the first hard disk is the USB itself and the PC's hard disk is the second, so it boots to itself. It´s the same problem as in legacy bios but with GRUB2 commands involved.
Changing this entry to: set root='hd1,1' chainloader /EFI/BOOT/bootx64.efi booted from the PC's hard disk in my case but I don´t know if it´s the cleaner solution or there is a better way. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c18
--- Comment #18 from Michael Chang
Changing this entry to: set root='hd1,1' chainloader /EFI/BOOT/bootx64.efi booted from the PC's hard disk in my case but I don´t know if it´s the cleaner solution or there is a better way.
Not only the disk, but also the EFI System Partition could vary. I'm afraid things can't be done easily by "static" config anymore. Some of my thoughts. 1. We offer static "Reboot into firmware setup menu." in grub2 menu to use firmware's boot manager to boot to any other OS. But this requires UEFI firmware to support "OsIndications" variable which is not common. 2. Search any other disk's default efi loader, for example like this next_disk=hd1 search --set=next_disk_efi_part --file --hint-efi="$next_disk" /EFI/BOOT/bootx64.efi chainloader "${next_disk_efi_part}/EFI/BOOT/bootx64.efi" The problem here is how grub2 in defining "next disk" exactly in it's device naming. 3. Import all boot variables from boot manager and menu entries are dynamically presented these variables and using chainloader, but that would require most work as read/write efi vars are not be able to do as command. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c19
--- Comment #19 from Michael Chang
You can use '-2' instead of 0x80 to boot the 'next' disk. Seems I
Cool. Don't know that syslinux could specify 'next' disk. :) I think 0x81 is not reliable as it's not necessary be the 'next' disk . So using -2 is really the best idea. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c20
--- Comment #20 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c21
--- Comment #21 from ton rev
I'm testing this config and it seems to work for me, although it looks quite scary.
But as far as I understand it this script only works with UEFI systems, not with 64 bits non UEFI systems. There is a script in /etc/grub.d/30_os-prober that is used to detect any OS (32 and 64 bits, UEFI and non UEFI) and add that OS entry to the GRUB configuration file grub.cfg. I suppose it will be launched during the installation process. I don't fully understand it, so I am not sure, but could be possible to use it or a modified version in our "Boot from Hard Disk" case to detect and launch the proper hard disk OS? It's just an idea. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848902
https://bugzilla.novell.com/show_bug.cgi?id=848902#c22
--- Comment #22 from Michael Chang
(In reply to comment #20)
I'm testing this config and it seems to work for me, although it looks quite scary.
But as far as I understand it this script only works with UEFI systems, not with 64 bits non UEFI systems.
It's a grub config not a linux script. Ideally the grub config will be in efi system partition and therefore only run on efi platform. In practice our procedure could have a secondary config placed in (common) iso9660 file system so your concern is correct but anyway the config is just to demonstrates the idea.
There is a script in /etc/grub.d/30_os-prober that is used to detect any OS (32 and 64 bits, UEFI and non UEFI) and add that OS entry to the GRUB configuration file grub.cfg. I suppose it will be launched during the installation process. I don't fully understand it, so I am not sure, but could be possible to use it or a modified version in our "Boot from Hard Disk" case to detect and launch the proper hard disk OS?
No. We don't even have a chance to run os-prober as that require (booted) linux to work and the ISO images are totoally write protected.
It's just an idea.
Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=848902
--- Comment #24 from ton rev
participants (1)
-
bugzilla_noreply@novell.com