1

So I've been running Ubuntu without Windows. I got a Windows 7 live CD and tried to do a Windows 7/Ubuntu dual boot but I couldn't get the boot to load correctly so I decided to go back to just Ubuntu. However now I just have a Ubuntu install and it won't boot. I've tried boot-repair and it still won't boot.

What should I try next?

Zanna
  • 70,465
  • I do not see anything specific wrong. Are you booting in UEFI mode? You now have a Windows boot loader in the gpt partitioned drive's MBR. You have to install Windows in UEFI mode on a gpt drive. And Windows DVD defaults to BIOS boot mode which will erase drive. You can convert DVD to flash drive and do some updates to make it a UEFI Windows installer. – oldfred Feb 20 '15 at 04:31

1 Answers1

0

Depending on the cause of your problem, updating or reinstalling the GRUB bootloader may be sufficient to fix it. One way to attempt that is to follow these the steps below.

  1. Determine your normal system partition:

    sudo fdisk -l
    

    Look for the / partition.

  2. If the partition is /dev/sda2, mount the partition:

    sudo mount /dev/sda2 /mnt
    

    You may need to change /dev/sda2 to a different partition, depending on what you discovered in the first step.

  3. Bind-mount some other necessary stuff:

    for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done
    
  4. chroot into your Ubuntu install:

    sudo chroot /mnt
    
  5. Now you're running your install in root and not the live CD so you can run:

    update-grub
    
  6. If you face errors, you might have to re-install GRUB

    grub-install /dev/sda
    update-grub
    

    Usually this is /dev/sda, but if your system is installed on a different physical disk (as revealed in the first step), you may need to change this accordingly to say /dev/sdb, /dev/sdc, etc.

  7. Hopefully everything works. Run these commands to exit the chroot and reboot the system:

    exit
    sudo reboot
    

For other ways to repair GRUB and further explanation, see RecoveringUbuntuAfterInstallingWindows and Grub2/Installing → Fixing a Broken System.

Eliah Kagan
  • 117,780
war1oc
  • 189