For win10 and Ubuntu dual systems, the startup item is damaged after Aomei partition, and only grub > is displayed

Time:2021-9-10

Pre observation tips

Read this tip first. The method is not appropriate. Turn left in advance to avoid wasting your valuable time

[this tutorial directly and safely deletes the Ubuntu system. If there are important files in Ubuntu, it is recommended to repair the Ubuntu startup item.]

[this article is attached with some common software links: Aomei partition assistant, right click to add DOS, mbrfix64.exe startup item repair tool]

[the online repair tutorials are messy, and the problems encountered are somewhat different from mine. I tried many methods and failed to repair them. Anyway, Ubuntu doesn’t have important files, so it just deleted and used the virtual machine directly.]

[wish you good luck and find a suitable method]

Problems encountered

After partitioning as shown in the figure, turn on the computer and only grub > appears (as shown in the figure), but you can’t choose to enter any system

image

Cause

It may be that the Aomei partition does not know the dual system partition with Linux temporarily, and some things will be deleted by mistake

terms of settlement

First, solve how to enter win 10

Solution: first find your startup file location

The search method is:

1. Enter firstlsCommand to query disk status

As shown in the above figure, (HD0, gpt1) (HD0, gpt2) (HD1, gpt1) (HD1, gpt2) and so on will appear

Where: HD0 represents disk 0 and gpt1 represents partition 1

2. Then pass the commandls (hd1,gpt1)To view disk information:

If information such as filesystem type fat and UUID xxxx-xxxx appears in a partition, the partition is likely to be a startup item

3. To further determine, you can use the command:ls (hd1,gpt1)/

[this command can query the folder name under the partition. You can use this method to determine which partition is your disk]

If only one EFI / xxx folder appears when you find a partition, you will find the boot item partition

For example, you can find the partition in (HD1, gpt1) or (hd1,1)

4. Then execute the following commands in turn (if one of the two commands fails, use the other. If neither of them fails, you may find the wrong disk)

set root=(hd1,gpt1)
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot

perhaps

set root=(hd1,gpt1)
chainloader +1
boot

If a command error occurs during execution, you may have found the wrong partition, or this method is not suitable for you

5. Then, you can enter the win10 system, but don’t be happy too early. You may have to enter the above commands every time you start

Deleting the Ubuntu system directly and safely can solve the problem

[since win10 can be accessed here, there must be a better solution. I just don’t want to use Ubuntu and choose to delete it]

Safely delete Ubuntu system

First, fix the win 10 startup item just in case

Fix win 10 startup

1. DownloadMbrFix64.exeExtraction code: j2aj

2. The administrator runs the CMD command prompt

3. Switch to the folder where mbrfix64.exe is located

image

[the operation of this step can also be as follows: enter the corresponding folder, select a file, and right-click DOS to open it

The premise is that firstRight click to add DOS commandExtraction code: 1eh5]
4. Then enter the command

MbrFix64.exe /drive 0 fixmbr

5. Follow the prompts to enter: y

If no error message is prompted, the repair is successful

If the prompt operation fails, you need administrator privileges to run CMD

Delete Ubuntu boot entry (EFI)

1. Open CMD with administrator privileges

2. View disk:list disk

3. Select the disk where your system is located:Select disk [disk serial number]

4. View partition:list partition

image

5. Select a zone of type system:Select partition [partition serial number]

6. Assign a free drive letter P to the selected drive letter to mount the partition:assign letter=p

image

At this time, there will be an additional disk P in the computer

image

But this disk is not easy to access directly. Here is a command access method

[here is another trick to open: first open notepad with administrator privileges, then enter Disk P through the [open] option of Notepad, and then delete the Ubuntu folder]

Note: don’t turn off the CMD just now, and open another CMD (with administrator privileges)

7. Enter in sequence in the new CMD

p:
dir
cd EFI
dir

image

I’ve deleted it here, otherwise you’ll see an EFI folder and a Ubuntu folder

8. Execute the command at this time

rd /s /q ubuntu

Delete succeeded

You can dir confirm whether to delete some

Turn off this CMD

8、Go back to the previous CMD, enter

remove letter=pRemove the drive letter (if it is not removed, it will disappear automatically after restarting the computer)

Delete Ubuntu partition

[if you can delete the partition with the built-in disk management of win 10 first, it is also possible to delete the startup item through the above method]

The problem I encountered was that the Ubuntu partition cannot be deleted from the win10 built-in disk partition, so I used the Aomei partition assistant

Here, it is recommended to use:Aomei partition assistantExtraction code: 3qv9
The use of Aomei is relatively simple. I won’t talk about it here.

Finally, the problem is solved successfully. If nothing happens, you won’t lose anything in win 10