How to delete Grub boot after the Linux uninstallation

  

I want the system to boot directly to Windows, there is no Linux Grub (or LILO) boot interface (Solution 1~3), or it is not correct after deleting the Linux partition in Windows. Start Windows and stay at the “grub>” prompt, what should I do? (Solution 4)? Look down, here are a few practical ways to get you:

Solution 1

Use the DOS command fdisk to restore the main boot sector MBR (Main /Master Boot Record)

--- Use win98 boot disk or DOS boot disk to boot the system to a pure DOS prompt, execute: " Fdisk /mbr"

Solution 2 In a Linux system, restore the MBR. (If you can still log in to the Linux system)

--- At the command prompt of the terminal, type: "dd if=/boot/boot.NNNN of=/dev/hda bs=446 Count=1"

Note that bs(buffer size) refers to the number of bytes rewritten. Why isn't 512? The main boot sector is a sector (512 bytes) because we just want to fix the system MBR boot or delete the Grub/LILO boot through the fan command; instead of restoring the entire master boot sector. So we only rewrite the first 446 bytes of the backup file boot.NNNN of the primary boot sector to the primary boot sector. boot.NNNN is the backup of the entire primary boot partition before we installed Linux. If we write all 512 bytes to the main boot sector, it may destroy the hard disk DPT table that has been changed after installing Linux. That's a bad thing!!! (The first 446 bytes of the MBR's 512 bytes are the bootloader, followed by the next 64 bytes for the partition table, and the last 2 bytes for the end tag)

Solution 3

If your fdisk is not good, or if Linux is already upturned, don't worry, God closes all the doors, but he will leave a window for you. The tools below can help. You:

Clear MBR 0.9:clsmbr.exe

---Run directly to execute “Clear MBR”, I have tested it, it is absolutely safe, please feel free to use it.

Solution 4

The Linux partition has been removed from Windows and stopped at the “grub>” prompt after the system boots. (Method 1: Follow the Solution 1 method, Method 2: below)

--- At the “grub>” prompt, type: <;rootnoverify (hd0,0)” Enter. //Set the first partition (0) of the first hard disk (hd0) as the root partition/root device, but do not load the file system.

--- At the “grub>” prompt, type: <;chainloader +1” Enter. //Transfer the bootstrapping authority to the first sector of the current partition (the first sector of the partition where the Windows system is located).

--- At the “grub>” prompt, type: <;boot” Enter. The system will start Windows. If it is unsuccessful, it means that (hd0,0) is not the partition where the Windows system is located, and then try the first step from the first step (root (hd0,1)/root (hd0,2)/root (hd0,3)/.. .”, in short, this will definitely boot your Windows system.

--- Well, enter Windows, please use Solution 3 method, easy to get!

Copyright © Windows knowledge All Rights Reserved