On Fri, 22 Jul 2016 11:22, Carlos E. R. wrote:
Hi,
I have finally upgraded my main hard disk, grom 500GB to 2000GB. So I had to also migrate my 13.1 system with grub1 to a GPT disk. Worked fine. The problem is elsewhere.
The computer is oldish, BIOS only. The main disk is GPT. The protective MBR has "Syslinux GPTMBR (4.04-5.01)", which boots the partition that has the flag legacy_boot.
In that partition there is a grub 2 boot system pertaining to a Leap 42.1 install. This system, instead of automatically generating entries for other systems, has manual entries in /boot/grub2/custom.cfg like:
menuentry 'Main (with uuid)' { insmod part_gpt insmod ext2 set root='hd0,gpt5' if search --no-floppy --fs-uuid --set=root e99d9dcb-869d-4a24-94cf-cba32f169b8d ; then chainloader +1 else echo Could not find this OS instance, will not boot (3) sleep 1 fi }
(thanks to Andrei Borzenkov and others for setting up that idea)
So that the menu writes entries to the boot screen (from memory) like these:
Leap 42.1 Advanced options for Leap Main (with uuid) 11.4 (with uuid)
etc. Well, the question is whether it is possible to change the default entry, which now is the first line (automatically generated) to the third one (manually generated).
Prior threads:
[opensuse] Trying to understand booting GPT disk with BIOS (not UEFI) situation [opensuse] Am I doing this custom grub config correctly?
Oh? Try "man grub2-set-default" and "man grub2-editenv" for info, grub2 stores the "default" in a extra file "/boot/grub2/grubenv" as a entry "saved_entry=xxx" e.g.: "saved_entry=gnulinux-simple-eb139661-114a-432b-bf10-e21244bfa245" To note: for that to function, in the file "/etc/default/grub" the entry "GRUB_DEFAULT=saved" needs to be set, also the entry "GRUB_SAVEDEFAULT=true" is helpfull, which will allow you to automatically save last booted menu entry in GRUB2 environment variable 'saved_entry' If you change "/etc/default/grub", do not forget to re-create "/boot/grub2/grub.cfg" via "grub2-mkconfig -o /boot/grub2/grub.cfg" - Yamaban -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org