Title: Double grub entry of windows 10. I want to remove it
Tags: dual-boot;grub2
Question: I am having double grub menu entry of windows 10. I am not saying that 40_custom grub file located in /etc/grub.d
That is a different case. Here Windows has double entries and fun fact that both the entries load the same OS.(I have one windows installation)
Sourcing file /etc/default/grub
Sourcing file /etc/default/grub.d/init-select.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.11.0-27-generic
Found initrd image: /boot/initrd.img-5.11.0-27-generic
Found linux image: /boot/vmlinuz-5.11.0-25-generic
Found initrd image: /boot/initrd.img-5.11.0-25-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Recovery Environment on /dev/sda1
Found Windows 10 on /dev/sda2
Found Windows 10 on /dev/sda3
This is what I get from sudo update-grub
Both entries load the same OS. From disks app it shows that windows is on /dev/sda3/ and on /dev/sda2 there is system reserved partition. And on /dev/sda1/ there is system recovery partition.
IDK how it can boot from reserved partition and I also don't know which entry to remove. So please suggest and if data loss of only windows happens then okay. I formatted windows(resetted).
[EDIT]
Here is what I get from sudo nano /etc/default/grub
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=``lsb_release -i -s 2&gt; /dev/null || echo Debian
GRUB_CMDLINE_LINUX_DEFAULT=&quot;quiet splash&quot;
GRUB_CMDLINE_LINUX=&quot;&quot;
Comment: Can you shopw us the contents of your grub file please? If you have nano type `sudo nano /etc/default/grub` from a terminal when you are loggen into Ubunit. Or use gedit in place of nano.

Comment: you can tell grub to skip one of the filesystem in your case /dev/sda2 or /dev/sda3.  `sudo lsblk -f` please add this to your question.


Here is another answer: This may be due to a record that windows can be booted from it. When you installed windows twice or even if another windows no longer exist, still there may be a record of windows so to fix this problem,
Start windows in recovery. The old F8 key no longer works so, Open windows, login then Click Start, Click power and hold the shift key on your keyboard, and while holding the key, click &quot;Restart&quot; option. It should show a screen saying please wait
Then your pc may reboot. Again open windows. Now go to &quot;Troubleshoot&quot; then &quot;Advanced options&quot; and open &quot;Command Prompt&quot;. Again your pc will reboot. Then again open Windows 10 then it will say &quot;Preparing Command Prompt&quot; or &quot; Please wait&quot; depending on your windows 10 version.
Now it will give you list of Administrator users. just click your user account name then type your password.
Now a Command Prompt Window should open. There type these commands
bootrec /rebuildbcd
bootrec /fixmbr
bootrec /fixboot
Then close command prompt by typing  exit.
Now select &quot;Turn off your PC&quot;
Then turn your pc on again and this time there should be Only ONE Windows 10. If there are still other windows boot entries, Try executing sudo update-grub In linux. Then your problem should be fixed.
NOTE: There are also many other methods you can try if this method does not works.
Thank You
Comment for this answer: "fixmbr" isn't applicable to UEFI based computers, i.e., any from the last decade.

{'source': 'StackExchangeDataset', 'subset': 'askubuntu.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2021:00:08/18/21', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<dual-boot><grub2>', 'Title': 'Double grub entry of windows 10. I want to remove it', 'ViewCount': 229, 'id': 1358662, 'user_AboutMe': "<p>I am a kid, really. I have Vaio VPCEG16FM laptop in which I had 4GB ram. Now if I played any game my laptop would lag so much. Even games from Microsoft store lagged sometimes. I thought of using Ubuntu because it was popular and, I liked it. After few days of experience(1 week roughly) I installed any game that I could play. Now if someone says that don't you wanna use windows? My answer: I gotta go with Linux.</p>\n<p>Disclaimer: Please don't go on my <strong>cute</strong> profile picture.</p>\n", 'user_AccountId': 22358093.0, 'user_DisplayName': 'Rushi Kaneria', 'user_Reputation': 23.0, 'user_Views': 14.0, 'user_id': 1383859.0}}