I have recently purchased a new laptop and it came with Ubuntu preinstalled on a 128 GB SSD configured to boot via UEFI. I wish to dual boot the system and installed Windows on a partition on the HDD, but after installation there is no option to boot Windows. I suppose grub doesn't detect Windows on another drive. So, what do I have to do to make everything work?
1 Answer
Normally the following command in Linux will cause GRUB to detect Windows:
sudo update-grub
Note that the Windows partition must be mounted in Linux for it to be detected.
-
I've already tried this, but didn't work for some reason. Maybe I did something wrong. I've typed following commands in terminal:– donniedCommented Sep 2, 2019 at 16:30
-
$ sudo mount /dev/sda1 /mnt $ sudo os-prober $ sudo update-grub Создание конфигурационного файла grub... Найден образ linux: /boot/vmlinuz-4.13.0-1028-oem Найден образ initrd: /boot/initrd.img-4.13.0-1028-oem Найден образ linux: /boot/vmlinuz-4.13.0-1021-oem Найден образ initrd: /boot/initrd.img-4.13.0-1021-oem Adding boot menu entry for EFI firmware configuration– donniedCommented Sep 2, 2019 at 16:36
-
I don't understand the language, but if the standard methods don't work, you might try some GRUB-rescue product, for example Super Grub Disk.– harrymcCommented Sep 2, 2019 at 16:45
sudo parted -l
If sdb is MBR(msdos), not gpt then you installed in BIOS boot mode. UEFI systems cannot switch boot mode after start of boot. Or grub will only boot other installs in same boot mode. You may be able to directly boot from UEFI boot menu.