PDA

View Full Version : [ubuntu] 2 Entries for windows 7 in GRUB



anantanni
June 28th, 2012, 06:42 AM
One is on sda0 and the second is on sda1(which is where Windows is installed)
How do I remove the sda0 entry?
Also, while I was installing Ubuntu, it said I had multiple operating systems on my machine, even though I only had Windows.
I'm thinking I might have 2 bootloaders for Windows, is there any way to remove one of them?

EDIT: I'm using Ubuntu 12.04 LTS

darkod
June 28th, 2012, 09:04 AM
Are you sure it says sda0? The number is the number of a partition and it starts counting partitions from 1 so I have never seen sda0.

Otherwise, having 2 win7 entries is not rare. The restore partition also has boot files which get detected and a second entry is created. So one is for the win7 OS, the other is for the restore partition.

If you want more details you can use boot-repair and create the boot info results which will show more details. You can post the link it gives you if you have questions.
https://help.ubuntu.com/community/Boot-Repair

anantanni
June 29th, 2012, 12:26 AM
Ah, yes it was sda1 and sda2, sorry for the mistake.

Mark Phelps
June 29th, 2012, 06:55 PM
If your machine came preloaded with Win7 -- then it actually is in TWO partitions. The first partition contains the Win7 boot loader components; the second contains the Win7 OS and the rest of the files and directories.

The OS_Prober routine that builds the GRUB menu sees both sets of components, so it puts two entries in the menu. IF you remove the WRONG entry, you will not be able to boot Win7.

darkod
June 29th, 2012, 07:00 PM
If your machine came preloaded with Win7 -- then it actually is in TWO partitions. The first partition contains the Win7 boot loader components; the second contains the Win7 OS and the rest of the files and directories.

The OS_Prober routine that builds the GRUB menu sees both sets of components, so it puts two entries in the menu. IF you remove the WRONG entry, you will not be able to boot Win7.

This is not entirely true Mark.

It only detects the boot files, so it will make only one entry in the boot menu.

Usually the second entry is the restore (recovery) partition because it also has boot files present on it.

I have win7 with the small System Reserved partition on my netbook and I have only one entry for win7 detected by os-prober. I always had only one entry.