Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: No Such Device - trying to boot Windows from Grub after install

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

    Re: No Such Device - trying to boot Windows from Grub after install

    As long as sdc has no data you care about, use gparted and partition it this way.

    I have BIOS but use gpt. I have created my gpt partitions with gparted. Under device, create partition table, advanced, choose gpt not the default msdos (MBR) partitioning.
    That erases everything.


    For the Total space you want for Ubuntu:
    Ubuntu's standard install is just / (root) & swap, but it is better to add another partition for /home if allocating over 30GB.:
    Only if gpt - all partitions in gpt are primary:
    gpt: 250 MB efi FAT32 (for UEFI boot or future use for UEFI, you only can have one per drive, so if already existing do not attempt another)
    gpt: 1 MB bios_grub no format (for BIOS boot not required for UEFI)
    gpt or MBR(msdos)
    Ubuntu partitions - smaller root only where hard drive space is limited.
    If total space less than about 30GB just use / not separate /home or standard install.
    1. 10-25 GB Mountpoint / primary or logical beginning ext4(or ext3)
    2. all but 2 GB Mountpoint /home logical beginning ext4(or ext3)
    3. 2 GB Mountpoint swap logical

    Depending on how much memory you have you may not absolutely need swap but having some is still recommended. I do not hibernate (boots fast enough for me) but if hibernating then you need swap equal to RAM in GiB not GB. And if dual booting with windows a shared NTFS partition is also recommended. But you usually cannot create that as part of the install, just leave some space. Or partition in advance (recommended).
    One advantage of partitioning in advance is that the installer will use the swap space to speed up the install. Thanks Herman for the tip.
    https://help.ubuntu.com/community/DiskSpace
    http://ubuntuforums.org/showthread.php?t=2021534

    Instead of a separate /home I actually use two data partitions. One is NTFS for data I shared with my XP and the other is ext3 (I would use ext4 now) for all my new data. Then I keep /home inside my 25GB root partition and link all my data back into /home.
    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.

  2. #12
    Join Date
    Mar 2012
    Beans
    11

    Re: No Such Device - trying to boot Windows from Grub after install

    edit: Just saw your post above that came in before I replied-- I do not have anything on sdc and am completely cool with redoing it. I will boot into LiveCD and use gparted to try and match the way yours is set up... I will report back (so you could disregard the steps I took below) Thanks!

    To perform this, just run Boot-Repair --> Adv options --> tick "Backup and rename EFI files" --> Apply
    (it was already ticked, but I left it ticked and clicked apply, here are results: http://paste.ubuntu.com/5709139 )

    Then reboot the PC to UEFI/BIOS and chose ubuntu, and please tell us what you observe. (by UEFI/BIOS I will assume you mean the "CSM and UEFI OS" option I have in my BIOS) I did this, and the system went back to grub, Windows still didn't work, but Ubuntu booted up fine.

    Please enable SecureBoot in your BIOS, I cannot run SecureBoot. I get a red box "Secure Boot Violation" and doesn't POST past that -- then run Boot-Repair --> Advanced Options --> "GRUB options" tab --> tick "SecureBoot" --> Apply. could not complete, could not boot in secure boot

    To undo & to rename files to their original names, you just need to tick the "Restore EFI backups" option of Boot-Repair. went back to boot-repair to do this, here were results: http://paste.ubuntu.com/5709145/

    Thanks again
    Last edited by Plexicle; April 15th, 2013 at 12:39 AM.

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

    Re: No Such Device - trying to boot Windows from Grub after install

    I think we are cross posting. So see if you missed anything I posted above.

    Just adding a FAT32 partition to a MBR drive does not make a efi partition. You can only have an efi partition with gpt partitioning.

    Some have had issues with the renaming back. They just copy the Windows efi file back into Windows.
    Windows UEFI install should have backup of bootmgfw.efi here:
    C:\Windows\Boot\EFI\bootmgfw.efi from a working Windows x86_64 installation.


    From standard Ubuntu you see it here, but that is because it is mounted at /boot/efi. If from liveCD it may be /media?
    /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
    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. #14
    Join Date
    Mar 2012
    Beans
    11

    Re: No Such Device - trying to boot Windows from Grub after install

    Quote Originally Posted by oldfred View Post
    I think we are cross posting. So see if you missed anything I posted above.

    Just adding a FAT32 partition to a MBR drive does not make a efi partition. You can only have an efi partition with gpt partitioning.

    Some have had issues with the renaming back. They just copy the Windows efi file back into Windows.
    Windows UEFI install should have backup of bootmgfw.efi here:
    C:\Windows\Boot\EFI\bootmgfw.efi from a working Windows x86_64 installation.


    From standard Ubuntu you see it here, but that is because it is mounted at /boot/efi. If from liveCD it may be /media?
    /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
    Wow! I missed that whole part about switching the thing over to gpt. That makes so much more sense now! I did this, and am about to commit the new partition changes-- one thing I don't get is that it didn't allow me to make the /home or swap logical drives? Does this matter?
    Here is how I tried to replicate it: http://i.imgur.com/t3OIs9h.png

  5. #15
    Join Date
    Mar 2012
    Beans
    11

    Re: No Such Device - trying to boot Windows from Grub after install

    p.s. is there somewhere I can donate to you or the cause? I know you don't have to keep coming back and helping me, but I'm super grateful that you are, and that you're putting up with my lack of knowledge with this.

  6. #16
    Join Date
    Mar 2012
    Beans
    11

    Re: No Such Device - trying to boot Windows from Grub after install

    Aaand.. here we go... new drive is all set up and partitioned. Ubuntu installed without a hitch. No grub loader on initial boot-- here is first boot-repair run: http://paste.ubuntu.com/5709252/

    On boot after that, got GRUB screen, and.... OMG WINDOWS JUST LOADED JESUS I CAN SWITCH BACK AND FORTH. OLDFRED HOW CAN I EVER REPAY YOU? Hooray!!

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

    Re: No Such Device - trying to boot Windows from Grub after install

    Glad you got it working.
    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.

Page 2 of 2 FirstFirst 12

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
  •