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?
migrated from stackoverflow.com Jun 3 '10 at 11:35
This 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.
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