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

Thread: Grub windows error

  1. #1
    Join Date
    Apr 2013
    Beans
    11

    Grub windows error

    Hello, I just installed Ubuntu 12.04 and I can't get back into windows (no such device / file not found when trying to load windows boot loader from grub)

    I have an SSD(sdb) and 2 TB HDD(sda). I had windows installed on the SSD containing

    - sdb1: 100MB (for EFI) flag: boot
    - sdb2: 120GB (NTFS)

    Upon installing Ubuntu, I set a 16GB '/' partition in my HDD as ext4 and a 4GB swap partition in my HDD as well.
    I pointed the bootloader to sdb1.

    Now, I can boot into ubuntu fine but I can't get into windows from grub or BIOS. (selecting windows boot manager at bios just starts grub)
    I ran boot-repair recommended setting to no avail.

    I can find my windows efi files in /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi. I edited the grub windows bootloader entry that had an incorrect (seemingly arbitrary) root UUID to match the one that linux had and put the above filepath but it still gave me the error: no such file.

    Any help is greatly appreciated
    Last edited by sinsterizme; April 4th, 2013 at 06:14 PM.

  2. #2
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Grub windows error

    It sounds like Windows is UEFI, but perhaps you did not install Ubuntu in UEFI. UEFI has to boot from gpt partitioned drives. Are both drives gpt?

    Best to see all details. Run BootInfo report.

    Post the link to the BootInfo report that this creates. Is part of Boot-Repair:
    https://help.ubuntu.com/community/Boot-Info
    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 and diagnose advanced problems.
    Install in Ubuntu liveCD or USB or Full RepairCD with Boot-Repair (for newer computers)
    http://sourceforge.net/p/boot-repair/home/Home/
    https://help.ubuntu.com/community/LinuxSecureRemix
    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.







  3. #3
    Join Date
    Apr 2013
    Beans
    11

    Re: Grub windows error

    Thanks for your reply! I have done this: http://paste.ubuntu.com/5677442/

    I believe only one of them is gpt.

  4. #4
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Grub windows error

    The only way you can dual boot is to go into UEFI/BIOS and change to BIOS/Legacy/CSM to boot Ubuntu and change to UEFI to boot Windows.
    UEFI and BIOS write info to drive for system to boot. BIOS uses interrupts and UEFI uses drivers, so they write the system info differently and you then cannot dual boot from grub's menu.

    You may be able to convert hard drive to gpt, but have to create an efi partition at the beginning of the drive. I do not like moving partitions, but you can do that. NTFS partitions require a chkdsk after any changes.

    I have not tried to convert my last MBR drive. But all my new drives are gpt even though I still have BIOS.

    Converting to or from GPT
    http://www.rodsbooks.com/gdisk/mbr2gpt.html
    You then need to use gdisk to convert from gpt to MBR
    http://www.rodsbooks.com/gdisk/mbr2gpt.html#gpt2mbr

    GPT Advantages (older but still valid) srs5694 post #@:
    http://ubuntuforums.org/showthread.php?t=1457901
    GPT or MBR
    http://ubuntuforums.org/showthread.php?t=1625285

    If 2TB drive is converted to gpt, you can then use Boot-Repair to convert your Ubuntu install from BIOS to UEFI without reinstalling.
    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.







  5. #5
    Join Date
    Apr 2013
    Beans
    11

    Re: Grub windows error

    Thanks, but I don't understand why it isn't working now. My ubuntu install is UEFI and I'm pretty sure GRUB is loaded in sb1 (on the GPT drive). I can't gather why I can't dual boot from this... Just trying to understand all of this before I do anything drastic I need to be able to boot into win7 ASAP so if you know something I could change to get this working (Ubuntu doesn't need to work) I'd appreciate it.
    Last edited by sinsterizme; April 4th, 2013 at 10:03 PM.

  6. #6
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Grub windows error

    From UEFI in UEFI mode, you should be able to boot Windows.

    But I am not sure with grub2 efi boot loader on the gpt drive and Ubuntu in MBR partitions on the hard drive, that Ubuntu will work. Some have said it may, but the UEFI spec says you have to have gpt partitioning.
    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
    Apr 2013
    Beans
    11

    Re: Grub windows error

    I can't boot into windows at all though. Even when I select windows boot loader from UEFI it boots into grub. Ideally I just want windows booting I can tinker later :S

  8. #8
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Grub windows error

    Did Boot-Repair rename files. Do you have secure boot on. Some are able to boot with it off.

    You can un rename:
    Boot-Repair - Updated Jan 1, 2013 to not rename first time, but rename if first time Windows does not boot. Post 706 and 711
    http://ubuntuforums.org/showthread.p...769482&page=71
    Boot-Repair copied /EFI/ubuntu/grubx64.efi to /EFI/Boot/bootx64.efi (in case the BIOS is hard-coded to boot into /EFI/Boot/bootx64.efi or secure boot signed GRUB file shimx64.efi.
    Renamed files:
    /EFI/Boot/bkpbootx64.efi
    /EFI/Microsoft/Boot/bkpbootmgfw.efi

    To perform this, just run Boot-Repair --> Adv options --> tick "Backup and rename EFI files" --> Apply
    Then reboot the PC to UEFI/BIOS and chose ubuntu, and please tell us what you observe.
    Please enable SecureBoot in your BIOS, then run Boot-Repair --> Advanced Options --> "GRUB options" tab --> tick "SecureBoot" --> Apply.
    To undo & to rename files to their original names, you just need to tick the "Restore EFI backups" option of Boot-Repair.
    A user disabled secure boot, and unchecked it in boot-repair. It now bypasses Grub and goes straight in to Windows.

    Or you can copy the Windows boot efi file back.

    Windows UEFI install should have backup of bootmgfw.efi here:
    C:\Windows\Boot\EFI\bootmgfw.efi from a working Windows x86_64 installation.
    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
    Apr 2013
    Beans
    11

    Re: Grub windows error

    Hi, thanks for continually helping me. The advice you gave in the first paragraph did not work - I still boot into GRUB no matter what. I'd like to try your other suggestion:
    Or you can copy the Windows boot efi file back.
    Where do I copy the bootmgfw.efi file to?

    edit: I noticed that my Linux install has two /boot drives. One in / (which is in sda) and the other in sdb1. Maybe it's defaulting to legacy boot from the '/' mount point and hence windows can't start since its UEFI. Also grub is only installed on '/' not on the efi boot disk, would that be the problem?

    edit2: Yeah I was correct - I disabled the MBR hard-drive in BIOS and rebooted into both ubuntu boot loader and windows boot loader and both times grub repair popped up and told me "could not find device [UUID]" where it was the UUID of my MBR... So how do I switch my EFI partition to point to the windows boot files?
    Last edited by sinsterizme; April 5th, 2013 at 03:50 AM.

  10. #10
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Grub windows error

    You need to look at your boot info report.

    Some of the key info from your previous, which may have changed?

    Code:
     
    /EFI/Boot/bootx64.efi 
    /EFI/ubuntu/grubx64.efi 
    /EFI/Microsoft/Boot/bootmgfw.efi 
    
         sdb1: ____________________________
    
           File system:       vfat
        Boot sector type:  Windows 7/2008: FAT32
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files:        /EFI/Boot/bkpbootx64.efi /EFI/Boot/bootx64.efi 
                           /EFI/ubuntu/grubx64.efi 
                           /EFI/Microsoft/Boot/bkpbootmgfw.efi 
                           /EFI/Microsoft/Boot/bootmgfw.efi 
                           /EFI/Microsoft/Boot/bootmgr.efi 
                           /EFI/Microsoft/Boot/bootx64.efi 
                           /EFI/Microsoft/Boot/memtest.efi
    
       Device                UUID
    /dev/sdb1        1845-F08A                              vfat
    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

Tags for this Thread

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
  •