Both opensuse and Windows, when installed on the same computer, have a tendency to delete boot options of the other OS. Usually happens after updates, 1-4 times per year.
If opensuse has deleted Windows's boot option, then the solution is easy: boot into opensuse, and reinstall the boot loader. If this is done in Yast, don't forget to enforce "Probe Foreign OS".
If Windows has deleted the opensuse's boot option, then the story is longer. Boot from a Live or rescue Linux USB flash drive or CD, and do these steps. They are described in more details elsewhere; here is an approximate sequence of steps:
1) Identify the root partition (/, not /root) and mount. (The root partition contains /etc and /home):
Code:
mount -t ext4 /dev/sda2 /mnt
2) If UEFI boot is used, identify and mount the the FAT partition used for booting:
Code:
mount -t vfat /dev/sda1 /mnt/bootefi
3) Mount (bind) three filesystems:
Code:
mount --rbind /proc /mnt/proc
mount --rbind /sys /mnt/sys
mount --rbind /dev /mnt/dev
4) Optionally, one more mount:
Code:
mount -t devpts pts /mnt/dev/pts
5) Change root (chroot):
6) Optionally, mount all filesystems:
7) Reinstall grub with one of these methods, or with some other command:
Code:
grub2-install --target=x86_64-efi /dev/sda
grub2-install --target=x86_64-efi --efi-directory=/bootefi /dev/sda
Start yast, go to System -> Boot Loader
Start yast2, go to System -> Boot Loader
8) Exit the chroot environment:
9) Unmount the filesystems in reverse order:
Code:
umount /mnt/dev/pts
umount /mnt/dev
umount /mnt/sys
umount /mnt/proc
10) Reboot
Bookmarks