I followed the guidelines from this post (on the 6 section)
GRUB 2 will find and create a menuentry for the Windows (Vista) Recovery partition. At least in Vista, the menu name is the same as the normal Vista operating partition, the only difference being the parttion designation. To remove the Recovery partition entry from the menu:
Backup the existing
/etc/grub.d/30_os-prober
file, remove the executable bit from the backup so it isn't run during updates, and open the original for editing (the section starts around line 134):sudo cp /etc/grub.d/30_os-prober /etc/grub.d/30_os-prober.original && sudo chmod -x
/etc/grub.d/30_os-prober.original
gksu gedit +83 /etc/grub.d/30_os-prober &
Determine the exact title and the Windows recovery partition. These can be located in the
/boot/grub/grub.cfg file
. Add the entry below. In the example, the menuentry appeared as "Windows Vista (loader) (on /dev/sda1)". Make sure you select the correct partition as the title may be the same for the normal and recovery titles. The contents for$LONGNAME
and$
should be the exact contents between the quotes in the menuentry for the recovery partition:for OS in $ ; do DEVICE="`echo $ | cut -d ':' -f 1`" LONGNAME="`echo $ | cut -d ':' -f 2 | tr '^' ' '`" LABEL="`echo $ | cut -d ':' -f 3 | tr '^' ' '`" BOOT="`echo $ | cut -d ':' -f 4`" if [ -z "$" ] ; then LONGNAME="$" fi # Added to remove Windows Recovery if [ "$LONGNAME" = "Windows Vista (loader)" ] && [ "$" = "/dev/sda1" ] ; then continue fi # End Added
Save the file, then run:
sudo update-grub
Instead of Vista I had to think Windows 7 (the method is the same) and everything worked.