Am 18.06.22 um 17:05 schrieb Carlos E. R.:
On 2022-06-18 16:33, Simon Becherer wrote:
Am 18.06.22 um 16:13 schrieb Andrei Borzenkov:
On 18.06.2022 16:57, Simon Becherer wrote: ...
grub2-install /dev/nvme0n1 (make sure you have nvme0n1 NOT nvme0n1pX !!)
change /etc/default/grub_installdevice in my system change first line to: /dev/nvme0n1p2 and delete line 2: (activate) and line 3: (generic_mbr) so only one line is left
That's wrong. First you install grub on the whole disk and then you tell openSUSE tools that grub is installed on partition. The end result will be - during grub update new version will be installed in partition /dev/nvme0n1p2 *and* in /boot/grub2 while system will continue to boot using grub core.img already present in MBR/BIOS grub partition. This may appear to work for some time until new version that has incompatible changes will be installed. Then new modules in /boot/grub2 will no more match core.img in BIOS grub partition and in the best case you will have error on boot, in the worst case - hard to debug problems or hung system. This was known to happen in the past, it is not something rare.
Hi andrey,
ok, then i have something misunderstand.
i like to have grub2 inside /boot/grub (as it was with mbr)
i have understand: 1 frist part of boot is inside the first 34 sectors of disk (at least a pointer to the bios-boot-partition)
I understand it is in the first sector, just one sector, which is called the MBR. In case of GPT partitioning table, it is called the protective MBR.
2 part of grub (in this case some code who is able to read ext4) is now inside that bios-boot-partition (core.img). 3 part of grub is inside /boot/grub2 /the menue and all the other things needed)
that is what i like to have. and what i was thinking i have now installed.
if it is not like this, where is my mistake?
/etc/default/grub_installdevice should have:
/dev/nvme0n1
I think.
how sure you think ? do you know some documentation about this file? and maybe i have found another problem: https://www.gnu.org/software/grub/manual/grub/grub.html#Invoking-grub_002din... --recheck Recheck the device map, even if /boot/grub/device.map already exists. You should use this option whenever you add/remove a disk into/from your computer. so maybe a good idea to do a: grub2-install --recheck /dev/nvme0n1 simoN -- www.becherer.de