Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Dual booting Ubuntu 12.10 and Windows 8

  1. #1
    Join Date
    Jan 2013
    Beans
    8

    Dual booting Ubuntu 12.10 and Windows 8

    Hello,

    I've recently bought a new laptop: HP DV6 7295ex, with a pre-installed version of Windows 8 (64 bits).

    After installing Ubuntu 12.10 (64 bits) and running Boot-Repair (separate boot partition: /dev/sda6), I could boot to Ubuntu but not to Windows (incorrect entries: errors related to drivemap and incorrect EFI path). I've tried to manually add a couple of entries, but to no avail.

    Note that everything is UEFI (firmware, Windows and Ubuntu installations), and I disabled SecureBoot from the BIOS.

    I tried once to create a new Microsoft/Boot/ folder in /boot/efi, and manually added bootmgfw.efi in that folder (I copied it from [Windows partition]/Windows/Boot/EFI/). That added an entry to Grub, which led me to a Windows 8 error page (error code 0x00000f, files corrupted or not found, don't remember).

    Link to Boot-Repair log: http://paste.ubuntu.com/1499991/
    I have also attached a screenshot of gparted below.

    Does anybody know what's wrong with my setup, and how to fix it?
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2008
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Arrow Re: Dual booting Ubuntu 12.10 and Windows 8

    Hi
    you don't have any Windows EFI files, which means:
    - either your Windows has been installed in Legacy mode
    - or you have deleted the EFI partition by mistake.

    I would recommend:
    1) set up your BIOS in Legacy (not UEFI) mode
    2) run Boot-Repair's Recommended Repair. Indicate the new URL that will appear if any problem.

  3. #3
    Join Date
    Jan 2013
    Beans
    8

    Re: Dual booting Ubuntu 12.10 and Windows 8

    New URL: http://paste.ubuntu.com/1500222/

    Enabled Legacy mode, ran Boot-Repair, and restarted:

    Code:
    error: file `/grub/x86_64-efi/normal.mod` not found.
    grub rescue>
    And that's normal, because UEFI has precedence over Legacy boot.
    So restarted again, this time hitting F9 and changing boot to start from hard drive.

    Both Windows entries displayed this error:

    Code:
    Windows Boot Manager: Windows failed to start.
    File: \Boot\BCD
    Status: 0xc000000e
    Info: The Boot Configuration Data for your PC is missing or contains errors
    Although Ubuntu still runs fine.

  4. #4
    Join Date
    Jan 2008
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Dual booting Ubuntu 12.10 and Windows 8

    ok
    1) use a Windows disc this way: https://help.ubuntu.com/community/Re...ta/7Bootloader until you get direct access to Windows
    2) then use Boot-Repair to recover your GRUB menu

    if still not good, switch to the other mode (Legacy/ or UEFI), then redo 1) then 2)

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Dual booting Ubuntu 12.10 and Windows 8

    Because you have gpt partitions, Windows will only boot in UEFI mode. So it looks like you deleted the efi partition that probably was sda2 and the Microsoft Reserved partition that as probably sda3. Microsoft requires the MSR to be just before main install or c: "drive".

    Microsoft suggested partitions including reserved partition for gpt & UEFI:
    http://technet.microsoft.com/en-us/l...8WS.10%29.aspx
    Older Windows info on gpt - 2008 updated 2011
    http://msdn.microsoft.com/en-us/wind.../gg463525.aspx
    Windows technical info on gpt and GUIDs
    http://msdn.microsoft.com/library/wi...sktop/aa365449
    Order on drive is important:
    http://en.wikipedia.org/wiki/Microso...rved_Partition
    Windows 8 info
    http://technet.microsoft.com/en-us/l.../hh824947.aspx


    You may be able to create the correct partitions. efi partition is supposed to be first per UEFI, but Windows makes it second which works. But if creating new efi partition be sure to delete old one and move "boot" flag to new one. Boot flag in UEFI only means it is the efi partition.



    Windows UEFI install should have backup of bootmgrw.efi here:
    C:\Windows\Boot\EFI\bootmgfw.efi from a working Windows x86_64 installation.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    Join Date
    Jan 2013
    Beans
    8

    Re: Dual booting Ubuntu 12.10 and Windows 8

    Thank you for the links.
    So I suppose I should skip trying to fix it with a recovery disk, and instead try to restore the correct partitionning?

    If so, I could really use some help:

    Quote Originally Posted by oldfred View Post
    You may be able to create the correct partitions. efi partition is supposed to be first per UEFI, but Windows makes it second which works. But if creating new efi partition be sure to delete old one and move "boot" flag to new one. Boot flag in UEFI only means it is the efi partition.
    (Didn't quite understand what's quoted in red).
    I'm not sure how to proceed.

    I do have the bootmgfw.efi here: C:\Windows\Boot\EFI\bootmgfw.efi
    How should I partition my hard disk now? (I can wipe out Ubuntu drives if needed).
    Once I've created a new /boot/efi partition, what should it contain?

  7. #7
    Join Date
    Jan 2008
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Arrow Re: Dual booting Ubuntu 12.10 and Windows 8

    Quote Originally Posted by oldfred View Post
    Because you have gpt partitions, Windows will only boot in UEFI mode.
    Fred, I am nearly sure this statement is wrong, because I saw several Windows computers with GPT disc and with files for both MBR (Windows MBR + /bootmgr /boot/BCD) and UEFI (EFI Windows files) boots.
    Eg Bowen369's system has UEFI but also /bootmgr /boot/BCD files which are for MBR boot...

    However, i agree that generally such computers's BIOS are set up in UEFI mode by default, so Bowen369 probably deleted his ESP.

  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Dual booting Ubuntu 12.10 and Windows 8

    @YannBuntu
    I have seen the BIOS boot files in the main Windows partition on some new UEFI computers. Still not sure why they are there or if just left over from an image they used to create new system.
    Mac's require Windows in the MBR portion or first 4 partitions of a Mac with hybrid partitioning gpt/mbr. But the Macs use an older efi spec that does not really work with the new UEFI 2+ spec that Windows & Linux are now using.
    Many more knowledgeable than I have said Windows only boots from gpt with UEFI.

    @Bowen369
    The UEFI spec says the efi partition should be first. But Windows suggestions have been to make the Windows repair partition first, then the efi, then the MSR, then the main Windows install with the vendor recovery last.
    One user did have the efi installed like you now have far into the disk. I though perhaps the UEFI FAT32 driver had some limits on how far into drive it could find the boot files like some old BIOS systems have had. But I have not seen any that had a valid efi partition that did not boot. But almost all systems have had efi partition close to the start of the drive.

    You can reorganize partitions, but it might just be easier to reinstall. Sometimes we learn more about systems by experimenting and others just want a system that works.


    Of course if experimenting backups are even more important.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #9
    Join Date
    Jan 2013
    Beans
    8

    Re: Dual booting Ubuntu 12.10 and Windows 8

    I couldn't manage to recover boot via recovery disks, so I've sent back my laptop to HP to get a full factory reset.

    Now we're back to square one. I just want to make sure I get this right this time:

    • Step 1: Backup everything
    • Step 2: Disable SecureBoot
    • Step 3: Boot from liveUSB, install Ubuntu 12.10 x64 (automatic, or manual partitionning?)
    • Step 4: Restart and select "Try Ubuntu" from live USB
    • Step 5: Run recommended settings of Boot-repair
    • Step 6: Restart & enjoy?


    Does Windows and Ubuntu share the same EFI boot partition?

    One more thing: I want to know the difference between standard Ubuntu .iso, and the secured-remix version, besides having a pre-installed Boot-repair?

    Thank you for your patience.

  10. #10
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Dual booting Ubuntu 12.10 and Windows 8

    Also disable Fast Boot or quick boot in UEFI. Some computers only can get back into UEFI menu from Windows with Fast boot on and if you cannot get into Windows.....

    How you partition is totally up to you. Default auto install is just / (root) & swap.
    I prefer to know the sizes and what partitions are used (but I have many). Often we suggest the separate /home to keep files separate from system to make reinstall a bit easier. But if dual booting or multi-booting another NTFS data partition probably makes sense so you can share data between systems and not write into system partitions. I have both a NTFS data partition from when using XP and Linux formatted data partition as I multi-boot several Ubuntus.

    UEFI only boots from one efi partition and that is designed to let you have boot files for many systems installed into their own folders for booting.

    I though secure remix was the addition of Boot-Repair and some other features, but do not know details.
    https://help.ubuntu.com/community/Ub...unctionalities
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •