I'm new to dual boot and don't know much about it. I installed Ubuntu 18.04.2 on a USB key and booted from it (I chose the UEFI option). My computer has 3 hard drives (one 250 Gb SSD with Windows, one 2Tb HDD with games and one 1Tb SSD with nothing on it. This one was completely "unalocated"). When installing Ubuntu, it only showed the option to erase disk. I picked that and selected the 1TB empty SSD. I completed the installation.   Now, I have several problems.  1) My computer boots directly to Ubuntu. To boot on Windows, I need to press F12 and choose to boot from the 250 Gb SSD. I tried to install grub, then did a reboot but it didn't change anything. I tried to install boot-repair, but I get the error  "GPT detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again.". I don't know what to do now and I'm afraid to srew things up beyond repair.  2) I have a GTX 2080 and a i9-9900k. Ubuntu doesn't recognize the graphics card so I get very weird graphical issues (also my 2nd monitor isn't recognized). I tried to install nvidia drivers but it didn't work. Apparently this has something to do with removing "secure boot" ?
8698
Since I updated Windows to 8.1 my Grub menu disappeared. I ran Ubuntu using Live USB, I used Boot-Repair but something went wrong. If I click on Reccomended repair I get this error:     GPT detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again. Alternatively, you can retry after activating the [Separate /boot/efi partition:] option.   So I tried to set my sda9 (I think that it's the Ubuntu system partition, since it's ext4) with the bios_grub flag and then to run Boot-Repair again. It didn't work.  I don't know what to do. My Grub was working fine (using UEFI) before I updated Windows.  I removed the bios_grub flag. Then I used fsck and it didn't find any error. So I tried again with Boot-Repair but it always gives me the "GPT detected" error. My boot is on UEFI mode, Secure Boot is "off".  When I boot my PC with SecureBoot OFF, I can reach the GRUB menu. But it's empty (the only voice is "System Setup").  I mounted my Ubuntu system disk:  sudo mount /dev/sda9 /mnt   and the other things:  sudo mount --bind /dev /mnt/dev sudo mount --bind /proc /mnt/proc sudo mount --bind /sys /mnt/sys   I logged on the system with chroot:  sudo chroot /mnt   I re-installed grub:  grub-install /dev/sda update-grub2   But it still doesn't work.
105870
I recently bought a shiny new Lenovo Yoga 2 Pro and I want to dual boot it with Ubuntu for studying purposes. Its built-in OS is Windows 8.1 and it has a 256GB SSD.  I've made a separate 90GB partition just for Ubuntu and a live USB to install it.  The first time everything seemed to work great, I solved the wifi issued by blacklisting ideapad_laptop, the installation went flawlessly and Ubuntu worked fine.  When I got up the next morning and turned on my laptop it booted into Windows right away without ever showing the GRUB menu. So I tried to reset, and checked my partitions with the Disk Manager and everything looked fine. Since I couldn't find a solution online I went ahead and formatted the partition to try and install again. This time and every time since, the installation was aborted and I got a fatal error saying:  Unable to install GRUB in /dev/sda Executing `grub-install /dev/sda` failed. This is a fatal error.   Can anyone please suggest a solution to this problem? If any further information is needed I would be happy to provide it. Thanks.  When installing I get the following in details:  ubuntu kernel: [ 1946.372741] FAT-fs (sda2): error, fat_get_cluster: invalid cluster chain (i_pos 0). ubuntu grub-installer: error: Running 'grub-install --force failed.
39305
I am new to Ubuntu (AMD64) and am attempting to install it on my laptop which already has Windows 7 Home Premium x64.   I currently have two partitions on my HDD and I was planning on repartitioning my secondary partition to make room for a third to use for Ubuntu. However when I attempt to install I get the following message:  "This computer currently has no detected operating systems"  Choosing "something else" takes me to the partitions. However, it only detects a single unpartitioned space (my entire HDD) even though I actually have 2 partitions taking up plenty of space.  By no means can I detect my two partitions using any method. Is it possible the 32 bit installation might be more successful? (I doubt it but I had to ask)      Edit: 250gb. I have two partitions for windows (one main and another for storage) as well as an empty third partition with 20gb that I intend to use for Ubuntu. None are detected, however.  FINAL EDIT: I finally fixed the problem. when I ran  sudo fdisk -l   it gave me several partitions in the list, so I tried running fixparts on individual partitions, which ended up being inconclusive (and confusing)  Then I decided to try to run fixparts over the entire unpartitioned space  sudo fixparts /dev/sda   AS OPPOSED TO  sudo fixparts /dev/sda1  sudo fixparts /dev/sda2   (individual partitions) and so on.  After simply running the command on the entire hdd, it quickly finished and alas it was fixed! Going back to the installation, it detected my Windows 7 installation, and also detected all existing partitions in the custom install mode. Furthermore, my data on my other partitions was left completely unscathed. It fixed my problem at no cost.
106404
I'm trying to setup and install Ubuntu on a RAID 1 setup. I have two disks, sdb and sdc. I've been following this guide  which more or less works for getting everything set up and Ubuntu installed. The problem is at the end of the installation, it tries to install GRUB. By default it tries my &quot;first disk&quot;, which gives a &quot;fatal error&quot;. I've tried installing it on a specific partion, e.g. sdb1 as well as RAID devices, e.g. md0, md1, etc.. Nothing seems to work. The actual error is  Unable to install GRUB in /dev/sdb Executing 'grub-install '/dev/sdb' failed. This is a fatal error.  Then I'm taken back to the main install menu. If I choose &quot;Install the GRUB boot loader on a hard disk&quot; option, I can pick the partition, but entering sdb2 or md1 gives the same error. So I went ahead an just didn't install GRUB, which means now I presumably have a working Ubuntu installation, but I can't boot it. I've tried booting from the LiveCD to install GRUB, but I can't chroot into my system because it doesn't seem to recognize that my disk is a Linux disk. There's an error about it being a RAID partition. So basically I would really like to know how you know to which device to install GRUB at installation, or at the very least, how to install it on to my system now. I suppose I should also mention that sda is a Windows 7 installation that I would like to keep around and be able to access at boot. Thanks for any help.
54902
I have a similar laptop to    But I am opening another question as the problem I face is different. The  and did not find any experience with the Ubuntu installation.  After switching from RAID to AHCI, disabling a secure boot, updating the BIOS, and play around with the BIOS option, I am trying to install Ubuntu 18.04.03.  I am not actually installing it but just using "Try Ubuntu". I pass to the bootloader the options nomodeset intel_idle.max_state=1 without which the installation stops very early. I've also played around with ipv6.disable.  Everything stops while turning on services(see attached figure). In particular acpid.service is the last thing I see, then the system freezes.  I suspect it is related to ACPI setup but don't have any clue on how to fix it. Any suggestion is much appreciated.
78004
First of all: this is not a duplicate of the all the " questions.  Problem:  When booting, the system will not boot unless the installer USB flash drive is present. If I boot without the USB drive, the screen goes black AFTER GRUB lists the different configurations available - so GRUB is on the correct disk, its what it does next that seems to be the problem.  With the USB drive inserted, its access light starts flashing while the system boots in a normal manner.  And yes: I have tried booting from the USB drive directly and then I get the "live" version, so I have not installed the OS on the flash drive by mistake :)   I have tried sudo grub-install /dev/sda and sudo update-grub just for fun, but nothing changed.  System in short:  Ubuntu 12.04 64-bit. i3 processor. UEFI bios. 128Gb SSD drive. The SSD has a 47 Mb EFI partition and the rest mounted as '/' (XFS).
19906
I installed Ubuntu alongside Windows but I did not disable secure boot as someone told me it could cause problems with boot loader. So when installation finished and I rebooted, the system went straight into Windows. I went to Ubuntu IRC Support and they told me to turn off the secure boot and reinstall Ubuntu. I did that but my system still boot into windows.  This is a picture of partitions on my system:    This is my first Ubuntu install on my new laptop. I followed everdaylinux guide to install it and I used something else option.
14088
Hardware:  I've got an SSD (c),an internal HDD (d), an external HDD (e) and a USB flash drive (f).   How this all went down:   I downloaded Ubuntu and used a program to install it on my (F) drive. I reset my computer, ran the (F) drive for boot, and installed Ubuntu. I reset my computer, and it forcibly automatically booted into Windows 10 instead of Ubuntu. I went into Windows 10, and used a program called Easy BCD, by NeoSmart. I followed their guide, but after step 6, it wasn't the same for me. Their guide said that upon rebooting, I should see a grub screen that lets me choose between Windows/Linux and a few other options, however my computer would only boot into Windows 10.  I decided to follow the rest of the guide regardless, however by the end it would let me boot 'windows' or 'linux', but the linux option would always break. It went to a screen with lots of commands, that I thought -may- be a barebones Linux or something, but it definitely wasn't Ubuntu.  I decided to reinstall Ubuntu using the USB flash drive. Upon resetting, no matter what hard drive or format I select for booting (besides the F drive), it says An operating system wasn't found. Try disconnecting any drives that don't contain an operating system. I can boot the F drive and run Ubuntu, but it's a one time version that doesn't save any of my data. When I went into the installation, it still says that I already have Ubuntu installed on the 4TB HDD and that I have Windows 10 installed on the SSD, however I cannot seem to boot into either of them.   TLDR: Windows 10/Ubuntu are both installed, Windows on the internal SSD and Ubuntu on the external HDD. Ubuntu's installation program on the (F) drive recognizes them, however, when I try to boot anything it says An operating system wasn't found.   When I press F11 and force it to boot from the SSD it says:  error: no such device: 83b6c64d-9a2c0467b-a02c-6374ee6ac3dc.  error: unknown filesystem. Entering rescue mode. . .  grub rescue&gt; _   and it will allow me to type some commands.
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?
114100
I bought my PC with Windows 10 on it, later installing Ubuntu for dual-booting. Recently, I wanted to replace the HDD inside with an SSD of the same size, so I copied all the partitions to the SSD (GPT partitioning) using GParted and installed the SSD in the laptop. On startup, GRUB is loaded and I can:  Boot Ubuntu normally Select the &quot;Windows Boot Manager on /boot/sda1 or select bootmgfw.efi manually, however it loads a Recovery BSOD, stating the following with options to access the recovery environment (F1) or boot parameters (F8) but those don't work (same screen): File: \WINDOWS\system32\winload.efi is missing or broken Error code: 0xc000000e    As I understand it, Windows Boot Manager is loaded but cannot find the Windows boot loader (probably because not looking into the right partition), so what I need to do is give the right partition to the boot loader, but I have no idea how to do that. How do I fix this, preferably something that can be done from Linux and doesn't involve a reinstall of Windows?
119924
I did a fresh complete install of Ubuntu 18.04 on my ASUS M32CD desktop.   Everything during install went fine. At the end it said it was complete complete, and would reboot. Popped the disc out. Rebooted itself back into bios so I changed it back from CD boot as primary to HD.  When it booted up for Ubuntu screen and then everything went black and can’t do anything now! Ugh. Help
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;
66144
So, the last time I used my Ubuntu installation was last night. Today, as I booted it up, it told me that booting grubx64.efi is not allowed. Easy enough. I know how to re-enable it from my BIOS.  After re-enabling it, I try booting again and get the following error:     error: Secure Boot forbids loading module from (hd0, gpt7)/boot/grub/normal.mod   And then there's this some kind of 'grub resuce' CL prompt below that error. Never figured it out except that ls is a valid command. Using ls displays various (hdx , *) files/directories/drives.  Note that, as I never got to load Windows 8 from GRUB despite various tutorials, I use rEFInd to switch between loading GRUB (which, in turn, I use to load Ubuntu) and Windows 8.  How do I re-enable GRUB (and get to Ubuntu) and does anyone know what just caused this problem? I remember installing Ubuntu updates last night but I can't remember if there was anything that might relate to something UEFI-specific.
115047
So i'm trying to install Ubuntu on my laptop, it seems to work fine until it tries to install grub. I haven't seen progress the past hour and this is the second attempt.  I'm trying to install 13.10, using a Linux Live USB. I don't care about the contents of the laptop.   I've been trying to find instructions about installing grub before starting the installation, hoping that would solve my issues, but I came up empty.  Laptop is 2 years old, it used to run dual-boot windows 7 and Ubuntu. I'm now doing a fresh install of just Ubuntu.  I hope anyone knows how I can find out why it is happening.
74728
The TL;DR, added in the edit:  The question is: How can I make the BIOS prefer GRUB over Windows Boot Manager on the same UEFI boot partition? The problem is not with Grub; Grub does the right thing when the BIOS starts it. The problem is not with &quot;the disk isn't bootable,&quot; because both the Windows UEFI bootstrap and the Grub UEFI bootstrap are bootable. The problem is which UEFI bootstrap the BIOS chooses to boot from.  I'm setting up a new computer, and want it to by default boot into Ubuntu, but have the option to select Windows on boot. This is especially important if power goes out and comes back; I won't even be in the house. I started out by installing Ubuntu 17.04 on my internal NVMe disk, partitioned with GPT to use half the disk, and a separate UEFI boot partition. GRUB boots that just fine, and I see the GRUB boot menu on start-up where I can select whatever items GRUB knows about. Then I installed Windows 10 Pro from a recently downloaded ISO. It installed Windows Boot Manager onto the same UEFI partition, and left the Ubuntu intact (great!) and that boots fine into Windows 10. However, it did &quot;something&quot; that makes the UEFI firmware immediately select the Windows Boot Manager rather than GRUB on power-up. The only way to boot Linux now is to use the BIOS boot manager (F11 on my BIOS) and select the GRUB boot loader manually. The UEFI BIOS knows that there are multiple bootable installs on the UEFI partition, because I can choose between them in the boot manager. However, when I'm in the setup menu in the UEFI BIOS, it just lets me choose &quot;UEFI boot my internal drive&quot; in the boot priority selection -- it doesn't let me choose which particular boot loader on that partition to use. And, by default, it chooses Windows, not GRUB. The internets (and this site) suggests that the old way to fix this is to run update-grub (so GRUB recognizes Windows) and then grub-install (to put GRUB back on the device.) I have done this, but unfortunately, it still has the behavior as described above, where the BIOS by default chooses Windows Boot Manager. (update-grub does find the Windows Boot Manager install, and adds that to the menu, and that menu item works when I manually choose the GRUB partition in the UEFI boot manager.) What can I do to make GRUB the &quot;default&quot; boot on my UEFI boot partition? Using a MSI X399 Carbon motherboard. Second edit: Because the correct answer ends up being mentioned in a comment to a response, I'll repeat it here: &quot;BCDEDIT&quot; in an admin shell on Windows is the working solution. The others don't work.
94687
After installing Ubuntu, Windows didn't boot so I installed boot repair to fix this problem. But I am getting the message displayed below.  I tried to make a new partition with unformatted file system but still receiving the same message.  How do I fix it?
12166
I have a dumb problem that I'm hoping that someone can point me in the right direction on. I'm trying to install ubuntu 16.04.1 on a windows10 machine. I've followed all the steps correctly (I think) all the way up to the point where I am supposed to go through the install program on the thumb drive. The first problem is that it does not show the option screen that has the partition the hard drive options (see here: ). The next page (here:) only shows that my "device for boot loader installation" is the thumb drive itself.  I'm confused. I've made sure that there is in windows a free partition with no drive assigned and every other step up till the point where I reach this dead end I've followed correctly seemingly. Can anyone tell me what's going wrong?