Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 22460  / 3 Years ago, thu, october 14, 2021, 12:10:04

I did a clean install of Windows 7 on the same hard drive. I followed the instructions at:



http://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/



I followed the terminal instructions to restore grub bootloader.



Whenever I reboot. I see two entries of Windows 7 on Grub. I don't recall seeing this the last time. I am aware that Windows creates a 'System Reserved' partition (which is currently on sda1).



When I select either of the two boot options, Windows 7 boots fine (so it seems).



This is what update-grub returns:



$ sudo update-grub | tee ~/update-grub.txt
[sudo] password for christian:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-29-generic
Found initrd image: /boot/initrd.img-3.8.0-29-generic
Found linux image: /boot/vmlinuz-3.8.0-27-generic
Found initrd image: /boot/initrd.img-3.8.0-27-generic
Found linux image: /boot/vmlinuz-3.8.0-19-generic
Found initrd image: /boot/initrd.img-3.8.0-19-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
done


Will booting from the System Reserved cause any issues on Windows?



Why are there two entries of Windows 7 instead of 1? Should I have installed Windows 7 without creating a system reserved partition? Is that even an option?



I am on Ubuntu 13.04. My other Ubuntu machines only list down 1 entry for Windows 7. Ideally, if it had to list down 2 entries. It would be better if it displayed as:



Found Windows 7 (System Reserved) on /dev/sda1
Found Windows 7 on /dev/sda2


Can this changes be made via a Grub configuration file somewhere?


More From » dual-boot

 Answers
4

That's normal, though not often behavior. For Windows, GRUB detects loaders, not systems. In your case, there are loaders on system reserved partition and on Windows partition. You may want to delete one of those loaders, but I do not recommend to do this, because it can harm your system. Keeping both loaders is the safest decision.



You can even create more loaders, and all of them will be recognized! It is convenient to use them if you want to load different versions of Windows straight from GRUB. Just experiment with this command:



bcdboot C:Windows /s D:


As it is typed, it will create loader on D: drive, which will load Windows from default location. Replacing C: and D: you can adjust which version to load and from where.



If you want to delete some loaders not using GRUB-Customizer (which sometimes gets out of development), look for Boot folder on Windows 7+ systems and ntloader file on XP and earlier systems.



Modern way is to delete corresponding files from EFI partitions or to disable them with efibootmgr.


[#29618] Friday, October 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
teromato

Total Points: 139
Total Questions: 102
Total Answers: 100

Location: Liechtenstein
Member since Mon, May 15, 2023
1 Year ago
;