Home > System Tutorial > LINUX > body text

How to uninstall a Linux dual-boot system

王林
Release: 2024-02-09 23:57:23
forward
916 people have browsed it

If you installed Linux on its own partition in a dual-boot configuration, there is usually no simple uninstaller that can remove it for you. Instead, you may need to delete its partition and repair the Windows bootloader yourself.

卸载 Linux 双引导系统的方法

How to uninstall Linux depends on how you installed it. If you installed Linux as your only operating system, you must reinstall Windows over Linux to restore your Windows system.

If you use Wubi to install Linux

If you have Ubuntu or a similar Linux distribution installed, such as Linux Mint with Wubi, uninstalling is easy. Just start Windows and go to Control Panel > Programs and Features.

Find Ubuntu in the list of installed programs and uninstall it like any other program. The uninstaller automatically removes Ubuntu files and bootloader entries from your computer.

卸载 Linux 双引导系统的方法

If you install Linux to its own partition

If you installed Linux to its own partition in a dual-boot configuration, uninstalling it requires deleting the Linux partition from your computer and then extending your Windows partition to use the now available hard drive space. You must also restore the Windows boot loader yourself because Linux overwrites the Windows boot loader with its own boot loader (called "GRUB"). After deleting the partition, the GRUB boot loader will not be able to boot your computer correctly.

卸载 Linux 双引导系统的方法

Let's take a closer look at how to accomplish all of this.

Step 1: Delete your Linux partition
First, you need to delete the Linux partition. Start by booting into Windows. Press the Windows key, type "diskmgmt.msc" in the Start menu search box, and then press Enter to launch the disk management application.

卸载 Linux 双引导系统的方法

In the Disk Management application, find the Linux partitions, right-click them, and delete them. You can identify Linux partitions because they have no label under the "File System" column, whereas Windows partitions will be identified by their "NTFS" file system.

Be careful when deleting partitions here - you don't want to accidentally delete a partition that has important files on it.

卸载 Linux 双引导系统的方法

Next, find the Windows partition near the new free space, right-click it, and select Extend Volume. Extend the partition so that it takes up all available space. Any free space on the hard drive will remain unavailable until you assign it to a partition.

If you wish, you can also choose to create a new separate partition instead of extending your current Windows partition.

卸载 Linux 双引导系统的方法

Step Two: Repair Windows Boot Loader

Linux is now removed from your computer, but its bootloader remains. We need to use the Windows installer disc to overwrite the Linux bootloader with the Windows bootloader.

If you don't have a Windows Installer CD, you can create a Windows Repair CD and use it. Follow our instructions to create a system repair disc in Windows 8 or 10 or create one in Windows 7.

卸载 Linux 双引导系统的方法

Insert the Windows Installer or recovery disc into your computer, restart your computer, and then boot from the disc. You will access the command prompt from the recovery environment. We cover Windows 10 here, but these instructions apply to Windows 8 as well. If you're using Windows 7, check out our guide to accessing the recovery command prompt using a Windows 7 disc.

After booting from the installation or recovery disc, skip the initial language screen and click the "Repair your computer" option on the main installation screen.

卸载 Linux 双引导系统的方法

On the Select an option screen, click the Troubleshoot option.

卸载 Linux 双引导系统的方法

On the Advanced Options screen, click the Command Prompt option.

卸载 Linux 双引导系统的方法

At the command prompt, type the following command and press Enter:

bootrec.exe /fixmbr
Copy after login
卸载 Linux 双引导系统的方法

You can now restart your computer. It will boot from its hard drive, starting Windows normally. All traces of Linux should now be wiped clean.

The above is the detailed content of How to uninstall a Linux dual-boot system. For more information, please follow other related articles on the PHP Chinese website!

source:lxlinux.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!