Thursday, May 1, 2014

Missing Microsoft Windows menu entry in GRUB after upgrading Debian Linux to 7.5

Update:

Back up your files first.

You could consider:

$ update-grub
 


 This appears to solve my problem of missing Windows entry in the menu.

-------------------------------------------------------------------

I am talking about dual-booting Debian and Windows. Something has to be done before and after upgrading.

The following problem affects upgrading to Debian 7.5.


After upgrading, I check my version of Debian. I type:

# cat /etc/debian_version
7.5




Please back up all your important files before doing anything else.


Please back up this:

/boot/grub/grub.cfg


Then, type:

# aptitude update && aptitude -y safe-upgrade


This removes the menu entry of Microsoft Windows.


To get back the menu entry, type:

# nano /boot/grub/grub.cfg

Add the menu entry, e.g.

### BEGIN /etc/grub.d/30_os-prober ###


###################################

menuentry "Windows 7 (loader) (on /dev/sdb1)" --class windows --class os {
        insmod part_msdos
        insmod ntfs
        set root='(hd1,msdos1)'
        search --no-floppy --fs-uuid --set=root A49C0A294A0ABD4B
        chainloader +1
}

### END /etc/grub.d/30_os-prober ###


To save the file, press Ctrl + x.

Look for this menu entry in your backup of grub.cfg.

Then the menu entry of Windows should be shown.




1 comment:

Unknown said...

Just run update-grub? That reinstated my Windows menu entry...