So I updated Ubuntu to 14.04 a few days ago and I just noticed Windows 10 went missing from the grub menu options. I tried multiple variations of update-grub
and tried using boot-repair, too, but nothing fixed it. Here's the pastebin from boot-repair.
I'm at a loss as to what to try next. Any help?
EDIT: After reading a few suggestions elsewhere, I tried editing /etc/grub.b/40_common
, and here are its current contents:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Windows 10" {
set root='(hd0,msdos1)'
chainloader +1
}
menuentry "Windows 102" {
set root='(hd0,msdos2)'
chainloader +1
}
But booting from either "Windows 10x" option doesn't work.
Option 1 (set root='(hd0,msdos1)') displays this error (imgur .com/AbymY1r.jpg), which stays onscreen for about half a minute or until I ctrl+alt+del
out of it (which restarts the computer and goes back to grub).
Option 2, on the other hand, gives off this error:
BOOTMGR is missing
Press Ctrl+Alt+Del do restart
I tried using the repair options through the Windows 10 installation disk, and assorted commands within it (e.g. bootrec /RebuildBcd
, bootrec /FixMbr
and bootrec /FixBoot
), but all that did was screw up grub again, and I ended up not being able to boot to neither Ubuntu nor Windows. I made grub come back by using the Ubuntu Live CD, now I'm back to the same problem, except for these new Windows 10 entries I manually added to grub.
This is the output for fsbkl -f
:
NAME FSTYPE LABEL MOUNTPOINT
sda
├─sda1 ntfs System Reserved
├─sda2 ntfs
├─sda3
├─sda5 swap [SWAP]
└─sda6 ext4 /
sr0
EDIT 2: SOLVED!
So, I managed to solve it by following Christian_Sosa's answer at MS support, basically run chkdsk
on the windows drives and then try startup repair. In my case, chkdsk
did the trick.
/etc
under version control. If comes in handy if your config changes and you don't know why, and/or you want to change it back. And what good do you thinkupdate-grub
is doing to do? This just installs GRUB. What makes you think GRUB is not installed? Check and see what packages were updated./var/log/dpkg.log
, and also the files in/var/log/apt
, particularlyhistory.log
. Note that/boot/grub/grub.cfg
is assembled from files in/etc/grub.d
./var/log/dpkg.log
: pastebin.com/a7Zvzyun/var/log/apt/history.log
: pastebin.com/spAYRQCBhistory.log
in the question. It's relevant. I wouldn't bother withdpkg.log
. It looks like GRUB was updated, but it was a minor update. Do you have backups of the/etc
directory? If so, you could check what changed. In any case, check outetckeeper
for keeping/etc/
under version control.(hd0,msdos1)
) is correct. Have you? Can you paste the output oflsblk
, please? That gives the partition layout.