The stroy were i've installed Ubuntu 16.04 LTS then i installed Windows 10 on my laptop (dual boot). It was on UEFI mode installation.    So, when i restart my laptop, it boot into Windows 10. After that, i reinstall Grub from Ubuntu Live USB. But, it wasn't succeed  What i have done so far is :  Terminal :   ubuntu@ubuntu:~$ sudo mount /dev/sda2 /mnt ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt/boot/efi ubuntu@ubuntu:~$ for i in /dev /dev/pts /proc /sys /run &gt; do sudo mount -B $i /mnt$i &gt; done ubuntu@ubuntu:~$ sudo chroot /mnt root@ubuntu:/# grub-install /dev/sda Installing for i386-pc platform. grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible. grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged.. grub-install: error: will not proceed with blocklists.   Disk :  Device         Start       End   Sectors   Size Type /dev/sda1       2048  78125055  78123008  37.3G EFI System /dev/sda2   78125056 488493055 410368000 195.7G Linux filesystem /dev/sda3  488493056 506071039  17577984   8.4G Linux swap /dev/sda4  506071040 506103807     32768    16M Microsoft reserved /dev/sda5  506103808 976773119 470669312 224.4G Microsoft basic data   EDIT   It is too long to reply @oldfred comment with this text. So i put it here.  Hi @oldfred .. i've been confusing about Operating System Booting settings. I set booting mode on UEFI (Secure Boot), after that i installed Ubuntu. During installation, it said i did something wrong (not recommended way) after created partition and it must be use Legacy BIOS to make dual-boot possible in the future. So, i went to change the Boot's Settings mode to Legacy BIOS. After that i installed Ubuntu with succeed. Then i installed Windows (still on Legacy BIOS mode). It was succeed as well. Then i went to recover  GRUB to enable dual-boot. I followed this tutorial (). I reboot my laptop .. just end up with Windows appeared after booting.  Any idea why i can't reinstall grub ?
120964
I have an installation of Ubuntu 15.04 that has been working fine for some weeks. Today, my box locked up to the point I had to power it off in order to clear the error. When I did so, it stopped booting.  When booting, it comes up and displays a cursor and nothing else.  I tried following the advice here:  but when I do so, it gives me this error:  Installing for i386-pc  platform. grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible. grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. grub-install: error: will not proceed with blocklists.   Any advice as to what to try next?
15018
I installed Ubuntu alongside Windows 8, however have decided to unisntall Ubuntu.  First I booted into Parted Magic and, using GParted deleted all the ext4 and swap partitions.  This leaves me with the same partitions I had before I installed Ubuntu:  /dev/sda1 ntfs WINRE_DRV /dev/sda2 fat32 SYSTEM_DRV (my UEFI partition) /dev/sda3 fat32 LRS_ESP /dev/sda4 unknown Microsoft Reserved Partition /dev/sda5 ntfs Windows8_OS /dev/sda6 ntfs LENOVO /dev/sda7 ntfs PBR_DRV   I expected deleting the partitions would be enough to remove Ubuntu and allow me to boot back into Windows 8, however whenever I boot I get the following error:  error: no such partition.   which is followed by GRUB rescue:  grub rescue&gt;   In my UEFI partition, there are two directories BOOT and EFI. In BOOT is a single file - boot.sdi. In the EFI directory are another two directories, BOOT and Microsoft. Inside BOOT are two files, bkpbootx64.efi and bootx64.efi. The Microsoft directory has a directory in it named Boot. Inside it are the normal Microsoft EFI files (as far as I can tell).  Thinking there were still GRUB files left, I ran find . -iname "*grb*" and find . -iname "*grub*" in the UEFI partition, however only found one empty file, bootx64.efi.grb (which I deleted).  How is GRUB still installed, and how can I uninstall it?  I'm pretty new to UEFI and so things may need explained in detail. The computer is a Lenovo IdeaPad Z580.  edit: I forgot to mention, I deleted the ubuntu folder in the UEFI partition.  edit 2: I managed to get back into Windows through a "System Recovery" option in the laptop's BIOS settings. This may or may not have solved the issue.  edit 3: okay, I can boot almost normally now. When I boot, I see No partition active for a couple of seconds then Windows boots. How can I remove that?
41073
On my old laptop (legacy BIOS, MBR disk), this was perfectly possible to get working:  I turn on the computer and see the Windows Boot Manager  I use EasyBCD (or BootPart, or something else) to add an option to the BCD menu which allows me to boot into GRUB, and then into Ubuntu   I can't figure how to do this on my new laptop (UEFI, GPT disk), whether in UEFI or legacy mode. Currently I've installed (and even booted!) Ubuntu on my laptop, but only with the help of an external GRUB (on a USB flash drive). How can I add GRUB as an option in the Windows Boot Manager on a UEFI laptop? (No, I don't want to change my primary boot loader. So no, I don't want to overwrite the Windows boot loader with GRUB.)
17707
I want to reinstall GRUB 2 and I found these instructions: . In my case, the boot loader is installed in the EFI partition. If I use the commands provided in this guide, will GRUB be reinstalled to the EFI partition automatically, or will it be installed into the root partition where Ubuntu is installed ? Obviously, I do not want this to happen.
35965
On trying to install Ubuntu 12.10 Desktop amd64 to a desktop pc using a ga a75 ud4h motherboard (which is using an AMD 3870k APU with a new 1TB HDD) following the advice in the  and  have now got to grub option screen for EFI install. Booting live dvd in EFI mode gives &quot;Secure Boot is not enabled&quot; just before grub kernel option list shows.  If the option to &quot;Install Ubuntu&quot; or &quot;Try Ubuntu without installing&quot; is selected gives &quot;can not read cd/0&quot; and &quot;the kernel must be loaded first&quot; errors. Using DVD or USB installation media gives same results and there has never been at any point an UEFI entry in bios/firmware settings or boot device list/s. It might be helpful to say that have had an alternative non-linux OS installing EFI mode on this hardware giving a GPT installation automagically using USB installation media when the hdd space was completely unallocated space. The USB device was listed under hard drives in bios/firmware one time boot list and did not have an UEFI entry. i.e. it installed EFI although no EFI or UEFI entry was assigned to the device like what is shown in many tutorials regarding UEFI installs. The only constructive information regarding this question is found at  and  but can not work out the answer. Checking md5sum and sha256 checksums on downloaded .iso and used &quot;Check disk for defects&quot; to check burned .iso when booting DVD in BIOS mode. No errors found. &quot;Check disk for defects&quot; will not run (or any other options) when DVD booted in EFI mode. Due to trying different distributions as well as older and newer flavours of Ubuntu all giving similar results in that no options from grub option screen in EFI mode are bootable (if getting that far) as well as spending time searching Ubuntu Forums have come to conclusion the firmware on this system is hardcoded to handle Microsoft EFI files only. After installing Windows EFI mode here is a  and here is a link to a thread i started at  which may be helpful to others building a dual boot system. Installing BIOS mode and using Boot-Repair to install grub-efi is not a complete solution due to the inability of using installation media EFI mode for recovery and maintenance due to the &quot;you need to load kernel first&quot; and &quot;can not read cd/files&quot; errors as described when trying to boot installation media using EFI. Secure Boot is not an issue. Using msinfo32 from windows confirms Secure Boot is not supported on this hardware. How to edit kernel or load kernel for EFI install? = How to EFI install Ubuntu? PLEASE CONSIDER: This is not a dupe!  The linked question that is indicated to having a working answer does not have a working answer to &quot;###How to edit kernel or load kernel for EFI install? = How to EFI install Ubuntu?&quot; therefor the workaround of installing using BIOS then manually install grub-efi without renaming bootloaders which works to get Ubuntu booting using EFI or using boot-repair to do this (and many unnecessary &quot;fixes&quot; if recommended repair is not changed in advanced settings) also works.  This goes some way to confirming hardcoding of firmware is not stopping grub the boot manager seeing the vmlinuz.efi files in /casper on DVD.  I would like an answer to this so would like this question to be reopened.
24844
I have a Sony VAIO S series with Windows 8 preinstalled, and I installed Ubuntu 12.10 on a new partition. When the PC boots Grub is display, and I can choose between Windows 8 (didn't worked at the beginning, had to change Grub settings) and Ubuntu 12.10. When I select Ubuntu 12.10 everything is OK, but when I use Windows 8, and I restart Grub isn't displayed anymore (Windows 8 boots immediately).  I booted a Ubuntu 12.10 LiveUSB, used efibootmgr, and found out that Windows 8 (each time it boots) changes EFI default bootloader from Grub to Windows Boot Manager.  How do I change this in Windows 8? I read something about bcdedit, but it does not work or I don't know how to use it...
5661
I recently have upgraded my PC, my new Motherboard (ASUS M5A99X EVO) uses UEFi instead of the regular MBR option.  I have a Ubuntu 11.10 installation that I did when I had my previous hardware (MSI MS 7267) , Ubuntu alone boots fine, and so does Windows 7, however Windows 7 is using UEFI (GPT) boot whereas Ubuntu is using MBR.  I have my OSs in separate drives, so that GRUB2 wont' get replaced by the Windows Bootloader and viceversa, as I said both OSs boot fine on their own, but to do that I have to disconnect one drive in this case the Ubuntu drive as it prevents Windows from loading.  Now my question is, How can I change/convert Ubuntu's drive so that instead of using MBR it uses GPT and allow Windows to boot?.   Preferably without reinstalling the whole system or lose any data.  And if I were to wipe the drive, How can I install Ubuntu in GPT, UEFI, whatever it is mode?.  I have used gdisk to convert from MBR to GPT, but now Ubuntu can't boot seems like grub just doesn't start.  I have re installed the OS, and the drive is GPT now by default however grup-pc is still being used instead of grub-efi.  How can i make Ubuntu boot from EFI?.
73288
I've posted a question  that I have a 32bits windows 7 on a dual boot machine with ubuntu 10.04 upgraded to 11.04. From the responses I had from the questions, I decided to reinstall the windows 7 but this time a 64bits version.  I've install the grub on the first section of the HDD on which ubuntu is install, meaning the 2nd Drive.  I still want guidance before I proceed.  What would you suggest me as best way to achieve that without disturbing the boot loading.  thank you for reading this.
119127
My computer shipped with Windows 8 and later I upgraded to Windows 8.1 Right now I'm trying to get Windows 8.1 to dual boot with Ubuntu 12.04, but the Grub menu doesn't show up at all. My computer just boots straight to Windows. I searched for this online and the only answer I get is  to edit /etc/default/grub, but I don't even know what this is and where to find this. I also can't use a bootable CD, only a USB. I really need step-by-step answers that aren't confusing like all the other ones I've found so far.  EDIT: I just rebooted and now the Grub menu does show up but when I try to boot into Ubuntu, it says a file is missing. Windows boots normally though. I have disabled secure boot and fast startup.      Windows failed to start. A recent hardware change or software change might be the cause.     To fix the problem:     1. Insert your Windows installation disc and restart your computer.     2. Choose your language settings, and then click "Next."     3. Click "Repair your computer"     If you do not have this disc, contact your computer administrator or computer manufacturer for assistance.     File: \NST\AutoNeoGrub0.mbr     Status: 0xc000007b     Info: The application or operating system couldn't be loaded because a required file is missing or contains errors.   I'm not sure if that file was corrupted while installing Ubuntu or it's missing.
8543
I had windows 10 but during a reset, it died ( I know my bad ). So I am attempting to wipe the drive and install ubuntu from a clean install but whenever I select to install ubuntu it only gives me a black screen. It's in UEFI and secure boot.  Can anyone tell me what I'm doing wrong?
122067
I have dual booted Ubuntu with Windows 7. I wanted to uninstall Ubuntu. So as per an answer for one of the related questions on this site I did the following:   Deleted the Ubuntu Partition through Windows. As per the answer now I was supposed to boot Windows from USB &amp; then do "repair startup".   But Windows could not find any problem hence nothing was done. So when my laptop booted normally (i.e. from HDD) it was showing some error like GRUB:/ unknown file system. I dont remember the exact words but it was something like this. Thus I couldn't boot windows neither Ubuntu. So again I had to install Ubuntu.  But now my question is how do I remove Ubuntu so that my laptop returns to the previous state of installing Ubuntu?  UPDATE: Seems that it wasnt on this site. My mistake :P .Here is the link
80385
I am just about to install Ubuntu alongside Windows, just need to make sure I know how to remove it later.  I know from past the major problem was when I removed Ubuntu, I either still got into the GRUB booting menu, or I couldn't boot at all, and had to format HDD and start over. Now I found an article practically saying the Windows loader should be back upon deleting Linux partition, so I want to make sure:  If I have Windows and Ubuntu dualboot, and I want to get back to Windows booting quickly itself without choosing from any booting menu, is it enough to just delete the Ubuntu partition? Will the Windows loader override GRUB?  Thanks!
54916
It's my first time installing ubuntu. I have Windows 7 and 8 before in my laptop (Acer Aspire 4752z). After Ubuntu (12.04) installed in my laptop, the Windows boot loader didn't recognize my Ubuntu so I updated grub from a live USB.   And after grub updated, Ubuntu was booting perfectly but my Windows wasn't listed in the grub menu. So I follow someone instruction to update grub again. And after reboot, the grub menu didn't show anymore.   After searching about this problem on the net and trying to update grub again and again, I decided to delete the Ubuntu partition from live USB. And shortly after, I booted to Windows with Hiren boot and I used mbrfix. But i think it failed. Now i cant show my BIOS setup or boot from DVD or USB.   After that, the only screen i can see after booting is:  error: unknown filesystem grub rescue&gt;
87439
Whenever I boot into my system, Linux directly boots. If I press shift, GRUB shows only Linux, not Windows. Here are results of fdisk and update-grub. I think I have installed Linux the wrong way.  $ fdisk WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.   Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000     Device Boot      Start         End      Blocks   Id  System /dev/sda1               1  1953525167   976762583+  ee  GPT Partition 1 does not start on physical sector boundary.  $ update-grub Generating grub configuration file ... Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. Found linux image: /boot/vmlinuz-3.19.0-32-generic Found initrd image: /boot/initrd.img-3.19.0-32-generic Found memtest86+ image: /boot/memtest86+.elf Found memtest86+ image: /boot/memtest86+.bin   No volume groups found done
18153
I have a Lenovo IdeaPad Y400 that came pre-installed with Windows 8. I would like to run Ubuntu alongside it in a dual-boot configuration. I've spent the past week fiddling around, re-installing both Windows and Linux in various configurations, and I've come awfully close to success, but seem to have hit a snag with Grub.  For my most recent attempt, I took the following steps:   Disabled Secure Boot Re-imaged Windows 8 from a hidden recovery partition, effectively restoring the machine to factory state Activated an option called Legacy Support in the BIOS (or is it UEFI now?) Booted Ubuntu 13.04 x64 from a USB stick, chose "install alongside Windows" and accepted all default options After a restart, found that I could boot Ubuntu, but could not boot Windows Once into Ubuntu, I ran Boot Repair with recommended settings and accepted all defaults. When Boot Repair finished, I was presented with the following message:      The boot files of [The OS now in use - Ubuntu 13.04] are far from the   start of the disk. Your BIOS may not detect them. You may want to   retry after creating a /boot partition (EXT4, >200MB, start of the   disk). This can be performed via tools such as gParted. Then select   this partition via the [Separate /boot partition:] option of [Boot   Repair]. ()    I followed the instructions at the url in the message, creating a 1GB EXT 4 partition near the start of the drive  when I tried to run Boot Repair again, the "Separate /boot partition" option on the "Grub Location" tab was disabled.  The new partition is /dev/sda11 and has the label GRUB. On restart, I get the following error message:      error: file '/boot/grub/i386-pc/normal.mod' not found.    grub rescue>    However, if I manually choose the boot partition by hitting F12, I can boot into Windows no problems. Selecting Ubuntu from the boot device menu gives me a Grub menu with the following options:      Ubuntu      Advanced options for Ubuntu       Windows UEFI recovery bootmgfw.efi      Windows Boot UEFI recovery       Windows UEFI recovery LrsBootmgr.efi      Windows Boot UEFI recovery bkpbootx64.efi       Windows Recovery Environment (loader) (on /dev/sda3)       Windows 8 (loader) (on /dev/sda5) System setup    Selecting Ubuntu from this menu allows me to get to my Ubuntu desktop. I haven't tried the other options yet for fear of losing the progress that I've made.   So it looks like I have successfully dual-booted the machine, but that Grub is broken for some reason or another.   My current partition scheme can be seen at:   Thanks in advance - Jonathan
68992
what I want to do is this. I have an external hard disk drive, a SEAGATE expansion 1TB, you can take it a look here:  As you can see this is not a flash usb hard drive, it is a USB hard disk drive. What I want to do is installing Ubuntu in this external hard disk drive... BUT NOT PLACING THE GRUB ON MY C: DRIVE. In other words, I don't want to see the GRUB splash Window asking me every single time if I want to load Windows or Linux. I want my PC turn on or restart and go directly to Windows... BUT... I want to have Linux in my external USB hard disk drive How do I want to load Ubuntu then? Easy, when I restart my computer or just start it... in ASUS mother boards I have the possibility to select the boot device by pressing F8, and I get the boot menu. I want to turn on my computer, press F8, my mother board ask me what drive I want to use to load the Operating Sytem, I select the USB external hard disk drive where do I have Ubuntu, and bingo, I run Ubuntu. When I finish to use Ubuntu, I close it and turn off my computer. Later, I turn on my computer, and if I don't press F8, automatically load the hard disk drive C: and load Windows. My question about this, is what are the necessary steps to install the latest version from Ubuntu, doing exactly this. Not placing the GRUB in my C: hard disk drive, and installing it entirely in the external USB hard disk drive (normal one, not flash one).
84142
I installed Ubuntu 11.10 on a newly bought Lenovo ThinkCentre Edge 71 (model: 1577-G3G) with EFI boot enabled. I opted for the Use Entire Disk option. Even though the installation process went without any problems/errors, when rebooting it now just gives me:     No bootable operating system. Insert bootable disk and press any key...   I figure this is because of EFI.   Regression:   I have checked the System Setup (F1 during POST) to find a BIOS option to disable EFI/UEFI boot, however, there is no such option for this machine. This might be caused by a "Secure Boot" feature in the BIOS. The hardware vendor does not know of any such "secure boot" setting in the BIOS that would prevent Linux from booting. Lenovo support did not know anything about a BIOS setting called secure boot. They also did not know of any limitations that would prevent Linux from booting. The  does not mention EFI, UEFI nor secure boot.   How do I install Ubuntu on a machine with EFI? - Or, since Ubuntu is probably already installed: how do I make it boot Ubuntu?