Results 1 to 2 of 2

Thread: Windows 7 Ultimate + xubuntu 12.04 LTS on UEFI Mother board (P8B75-M) from USB stick

  1. #1
    Join Date
    Aug 2008
    Beans
    14
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Windows 7 Ultimate + xubuntu 12.04 LTS on UEFI Mother board (P8B75-M) from USB stick

    After having spent one day looking around on different forums to get hints on installing the subject's described dual-boot OS environment I'd like to provide my experience on the subject.
    Windows Installation
    First method through UEFI booting (FAILURE)
    fdisk formatted FAT32 bootable USB stick;
    Assume you get the device named /dev/sdb (and partition /dev/sdb1 mounted on /mnt/sdb1)
    mount iso:
    Code:
    mount -o loop windows_7.iso mycreatedfolder/
    copy iso content to the mounted partition:
    Code:
    cp -r mycreatedfolder/* /mnt/sdb1/
    copy efi/microsoft/boot one level up
    Code:
    cp -r  /mnt/sdb1/efi/microsoft/boot  /mnt/sdb1/efi/
    copy bootmgr.efi (reading around they name it bootmgfw.efi, but within the ISO it was not named like that) into the /mnt/sdb1/efi/boot/ renaming it "bootx64.efi"
    Code:
    cp -r  /mnt/sdb1/bootmgr.efi  /mnt/sdb1/efi/boot/bootx64.efi
    reboot and force booting from UEFI: USB stick start from the bios.
    With this method I got to see the usb stick as UEFI booting device, got into booting and saw the windows "pressed any key to start installing". After that I directly jumped out of the installation and were asked to "insert any media and press enter".
    I believe my failure is due to a bad bootmgr.efi booting file which is probably not capable to correctly start Windows 7 installation. Anyhow I'm going to reiterate on this procedure to better describe it.

    Second method with WinUSB(SUCCESS)
    I downloaded winusb package and started it by following this post.
    After I completed the installation on the usb stick, I unplugged/plugged and I did rewrite the MBR with mbr package:
    Code:
    apt-get install mbr
    install-mbr /dev/sdb
    Then I rebooted and forced bios to boot directly from USB stick (NOT UEFI:!). This took me to a screen where I saw the text "MBR:" I happily started pressing some keys and eventually (somehow) got to press the sequence "A" and "1". Those keys started the Windows 7 installation procedure (I know it's funny but it was at the same time effective!).

    Once installation was complete I could start and login onto Windows 7.

    Xubuntu 12.04 Installation
    Again I used a fdisk formatted FAT32 bootable USB stick; This time I took advantage of UEFI booting which is much easier to get on linux.
    Assume you get the device named /dev/sdb (and partition /dev/sdb1 mounted on /mnt/sdb1)
    mount iso:
    Code:
    mount -o loop xubuntu_12_04_x64.iso mycreatedfolder/
    copy iso content to the mounted partition:
    Code:
    cp -r mycreatedfolder/* /mnt/sdb1/
    Reboot and force booting from UEFI: usb stick from bios.
    From xubuntu menu select "Try xubuntu..."
    When you login linux will not recognize Windows 7 formatted system partition. The issue is that Windows 7 formats the disk as "GPT" which - as I read here and there - "confuses" the installer partition manager.
    To have linux recognize the disk and as consequence the windows partition(s), you need to get "fixparts" package (you need an internet connection):
    Code:
    sudo apt-get install fixparts
    Then run fixparts on your hard drive (e.g. /dev/sda) like explained in here:
    Code:
    fixparts /dev/sda
    A message like the fo
    Code:
    NOTICE: GPT signatures detected on the disk, but no 0xEE protective partition!
    The GPT signatures are probably left over from a previous partition table.
    Do you want to delete them (if you answer 'Y', this will happen
    immediately)? (Y/N):
    Press "Y" and you should see some magic automount bringing to life your windows partitions.
    Now press "w" to write the MBR on disc and make it bootable (Hence not requiring boot from windows UEFI partition - or this was my understanding -).
    If you now start installing Xubuntu it will detect the Windows 7 installation and ask you to perform linux installation aside of windows. Do it automatically or manually as you are used to.
    Reboot and you again will ONLY see windows .
    To complete the installation you need GRUB-2 to tell the /dev/sda MBR that the partition to start is the linux one - and not the windows one - and recognize all the other OS arounds and offer them to you. In order to achieve this, you will need to start xubuntu live, booting on the UEFI:usb stick from bios and selecting "Try Ubuntu...".
    Once logged in you need to
    1) mount the linux root system partition (e.g. /dev/sda3) :
    Code:
    mount /dev/sda3 /mnt
    2) Install grub as the MBR of the disk:
    Code:
    grub-install –root-directory=/mnt  /dev/sda
    Reboot and you will have your grub menu asking you to login on xubuntu or windows 7

    Note that I also tried to install Windows 7 *after* the Linux installation, but this was not possible because Windows 7 asked me to remove all existing partitions in order to install its GTP disk type whatever. So to my understanding, I can't install windows 7 the way I did without having to erase the linux partitions. (maybe there are other ways or the Windows 7 UEFI installation doesn't complain but in the procedure described in Windows Installation -> Second Method, I could not install Windows 7 until I did not remove the existing partitions. Basically Windows 7 wants to manage the whole disk on its own and you have to please it (at least during the installation).

    So a summery of the odd things I found:
    1) The boot from UEFI in Windows 7 did not work for some unknown reason
    2) Windows 7 did not accept other existing partitions during installation
    3) Xubuntu did not see the Windows partitions until I forced deletion of the Windows GTP signatures in the disk.
    4) In order to bring again back to life the two OS, you need to install the MBR on the disk (with fixparts) and reinstall grub with grub-install from the live xubuntu environment.

    I hope to have been of some help to other people, but in any case it was a good exercise to have future notes to follow just in case of any of the so-common blue screens of death
    R

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

    Re: Windows 7 Ultimate + xubuntu 12.04 LTS on UEFI Mother board (P8B75-M) from USB s

    Thanks for the info.

    Anytime you install Windows in MBR mode, you have to use fixparts to remove backup gpt partition table. Windows only converts gpt primary table to MBR(msdos) and leaves backup gpt table at end of drive.

    Just some info on UEFI.
    http://www.linuxbsdos.com/2012/10/10...d-ssd-and-hdd/

    Windows Recommended UEFI-Based Disk-Partition Configurations
    http://technet.microsoft.com/en-us/l...8WS.10%29.aspx
    Change the booting style of Windows Vista or 7 x86_64 versions from BIOS-MBR mode to UEFI-GPT mode without formatting or reinstalling
    https://gitorious.org/tianocore_uefi...4_BIOS_to_UEFI
    Windows installs the efi bootloader to (ESP)/EFI/Microsoft/Boot/ which is identical to (WINDOWS_SYSTEM_PART)/boot/microsoft/ incase of BIOS systems.
    The dir mainly consists of bootmgfw.efi, bootmgr.efi, memtest.efi and 'bcd'.


    Convert Windows USB flash install to UEFI boot
    http://jake.io/b/2011/installing-win...x220-from-usb/
    http://technet.microsoft.com/en-us/l...=ws.10%29.aspx


    Windows has to be booted in UEFI mode to install in efi mode.
    Windows 8 UEFI repair USB must be FAT32
    http://www.eightforums.com/tutorials...ndows-8-a.html
    http://social.msdn.microsoft.com/For...-166dddf32205/
    http://www.ghacks.net/2012/11/01/how...m-repair-disc/
    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.




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
  •