Dual Boot with Windows 8 UEFI - Ubuntu/GRUB Being Bypassed

223

Solution 1

The Boot Repair tool isn't 100% reliable. The problem you seem to have run into is that Boot Repair is rather over-enthusiastic about juggling boot loader files. Specifically, Boot Repair renames the Windows boot loader and installs a copy of GRUB in its place; however, this "repair," in addition to being terribly confusing, is sometimes undone by Windows -- Windows sees the change and (quite reasonably) re-installs its own boot loader. What's more, this "repair" is seldom necessary; the tool just applies it in a scattershot approach with a bunch of other "repairs" in the hopes that it will be useful. Unfortunately, sometimes it's not, and it can cause follow-on problems.

I recommend you try this:

  1. Back up the contents of your EFI System Partition (ESP; your /dev/sda1). This will serve as a fallback in case you make matters worse.
  2. Re-run Boot Repair, but click the Advanced Options item and check the Restore EFI Backups option before proceeding. This will undo some of Boot Repair's changes.
  3. Reboot and test both Windows and Ubuntu. There's a good chance that everything will work; however....
    • If the system starts booting Windows directly, launch an Administrator Command Prompt window (not a PowerShell; it won't work) and type bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi.
    • If the system starts booting Ubuntu directly with no option to boot Windows, install my rEFInd boot manager. Installing the Debian package is the easiest way to do this. rEFInd tends to be more reliable about launching Windows than is GRUB, so this may well fix the problem.

Solution 2

There is a boot order list in your BIOS settings. You can try to change the order in BIOS settings.

As reported with your boot-repair link, "The boot files of [The OS now in use - Ubuntu 13.04] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)"

Does your EFI system detect it?

Share:
223

Related videos on Youtube

Lars Holdgaard
Author by

Lars Holdgaard

Updated on September 18, 2022

Comments

  • Lars Holdgaard
    Lars Holdgaard over 1 year

    I am setting up a project with NHibernate, and I have a problem.

    When I try to do this:

    public Person GetById(int id)
            {
                using (var unitOfWork = new UnitOfWork(_nHibernateFactory.GetFactory()))
                {
                    var result = unitOfWork.CurrentSession.CreateSQLQuery("SELECT * FROM [TABLENAME]").List();
    
                }
    
            }
    

    I get fine results, and I can query my data.

    However, when I have this ClassMap:

     public class PersonMap:ClassMap<Person>
        {
            public PersonMap()
            {
                Table("TABLENAME");
                Id(p => p.Id);
                Map(p => p.Name);
            }
        }
    

    And I run:

     public Person GetById(int id)
            {
                using (var unitOfWork = new UnitOfWork(_nHibernateFactory.GetFactory()))
                {
                    var result = unitOfWork.CurrentSession.Query<Person>().ToList();
            }
    

    Results are empty, despite they should look in the same table (I have cross checked table name is the same).

    Any ideas?

    • Backs
      Backs over 8 years
      did you try to watch actual query with sql-profiler?
    • Lars Holdgaard
      Lars Holdgaard over 8 years
      @Backs unfortunately not, as I don't have sysadmin permissions :-)
    • Suhas
      Suhas over 8 years
      You do not need sysadmin permissions to check actual sql query. You can use a tool like NH Prof to do that
    • Orlando Helmer
      Orlando Helmer over 8 years
      Have you added the mapping class to the nhibernate configuration? You need to tell nHibernate which mappings to use. see here: github.com/jagregory/fluent-nhibernate/wiki/…
    • Lars Holdgaard
      Lars Holdgaard over 8 years
      @OrlandoHelmer You are right. Could you make an answer, so i can accept it? :-) Thanks
  • Vineel
    Vineel almost 11 years
    In my BIOS I see an Ubuntu and a Windows option. No matter which one I choose, Windows gets booted. Also, I believe that /dev/sda1 is my boot partition. I can't get any closer to the start of the disk. I can't create any partitions near the start of the disk since that's where Windows and recovery partitions reside.
  • ubuntu_tr
    ubuntu_tr almost 11 years
    Yes you are right. I found solution with installing Ubuntu 13.04 64 bit version. It supports well the installation with EFI systems. There are related topics around here.
  • Vineel
    Vineel almost 11 years
    I just did sudo dd if=/dev/sda1 of=/media/ubuntu/USB/efi.img. Hopefully that works.
  • Rod Smith
    Rod Smith almost 11 years
    Yes, that should work, although a file-level backup (using cp or tar) would have been a little more convenient to access, if that should become necessary.