How to delete Ubuntu in Windows+Ubuntu dual system

①First of all, you have to judge whether your computer's boot mode is Legacy or UEFI. There are many ways (you can use Baidu), the simpler one is as follows:

After win+r, enter cmd, open a command line window, enter diskpart, and then enter list disk, a table will appear as follows:

In the last Gpt column, if there is an asterisk *, it means UEFI boot; if there is no asterisk, it means Legacy boot.

② Depending on whether your computer is Legacy or UEFI boot, there are different ways to uninstall Ubuntu.

1. If Legacy starts:

            (1) The first step is to repair the startup items of the computer. The purpose is to delete the startup items of Ubuntu and only keep the startup items of Windows. Methods as below:

                         Download a software "MbrFix": official download address    (turn to the bottom of the page and click "Download center", then click "Last ned og les mer" to start downloading).

                          After the download is complete, it is a compressed file, then decompress it, which contains a file named MbrFix.exe and a file named MbrFix64.exe. If your Windows is a 32-bit system, copy MbrFix.exe to C :/Windows/System32; if it is a 64-bit system, copy MbrFix64.exe to this path.

                          Then open a command prompt (start as an administrator), enter the path C:/Windows/System32, and run the following command:

32位系统:
MbrFix /drive 0 fixmbr /yes


64位系统:
MbrFix64 /drive 0 fixmbr /yes

                          Restart the computer and find that there is no Ubuntu boot interface, and the computer directly enters Windows, it means that the startup item is repaired successfully.

           (2) The second step is to delete all of the disk where Ubuntu is located. You can delete it directly from "This Computer-Management-Disk Management", or you can download a diskgenius to delete it. (The blogger uses diskgenius)

1. If it is UEFI boot:

             There are a lot of online blog posts (most of the blog posts that do not classify Legacy and UEFI are written for the UEFI situation), here is a seemingly reliable blog post: it looks reliable , I haven’t tried it Whether it is feasible, I won’t repeat it.

Guess you like

Origin blog.csdn.net/qq_39642978/article/details/104143985