If the computer came with Windows 8, it's almost certainly booting in EFI mode, which means that older recovery instructions intended for Windows simply will not work. Instead, you should use a tool designed to edit the EFI boot order. In your situation, the easiest solution is likely to be to use the firmware itself; many EFIs provide an options page on which the boot order is listed. You'll probably see ubuntu
as the first entry, with Windows Boot Manager
somewhere below that. Use the firmware's tool to change the order, then save the changes and reboot. Unfortunately, not all computers provide this functionality, and even those that do vary greatly in their user interfaces, so you'll have to poke around until you find the right option -- and it's not guaranteed that you will find it!
If the option isn't present, you can:
- Boot into an Ubuntu live disk.
- Launch a Terminal window.
- Type
sudo efibootmgr
to see the list of boot entries. Note the BootOrder
line and locate the entries for ubuntu
and Windows Boot Manager
.
- Type
sudo efibootmgr -o ####
, where ####
is the number associated with the Windows boot manager. (You can add other options, perhaps just cutting out the ubuntu
item and leaving the rest intact.)
- Reboot.
It's possible to do something similar in Windows using EasyUEFI or the Windows bcdedit
command, but as Windows is not currently booting, you'd need to use a Windows emergency disk, and I'm not sure of the exact procedures.
Another option is to mount the EFI System Partition and delete the EFI/ubuntu
directory from it. With it gone, the computer will skip the Ubuntu entry and move on to the next one, which is probably Windows.
All of this assumes an EFI-mode boot. If the computer is booting in BIOS/CSM/legacy mode (because Windows was upgraded from an earlier BIOS-mode Windows 7 install, because it was self-installed in BIOS mode, because it came from a "mom & pop" computer shop that installed in BIOS mode, etc.), another recovery procedure will be required. In brief, you must re-install the Windows boot loader to the MBR of the disk. IIRC, the Windows command bootrec /fixmbr
should do this; however, I'm far from an expert on this task and I may be wrong or missing some critical step.