I recently installed ubuntu 10.04 LTS and formatted my windows 7 hdd, but the windows 7 entry is still showing in grub. How can I remove the entry from grub?
Greetz
|
I recently installed ubuntu 10.04 LTS and formatted my windows 7 hdd, but the windows 7 entry is still showing in grub. How can I remove the entry from grub? Greetz |
|||||
migrated from stackoverflow.com Jun 3 '10 at 11:35This question came from our site for professional and enthusiast programmers. |
|||||
|
|||||
|
You should edit the
save it and perform
It will remove Windows from your GRUB menu list. |
||||
|
|
|
The problem with these answers is that they do not address the underlying problem - when Windows is installed, it scans all drives on the system and 'litters' qualifying drives with 'Recycle' folders and other Microsoft OS what-nots, that Grub then takes to be an existing M$ OS. Including the "GRUB_DISABLE_OS_PROBER=true" line will prevent ALL other operating systems from being detected, including other Linux OS's. So the best fix is simply to delete these additional files/folders that Windows has created prior to running "update-grub". Window's menu-items will no longer be present in the Grub menu. |
|||
|
|
|
If I remember corretly, you need to edit The entry looks something like this:
|
|||||
|
|
Ubuntu 10.04 LTS uses Grub2, which no longer uses the Instead, you should edit the file If your hard disk still contains a Windows partition, add the line:
to prevent Windows being added to your grub menu. To write the change, run
which will write a new You can then run
to check that your Windows entry has disappeared. Further information can be found on this page: https://help.ubuntu.com/community/Grub2 |
|||
|
|
|
If the entry was manually created, all you need to do is remove the corresponding file in
Make sure you know what you're doing, you don't want to delete the wrong file as it will cause boot problems. Also, you might not want to disable |
||||
|
|