Results 1 to 5 of 5

Thread: Boot problem, Neither Ubuntu nor Windows boots

  1. #1
    Join Date
    Jul 2013
    Beans
    2

    Boot problem, Neither Ubuntu nor Windows boots

    I bought a new laptop with Windows 8 pre-installed and I tried to make it dual boot like my windows vista laptop with Ubuntu. Turns out because of some boot sector changes its really complicated now!
    Ubuntu installed fine, but it wouldn't boot up windows anymore. After reading a new threads on here about people with the same problem, I Installed and ran the Boot repair software (https://help.ubuntu.com/community/Boot-Repair)
    After going through the instructions, I rebooted my computer and it gave me a "Grub Rescue" screen saying
    HTML Code:
     error: invalid arch independent ELF magic.  grub rescue>
    I am running Ubuntu from the live cd now...and have tried to fix that problem by running

    sudo mount /dev/sda1 /mnt sudo grub-install --root-directory=/mnt /dev/sda This ended up booting in the "grub" window where it allows me to type some rudimentary commands.

    Can anyone help me fix my computer and get back to 1. Ubuntu booting up! 2. Dual boot with my windows which is still installed


    Here is the pastebin that Boot-repair gave me to write down after the installation: http://paste.ubuntu.com/5835513



    I've been running the ubuntu live cd for almost a month now! Please help! I need both windows and ubuntu on my computer because I use both for different purposes!

  2. #2
    Join Date
    Feb 2006
    Location
    Poznań
    Beans
    41
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Boot problem, Neither Ubuntu nor Windows boots

    Looking through your boot repair report, I believe that you should have typed:
    sudo mount /dev/sda6 /mnt
    This will point the files to the /boot/grub directory, which is on sda6.
    Is this the partition that you chose when you ran boot-repair? It will show every partition where you have an OS installed, but you need to pick the right one. You may want to run boot-repair again and choose /dev/sda6.

    Peace,
    Paul

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Boot problem, Neither Ubuntu nor Windows boots

    You have Windows in UEFI and really need Ubuntu in UEFI to easily dual boot. But it looks like at least initially you installed grub in BIOS mode not UEFI mode.
    You also converted an essential but mostly hidden Windows partition to the bios_grub partition. If booting Ubuntu in BIOS mode you need the bios-grub partition but it only need to be 1MB. You need to convert sda3 back to the Windows system reserved partition for Windows to work in UEFI mode.
    Order on drive is important:
    http://en.wikipedia.org/wiki/Microso...rved_Partition


    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

    Boot-Repair should be able to convert a BIOS install to UEFI install for Ubuntu by uninstalling grub-pc and installing grub-efi. But does your computer boot with secure boot off? Some only boot with it on, others work either way. Ubuntu does have the Microsoft signed key in its grub shim file and signed kernels and Boot-Repair will install those if you boot Boot-Repair in UEFI secure boot mode.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Jul 2013
    Beans
    2

    Re: Boot problem, Neither Ubuntu nor Windows boots

    Quote Originally Posted by oldfred View Post
    You have Windows in UEFI and really need Ubuntu in UEFI to easily dual boot. But it looks like at least initially you installed grub in BIOS mode not UEFI mode.
    You also converted an essential but mostly hidden Windows partition to the bios_grub partition. If booting Ubuntu in BIOS mode you need the bios-grub partition but it only need to be 1MB. You need to convert sda3 back to the Windows system reserved partition for Windows to work in UEFI mode.
    Order on drive is important:
    http://en.wikipedia.org/wiki/Microso...rved_Partition


    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

    Boot-Repair should be able to convert a BIOS install to UEFI install for Ubuntu by uninstalling grub-pc and installing grub-efi. But does your computer boot with secure boot off? Some only boot with it on, others work either way. Ubuntu does have the Microsoft signed key in its grub shim file and signed kernels and Boot-Repair will install those if you boot Boot-Repair in UEFI secure boot mode.

    Thanks for the reply fred
    How would i convert sd3 back to windows system reserved parition?

    I was able to boot ubuntu now after turning to UEFI mode with secure boot disabled (had to set a supervisor password before it let me disable the secure boot)
    With secure boot it wouldn't boot anything (not even the cd) and gave me warnings that the security policy didn't allow the harddisk or the boot manager or the cd rom to run
    Last edited by mzubair01; July 19th, 2013 at 02:41 AM.

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Boot problem, Neither Ubuntu nor Windows boots

    I was not sure if gparted had that option or not, but it does. You can also use Windows tools. You should have a Windows repair flash drive to make those type of repairs.
    If you go into gparted choose sda3 and right click to manage flags. Assign the msftres flag. Do not format that partition as it must be unformatted.

    Not sure if Windows will boot with secure boot off or not. You will just have to experiment. If Windows only boots with secure boot on then you have to convert Ubuntu to secure boot also.

    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/
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] 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
  •