I have 2 drives installed in my desktop.

  • 1TB NVMe (shows up as /dev/nvme0n)
  • 2TB SSD (shows up as /dev/sda)

The NVMe has Windows 10 installed, and later had Ubuntu 20.04 installed alongside it.

I want to clean install Ubuntu 20.04 again on the 2TB, and wipe all traces of Ubuntu from the NVMe. (including bootloader entries and entries that would show up on my BIOS)

So I tried installing Ubuntu using "Something Else" when partitioning. I created a GPT table on the SSD, created a 500MB EFI partition, and a 128GB ext4 mounted at /.

However, when I reboot and hit F12 to bring up my boot selection, it shows

  • Windows bootloader (ADATA) <--- (ADATA is the NVMe)
  • adata (ubuntu) <--- (old ubuntu installation, which is still installed)
  • WD SSD <--- (the new SSD)
  • Samsung USB partition 2 <--- (Ventoy bootable USB, how I installed Ubuntu both times)

Choosing the WD SSD, my screen goes black for a second, then it goes back into the boot menu again, as if it failed to boot.

During installation, I've tried installing the bootloader to /dev/sda, /dev/sda1 (efi), and /dev/sda2 (root), but none have worked.

Checking GParted (from the Ubuntu live USB), it shows that I have 2 partitions

  • /dev/sda1 (boot, esp)
  • /dev/sda2

How do I properly dual boot ubuntu in this situation? And is it possible to fix this without having to reinstall Ubuntu entirely?

  • No, It's not possible to "wipe all traces of Ubuntu" and not reinstall the operating system.... – Nmath Nov 29 '20 at 4:37
  • @Nmath That part is trivial as of right now. I'm more worried about getting the new installation to boot, as it is unbootable. I'm even willing to reinstall windows if I need to to remove all traces of Ubuntu from the first disk. – cclloyd Nov 29 '20 at 4:58
  • It's a new installation and it was done incorrectly... what is there to preserve except bad things? Your best path is to wipe the hard drive and reinstall it. – Nmath Nov 29 '20 at 5:00
  • @Nmath I've tried reinstalling it, multiple times. I still can't get it to boot... I'm not sure you're reading my question in its entirety. – cclloyd Nov 29 '20 at 5:03
  • I have and I'm suggesting that you Format/Erase the drive before you attempt to install Ubuntu. As long as you have unpartitioned free space and you are consistent in your use of UEFI or BIOS, you should get an option to "Install Alongside Windows". Trying to save a failed installation is not a very good path – Nmath Nov 29 '20 at 5:07

The options to choose where to install boot loader in UEFI mode do not work.

The old Ubuntu install entry in NVMe drive will be overwritten and boot new install.

Posted work around to manually unmount & mount correct ESP during install #23 & #26. Very old bug but still an issue if not installing to same drive as Windows.


Others suggest disconnecting all other drives physically or logically in UEFI settings, so install drive is first drive.

Or removing boot flag/esp flag from first drive, so only ESP is install drive. (I have not had that work, but others have.)

Or if you have ESP on second or external drive, you can just reinstall grub, either manually or using Boot-Repair's advanced mode & full reinstall to correct drive.

If you have ESP on second drive, use Boot-Repair's advanced mode to reinstall grub to second drive. Default fix may not be correct, only use advanced mode. Grub installs to any drive without issue, it is Ubuntu's Ubiquity installer that only wants to use first ESP found.


UEFI/gpt partitioning in Advance, newer versions do not need swap partition as swap file is now used since 17.10:

How to prepare a disk on an EFI based PC for Ubuntu?


Even I faced the same issue a you.

  • To completely remove the Ubuntu installation on the nvme ssd, delete the existing Ubuntu partitions and to remove the grub bootloader follow https://askubuntu.com/a/1139921/1172133

  • The Ubuntu installer has a bug because of which the installer doesnt install the bootloader in the chosen location instead installs it in the first efi partition. A workaround that worked for me is https://askubuntu.com/a/1056079/1172133

After this the Ubuntu bootloader will be installed on the 2TB sata ssd and you can boot to it from the boot menu

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.