Surface Pro dual boot Windows Ubuntu 14.04 BROKE (SOLVED)

All of sudden my Surface Pro dual boot Windows Ubuntu 14.04 BROKE.

 

BOOT SOLUTION FOR WINDOWS / UBUNTU DUAL BOOT ((BEST OPTION))

 

2.  Use rEFInd To Dual Boot Windows 8 And Ubuntu

The rEFInd boot loader works by listing all of your operating systems as icons. You will therefore be able to boot Windows, Ubuntu and operating systems from USB drives simply by clicking the appropriate icon.

To download rEFInd for Windows 8 click here.

After you have downloaded the file extract the zip file.

Now follow these steps to install rEFInd.

  1. Go to the desktop
  2. Right click on the start button and choose administrator command prompt
  3. Type mountvol g: /s (This maps your EFI folder structure to the G drive) 
  4. DISKPART> sel vol 3
    
    Volume 3 is the selected volume.
    
    DISKPART> assign letter=b:
    
    DiskPart successfully assigned the drive letter or mount point.
    

    Exit DiskPart tool by entering exit and at the command prompt run the following:

    cd /d b:\EFI\Microsoft\Boot\
    

     

  5. Navigate to the extracted rEFInd folder. For example:cd c:\users\gary\downloads\refind-bin-0.8.4\refind-bin-0.8.4

    When you type dir you should see a folder for refind

  6. Type the following to copy refind to the EFI partition:xcopy /E refind b:\EFI\refind\
  7. Type the following to navigate to the refind foldercd b:\EFI\refind
  8. Rename the sample configuration file:rename refind.conf-sample refind.conf
  9. Run the following command to set rEFInd as the bootloaderbcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi
  10. Reboot your computer
  11. You should now have a menu similar to the image above with options to boot Windows and Ubuntu

 

 

 

 

 

ORIGINAL BOOT SOLUTION FOR WINDOWS

It would only boot to the UEFI start up, but would not boot to any OS.

I used Ubuntu Install disk to run disk-repair, but that did not worked.

– – – WINDOWS BOOT SOLVED – – – 

I’ve spent a lot of time trying to get my Windows 8 PC to boot again after cloning to a new SSD and try to summarise how I finally got it all working –

Firstly, boot from a UEFI Windows 8 recovery disk (CD/DVD/USB) – I found that the automated recovery process didn’t find the correct Windows partition, nor when I managed to add it to BCD settings would it make it reliably bootable e.g. using BCDEDIT I got it to find and launch the Windows partition but it refused to cold boot or would not “keep” the settings after a 2nd reboot or power off.

Go into the Advanced options and run the Command Prompt.

Enter diskpart to use the DiskPart tool to ensure you have all the right partitions and to identify your EFI partition – the key thing here is that your EFI partition is formatted as FAT32:

DISKPART> sel disk 0

Disk 0 is now the selected disk.

DISKPART> list vol

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     E                       DVD-ROM         0 B  No Media
  Volume 1     C                NTFS   Partition    195 GB  Healthy    Boot
  Volume 2         WINRE        NTFS   Partition    400 MB  Healthy    Hidden
  Volume 3                      FAT32  Partition    260 MB  Healthy    System

Then assign a drive letter to the EFI partition:

DISKPART> sel vol 3

Volume 3 is the selected volume.

DISKPART> assign letter=b:

DiskPart successfully assigned the drive letter or mount point.

Exit DiskPart tool by entering exit and at the command prompt run the following:

cd /d b:\EFI\Microsoft\Boot\

bootrec /fixboot

Delete or rename the BCD file:

ren BCD BCD.bak

Use bcdboot.exe to recreate BCD store:

bcdboot c:\Windows /l en-gb /s b: /f ALL

The /f ALL parameter updates the BIOS settings including UEFI firmware/NVRAM, /l en-gb is to localise for UK/GB locale. The localisation defaults to US English, or use en-US.

Reboot and cross your fingers.

This gave me headaches. I was going in circles for a long while. There isn’t a lot of reliable info about fixing UEFI/Windows 8 at the time of writing.

[EDIT]

To re-enable Hyper-V, I also had to run the following from an Administrator Command Prompt within Windows after rebooting:

bcdedit /set {default} hypervisorlaunchtype Auto
bcdedit /set {default} nx OptIn

 

 

LINUX BOOT (NOT SOLVED)