Dual Boot with Windows 8 UEFI - Ubuntu/GRUB Being Bypassed
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:
- 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. - 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.
- 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.
- If the system starts booting Windows directly, launch an Administrator Command Prompt window (not a PowerShell; it won't work) and type
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?
Related videos on Youtube
Lars Holdgaard
Updated on September 18, 2022Comments
-
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 over 8 yearsdid you try to watch actual query with sql-profiler?
-
Lars Holdgaard over 8 years@Backs unfortunately not, as I don't have sysadmin permissions :-)
-
Suhas over 8 yearsYou do not need sysadmin permissions to check actual sql query. You can use a tool like NH Prof to do that
-
Orlando Helmer over 8 yearsHave 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 over 8 years@OrlandoHelmer You are right. Could you make an answer, so i can accept it? :-) Thanks
-
-
Vineel almost 11 yearsIn 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 almost 11 yearsYes 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 almost 11 yearsI just did
sudo dd if=/dev/sda1 of=/media/ubuntu/USB/efi.img
. Hopefully that works. -
Rod Smith almost 11 yearsYes, that should work, although a file-level backup (using
cp
ortar
) would have been a little more convenient to access, if that should become necessary.