0

I have an external hard drive and installed Ubuntu 13.04 on it. I have a Samsung ATIV Book 8 running windows 8. When I go to boot, I get the Grub menu and can boot into both windows or ubuntu. However, If I unplug the Hard Drive, a Grub menu appears asking me to find the media to boot. How can I set it up so without the hard drive it just boots to windows?

tref95
  • 101
  • 1

1 Answers1

0

In your case, GRUB is installed on internal HDD, and it's files are on external. It is BAD. You have to install GRUB on external HDD and Windows MBR on internal. Then set up GRUB entry in Windows. Here are the steps:

  1. Plug external HDD, boot from it into Ubuntu and run command:

    sudo grub-install /dev/sdb
    

    where /dev/sdb is your external hard drive.

  2. Unplug external HDD (for safety), reboot and run Windows installation DVD or Windows Repair CD. You can make one while you have Windows loaded.
  3. Open command prompt and run:

    bootrec /fixmbr
    

    Other instructions recommend also run bootrec /fixboot, but in my case it just clears BCD store (so I cannot boot anywhere), so you should run it only if you have problems with booting into Windows.

  4. Plug external HDD and boot into Windows. From there, run EasyBCD and set up GRUB entry for your external HDD. This should be easy. If not, there is instruction.

After this, you can boot from both internal and external HDDs. Other way is to move /boot partition onto your internal HDD and use GRUB, but it is a little bit more complicated solution.

Danatela
  • 13,243
  • 11
  • 45
  • 72
  • So, I followed your instructions and now whenever the Hard Drive is unplugged Windows boots perfectly! But, with the hard drive attached, the Ubuntu option can't find the OS and, the windows option just keeps returning me to the boot screen. – tref95 Jul 30 '13 at 03:19
  • How did you set up Ubuntu entry? – Danatela Jul 30 '13 at 04:23
  • As workaround, you can boot directly from your external HDD once it is plugged. – Danatela Jul 30 '13 at 04:37
  • I set it up following the instructions on that page and tried it various ways. I set the path to the boot partition. – tref95 Jul 30 '13 at 17:07