Score:0

windows is located in /dev/sda2 but grub menu shows /dev/sda1 ,i can't boot to windows loop

kp flag

i had windows installed ,and tried dual booting with Ubuntu like in this video : https://youtu.be/G28jfXt9EaI after ubuntu installation was done , i tried booting to windows but when selecting Windows from GRUB, the screen goes black, then loops back to GRUB selection, as if I never selected Windows i then realized windows is installed in /dev/sda2 while grub shows it's in /dev/sda1 and when i run sudo update-grup i get this error:

hu flag
Windows bootloader is likely in /dev/sda1, which is Windows boot partition. Please don't post screenshot of text, copy/paste the text itself.
cc flag
What grub boots for Windows is from the EFI partition, so sda1. That is probably not the problem. Please add the contents of /etc/default/grub to your original post, might be a syntax error somewhere. cat -n /boot/grub/grub.cfg and look at line 327, where the error seems to have occurred and post around that line if you cannot figure out what the syntax error is.
Score:0
sr flag

Try to use Boot Repair

Use second option on the page load the Ubuntu live Cd and choose "try without install" -> then open terminal and type these commands one after one

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt update

sudo apt install -y boot-repair && boot-repair
mohax avatar
kp flag
i didn't install ubuntu from a cd ,i installed it from a usb will this work the same ?
Bassem avatar
sr flag
Yes it will work , just choose try without install. you can also install it on your system , but if you like to choose repair filesystem it can't does on a mount system , so from CD or USB.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.