没有不值得去解决的问题,也没有不值得去学习的技术!

Migrating From Windows 10 to Ubuntu – Part 1: Pre-Installation Preparation

Figure 11, find the newly created Ubuntu Installer in the boot entry list, and use the "Move Up" button on the right to move it to the first position. This way, the computer will prioritize booting from this entry after restarting.

This guide is for scenarios where you have no USB drive, want to completely overwrite Windows, and install Ubuntu only
This article includes two attempts: the first using EasyBCD failed, the second using a partition + EasyUEFI succeeded
Real pitfall: Selected the wrong hard drive and installed Ubuntu onto the F drive partition of the larger hard disk

1. Why I Wrote This Article

I planned to completely leave Windows behind and switch my main system to Ubuntu 26.04. I didn’t have a USB drive on hand, nor did I want to buy one. I searched online for many tutorials, and the mainstream methods involved using EasyBCD or Rufus + a USB drive. However, I found that EasyBCD simply cannot boot an ISO under UEFI mode, so that path was a dead end.

Ultimately, I adopted another method: carving out a FAT32 partition on the hard drive, extracting the Ubuntu installation files into it, and then using EasyUEFI to add a boot entry. This method requires no external devices.

I documented the entire process (including the failed attempt and the pitfall of choosing the wrong hard drive) in detail, accompanied by 11 screenshots. As long as you follow the steps strictly, you can smoothly complete the pre-installation preparations.

2. Preparations (Checklist)

  • A computer running Windows 10 (my model is a ThinkPad T570)
  • Ubuntu 26.04 LTS official ISO image: ubuntu-26.04-desktop-amd64.iso
  • 10 GB of free hard drive space (for temporarily storing installation files)
  • Administrator privileges
Ubuntu 26.04 LTS official ISO image: ubuntu-26.04-desktop-amd64.iso

⚠️ Important: Before operating, please back up all important data to an external hard drive or cloud storage.

I did not back up. My reasoning at the time was that the data on the C drive didn’t need to be kept, and the data on the D, E, and F drives was directly on the larger hard disk, so as long as I operated carefully, there wouldn’t be major issues.
Even though I double-checked repeatedly, I still misjudged the hard drive usage and installed Ubuntu onto the F drive (which belonged to the smaller hard disk), resulting in the complete loss of data on the F drive.

Misjudging hard drive usage: The computer came with two hard drives, a smaller one used for the F drive (Disk 0), and a larger one used for the C, D, and E drives (Disk 1). Initially, I mistakenly thought the smaller one was used for the C drive.
Backing up is the only reliable fail-safe.

3. First Attempt: EasyBCD (Failed)

3.1 Why Try EasyBCD First

Many online tutorials claim that EasyBCD can install Linux without a USB drive, so I decided to try this method first.

3.2 Download and Installation

I downloaded the latest free version of EasyBCD and installed it on the C drive.

I downloaded the latest free version of EasyBCD and installed it on the C drive.

3.3 The Failure Prompt

Right after opening EasyBCD, an error window popped up:

Figure 3 – EasyBCD EFI mode restriction error

EasyBCD has detected that your machine is currently booting in EFI mode. Due to limitations set by Microsoft, many of EasyBCD’s multi-booting features cannot be used in EFI mode and have been disabled.

After looking into it, I found that Microsoft restricts the functionality of the Windows Boot Manager under UEFI mode, and EasyBCD cannot directly boot an ISO image in EFI mode. This path was unviable.

3.4 Abandoning EasyBCD

I decided to switch to another method: instead of relying on the Windows Boot Manager, I would directly add a boot entry at the UEFI level, pointing to a “fake USB drive” (the FAT32 partition on the hard disk).

4. Second Attempt: Hard Drive Partition + EasyUEFI (Success)

4.1 Core Principle

Carve out 10 GB of space from the D drive on the larger hard disk (Disk 1), format it as FAT32 (which UEFI can recognize), and then copy all the extracted files from the Ubuntu 26.04 ISO into it. Then, use the EasyUEFI tool to add a boot entry in the motherboard’s NVRAM, pointing to the grubx64.efi file in that partition. This way, after restarting, the motherboard will boot from this “virtual USB drive” and enter the Ubuntu installation program.

4.2 Creating a FAT32 Partition

4.2.1 Open Disk Management

Press Win + X and select Disk Management.

4.2.2 Shrink to Free Up 10 GB of Space

I chose to shrink 10 GB of space from the D drive (which belongs to the larger hard disk (Disk 1)) because the D drive had enough free space.

Right-click the D drive → Shrink Volume → Enter the amount of space to shrink: 10240 (in MB, i.e., 10 GB) → Click Shrink.

Figure 4 – Entering 10240 MB in Shrink Volume

Once the shrinking is complete, a 10 GB Unallocated region will appear in Disk Management, displayed as a black bar.

Figure 5 – Unallocated region display

4.2.3 Configuration Options

  • During the New Simple Volume Wizard process
  • Assign Drive Letter: I chose G
  • For the File system, you must select FAT32

Click Finish and wait for the formatting to end. Eventually, a G drive (FAT32, 9.99 GB capacity) will appear in Disk Management.

4.3 Extracting the Ubuntu 26.04 ISO to the G Drive

Do not use Rufus or UltraISO to write; you only need to extract it.

  • Open ubuntu-26.04-desktop-amd64.iso with 7-Zip or WinRAR
  • Select all files and folders, and extract them to the root directory of the G drive

After extraction is complete, folders such as boot, efi, casper, dists, and pool, as well as files like boot.catalog and md5sum.txt, will appear in the root directory of the G drive.

Figure 6 – File list on the G drive after extraction

4.4 Downloading and Installing EasyUEFI

EasyUEFI is a UEFI boot entry management tool that offers a free version (for personal use).

  • Search for “Hasleo EasyUEFI” to enter the official website, and select Hasleo EasyUEFI
  • Download the Free Trial version (sufficient for this task)
Figure 7, search for "Hasleo EasyUEFI" to enter the official website, and select Hasleo EasyUEFI

Figure 8 – Downloading EasyUEFI Free Trial from the official website

You can install it on the C drive.

4.5 Using EasyUEFI to Create a Boot Entry

4.5.1 Open EasyUEFI

Launch it after installation, and click the first button on the main interface, “Manage EFI Boot Entries”, or “Windows Boot Manager”.

Figure 9 – EasyUEFI create new boot entry window

4.5.2 Create a New Entry

In the boot entry management window, click “Create New Entry”.

4.5.3 Fill in the Parameters

  • Type: Select “Linux or other OS”
  • Description: Enter Ubuntu Installer
  • Target Partition: Select the FAT32 partition you just created, i.e., the G drive (pay attention to the capacity and drive letter)
  • File Path: Click the “Browse” button, navigate to the G:\EFI\boot\ directory, and select the grubx64.efi file

If you cannot find EFI\boot\grubx64.efi on your G drive, you can try G:\EFI\ubuntu\grubx64.efi or G:\boot\grubx64.efi. In the extracted files for Ubuntu 26.04, grubx64.efi is located under \EFI\boot\.

Click “OK” to save.

Figure 10 – EasyUEFI create new boot entry window, filling in parameters

4.5.4 Adjust Boot Order

Find the newly created Ubuntu Installer in the boot entry list, and use the “Move Up” button on the right to move it to the first position. This way, the computer will prioritize booting from this entry after restarting.

Figure 11, find the newly created Ubuntu Installer in the boot entry list, and use the "Move Up" button on the right to move it to the first position. This way, the computer will prioritize booting from this entry after restarting.

5. Rebooting into the Installer

After completing all the above steps, restart the computer. Press the F12 key; if the boot order is set correctly, you will see the GRUB menu directly, with options including “Try or Install Ubuntu”, “Ubuntu (safe graphics)”, etc.

Note: If you encounter a black or garbled screen at boot, press the e key on the “Try or Install Ubuntu” option, find quiet splash, append nomodeset to it, and then press F10 to boot. This resolves most graphics card compatibility issues.

Once you enter the Ubuntu desktop, click “Install Ubuntu 26.04 LTS“.

6. A Major Pitfall I Hit: Choosing the Wrong Hard Drive

On the “Installation type” screen, I chose “Erase disk and install Ubuntu”. The installer listed two hard drives:

  • First: 238 GB (I thought this was the smaller hard drive, i.e., the original C drive)
  • Second: 953 GB (I thought this was the larger hard drive, i.e., the original D, E, and F drives)

I chose the 238 GB one. But after the installation was complete and I entered Ubuntu, I found that the F drive on the larger hard drive (originally a 200 GB partition) had become the Ubuntu system disk, and all the data inside was lost. Meanwhile, the original C drive (the smaller hard drive) was still Windows, completely intact.

However, to be honest, even though the F drive was overwritten by the Ubuntu system, the impact wasn’t significant. On Windows, my F drive was used for virtual machines. The data didn’t have much value to keep.

Why did this happen? Because the hard drive order in the ThinkPad T570 within the Ubuntu installer is not displayed as C/D/E/F, but rather by physical interface order. I mistakenly assumed the one with the smaller capacity was the C drive, but in reality, the smaller-capacity one was an independent partition (the F drive) on the larger hard disk, while the larger solid-state drive was the 1TB one (which I only confirmed later).

Therefore, you must never judge which one is the Windows C drive based solely on capacity. The correct approach is:

  • Before launching EasyUEFI, first note down the model and capacity of each hard drive in Windows Disk Management.
  • In the partition list of the Ubuntu installer interface, the hard drive models will also be displayed (e.g., “Lenovo SSD 1TB” or “WDC WD10JPCX…”).
  • Select the hard drive you want to overwrite based on its model, not its capacity.

7. Preparation Complete – Next Steps

At this point, you have completed all pre-installation preparations:

  • Created a FAT32 partition and extracted the Ubuntu 26.04 ISO
  • Added the correct UEFI boot entry using EasyUEFI
  • Learned how to avoid the mistake I made of selecting the wrong hard drive

After restarting, select Ubuntu Installer to boot into the installation environment, and then be absolutely sure to carefully verify the hard drive model, selecting the drive you truly want to overwrite (usually the solid-state drive where Windows was originally located).

I will detail the formal installation steps (partitioning, user setup, boot repair, etc.) in the next article.

👉 “Migrating from Windows 10 to Ubuntu – Part 2: Installation and System Configuration” (Coming soon)

8. Quick Reminders

  1. Back up! Back up! Back up! I lost all the data on my F drive because I misjudged the hard drives.
  2. The boot entry added by EasyUEFI is stored in the motherboard’s NVRAM, so it will not disappear even if the hard drive is formatted. If you need to delete it after installation, you can enter EasyUEFI again to remove it.
  3. If you want to boot directly into Ubuntu without the Windows Boot Manager appearing after installation, simply overwrite the hard drive where Windows is located, and GRUB will take over automatically.
  4. If you are still worried about selecting the wrong hard drive, you can temporarily disable the mechanical hard drive in the BIOS, keeping only the target hard drive. Re-enable it after the installation is complete.

I hope this tutorial helps you avoid the pitfalls I encountered and smoothly migrate to Ubuntu 26.04. If you have any questions, feel free to leave a comment.

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系