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

Thread: Dual Boot With Win7

  1. #1
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,040
    Distro
    Xubuntu 12.04 Precise Pangolin

    Unhappy Dual Boot With Win7

    I'm having a problem setting up a dual boot of Xubuntu 12.04.1 and Win7 on my new HP P2-1120 machine. I shrunk the Win7 installation to get 228 GB of free space, and since the system uses UEFI to boot via GPT, there's no limit on primary partitions. Xubuntu seems to have installed properly (as seen from the Live CD), although the "how-to" that I followed had me create a separate /boot partition and change the bootloader location to the resulting /dev/sda5. I then used the Win7 utility EasyBCD to modify the Win7 boot menu -- and everything I tried there gives me an error of 0xC0000098 indicating that the bootloader file created by EasyBCD has problems.

    I've asked for help through the EasyBCD forums, but here I'm looking for the exact path that I should force into the BCD data to launch the bootloader. Since this box uses UEFI I'm a bit afraid to install grub2 to the MBR, which is what I would do were it the old BIOS bootstrapping with which I'm quite familiar... Help, anyone?
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  2. #2
    Join Date
    Dec 2011
    Location
    Manchester, UK
    Beans
    356
    Distro
    Ubuntu

    Re: Dual Boot With Win7

    Quote Originally Posted by JKyleOKC View Post
    I'm having a problem setting up a dual boot of Xubuntu 12.04.1 and Win7 on my new HP P2-1120 machine. I shrunk the Win7 installation to get 228 GB of free space, and since the system uses UEFI to boot via GPT, there's no limit on primary partitions. Xubuntu seems to have installed properly (as seen from the Live CD), although the "how-to" that I followed had me create a separate /boot partition and change the bootloader location to the resulting /dev/sda5. I then used the Win7 utility EasyBCD to modify the Win7 boot menu -- and everything I tried there gives me an error of 0xC0000098 indicating that the bootloader file created by EasyBCD has problems.

    I've asked for help through the EasyBCD forums, but here I'm looking for the exact path that I should force into the BCD data to launch the bootloader. Since this box uses UEFI I'm a bit afraid to install grub2 to the MBR, which is what I would do were it the old BIOS bootstrapping with which I'm quite familiar... Help, anyone?
    Why are you using BCD? Surely there must be better partition editors around. If you installed Xubuntu first, then you're probably not going to be able to get it to dual-boot regardless. To be honest with you, this sounds like an EasyBCD problem and not a ubuntu/xubuntu problem.
    Read my technology blog at: http://penguincampaigner.wordpress.com

  3. #3
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Dual Boot With Win7

    I do not know if they have updated EasyBCD for UEFI. It did not work before.

    Did you install both Windows & Ubuntu in UEFI mode. How you boot installer is how it installs. Both should be UEFI and then both the Windows efi and Ubuntu grub-efi files are in the efi partition and do not conflict. Grub2's os-prober has a bug and creates a BIOS boot chainload entry to Windows which does not work. But Yann has updated Boot_repair to create the correct entry.

    Post link to BootInfo from Boot-Repair to see how Ubuntu is installed.

    Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
    https://help.ubuntu.com/community/Boot-Repair
    You can repair many boot issues with this or 'Create BootInfo' report (Other Options) & post the link it creates, so we can see your exact configuration an diagnose advanced problems.

    https://wiki.archlinux.org/index.php...ware_Interface
    https://wiki.archlinux.org/index.php/UEFI

    https://help.ubuntu.com/community/UE...g#UEFI%20Shell
    Recompiling GRUB not required with newest versions of grub.
    Creating efi partition & folders in advance works.Must be 64bit version to have UEFI

    Some links to others with UEFI:
    GUIDE: (U)EFI installation Also full install post #52 superfreak on pg.6
    http://ubuntuforums.org/showthread.php?t=1958383

    UEFI dual boot two drives
    http://ubuntuforums.org/showthread.php?t=2031836
    UEFI boot Issue with Alienware X51
    http://ubuntuforums.org/showthread.php?t=2039451
    UEFI dual boot trouble: Win7x64 - Ubuntu 12.04 LTS amd64
    http://ubuntuforums.org/showthread.php?t=2003442
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.




  4. #4
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,040
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Dual Boot With Win7

    BCD is the Win7 replacement for "boot.ini" rather than a partition editor.

    The problem, I've been told, is that EasyBCD is not yet compatible with the UEFI boot process.

    Thus what I need is the way to force a "chainload" of Grub into the BCD data; Win7 has a command-line editor that can do this once I know the command (or code) to use.

    Can someone tell me whether Grub2 is fully compatible with UEFI booting as used by Win7-64-bit? If so, I can simply re-install Xubuntu in the same space but using the conventional boot defaults and let the system handle it.

    The only reason I want to keep Win7 at all is to have it available when i need to assist my data recovery clients; I don't rely on any Microsoft o/s for day-to-day operations, and Win7 doesn't impress me highly so far...
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  5. #5
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,040
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Dual Boot With Win7

    Quote Originally Posted by oldfred View Post
    I do not know if they have updated EasyBCD for UEFI. It did not work before.

    Did you install both Windows & Ubuntu in UEFI mode?
    I really do not know. Windows was factory installed and definitely seems to be in UEFI mode. For Xubuntu I simply followed the Live CD's wizards, using the manual partitioning to create partitions for /boot, /, swap, and /home (in that sequence) from the 228 GB of free space I had available, with 500 MB for /boot, 20 GB for /, 4 GB for swap, and the rest for /home. I never saw any mention of UEFI during the process. I also set the bootloader location to /dev/sda5 on that screen before continuing with the rest of the installation.

    Since there's currently no way that I can boot into the Xubuntu system on the disk, how can I use "boot repair" to fix things? I can run the Live CD, but can it do what needs doing to the GPT-formatted hard disk?

    Re-installing Xubuntu will be no problem since I've not been able to do any customizing of it yet, but I'm quite leery of doing things that can make the new box un-bootable. I'm beginning to think that perhaps doing a total replacement of Win7 might be the best fix; this box is replacing an 8-year-old system whose motherboard bit the dust, and it was Xubuntu Lucid only...
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  6. #6
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Dual Boot With Win7

    I do not have UEFI, but a lot of the threads show users who installed the BIOS mode version with Windows in UEFI mode. Once they install UEFI version and fix the chain load entry it works. Best to have partitions in advance.

    I think it may be possible to convert but reinstall is probably easier. I see grub installed to sda1 which is the efi partition and an efi entry in fstab. And it uses grub-efi not the BIOS version of grub2 - grub-pc.

    Install gdisk or post parted:
    sudo apt-get install gdisk
    sudo parted /dev/sda unit s print
    or
    sudo gdisk -l /dev/sda

    If first partition is efi and drive is gpt then Windows has to boot from UEFI.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.




  7. #7
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,040
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Dual Boot With Win7

    Quote Originally Posted by oldfred View Post
    Once they install UEFI version and fix the chain load entry it works.

    If first partition is efi and drive is gpt then Windows has to boot from UEFI.
    I've tried to send you my bootinfo data from http://ubuntu.paste.com/1168839 but it seems to go a bit crazy there. Will try again shortly...

    I did get boot-repair installed in the Live CD session to create it.

    It looks to me as if taking the recommended repair just might solve my problem -- and if it does, this thread might be worth making into a sticky for others, because it certainly looks as if UEFI is likely to be the coming thing!

    Try http://paste.ubuntu.com/1168839/ for the report!!!
    Last edited by JKyleOKC; August 26th, 2012 at 11:21 PM. Reason: To correct URL
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  8. #8
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Dual Boot With Win7

    It looks like you may have installed the BIOS version as you have this entry also:
    EFI part (detected by BIS but not in fstab) in same disk
    I would have sworn that BIS used to show Windows files in its report. But it does not now.

    I do not know if Boot-Repair will convert your install from grub-pc to grub-efi. It will add a correct chain entry like this:

    menuentry "Windows 7 UEFI" {
    search --file --no-floppy --set=root /efi/Microsoft/Boot/bootmgfw.efi
    chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi
    }


    You would need this in fstab, but with your UUID:
    efi partition
    # /boot/efi was on /dev/sda1 during installation
    UUID=EA74-F7BE /boot/efi vfat defaults 0 1



    UEFI chroot:
    http://askubuntu.com/questions/53578...er/57380#57380

    Yann posted this in one of the other threads.
    - If you want to try grub-efi, it is first necessary to have a GPT disk with an ESP (EFI partition= FAT32, >200Mo, start_of_the_disk, boot flag), and to setup the BIOS in EFI mode. Then you need to install grub-efi (an easy way for this is to use Boot-Repair with the "Separate /efi" option). To finish, some old EFI-BIOS need to create an entry that boots the grub*.efi file in the EFI partition.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.




  9. #9
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,040
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Dual Boot With Win7

    Quote Originally Posted by oldfred View Post
    I do not know if Boot-Repair will convert your install from grub-pc to grub-efi.
    This part of the report seems to indicate that it might:
    Code:
    =================== Final advice in case of recommended repair
    Please do not forget to make your BIOS boot on sda1
     the grub*.efi file in sda1 file!
    
    =================== Default settings
    Recommended-Repair
    This setting would purge (in order to fix packages) and reinstall the
     grub-efi of sda6, using the following options:        sda5/boot, sda1/boot/efi,
    Additional repair would be performed: unhide-bootmenu-10s
    However I'm somewhat at a loss as to how to make the BIOS boot on sda1 (which is the EFI partition) the grub*.efi file, unless that's what the "sda1/boot/efi" option would accomplish.

    It doesn't sound as if it would be too risky to try the "recommended repair" setting, in any event, once I've created the Win7 recovery DVDs to be able to get back to factory settings if things go wrong... Would you agree that this seems to be a reasonable plan?

    My other options seem to be (1) install a second, blank, drive for Xubuntu, or (2) wipe Win7, move the recovery partition if need be, and make Xubuntu the only system on the disk. Both have disadvantages although I do have an empty 1-TB drive that could be used...
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  10. #10
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Dual Boot With Win7

    That is how UEFI works.

    You may have to select in the UEFI menu the first time which system you want to boot. Boot-repair will add a Windows chain load.

    I think the 'normal' assumption with multi-boot in UEFI is that you go into the UEFI menu each time you want to change boot. The efi partition is a shared boot partition with just a Windows efi boot or grub efi boot file. It replaces the MBR and can then have more than one entry where with MBR you only can have one.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread 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
  •