Notes on deleting a Linux System in Windows

Source: Internet
Author: User

Notes for deleting a Linux System in Windows: 1. delete a linux system directly in windows, but the original linux partition is not formatted as NTFS. 2. delete a linux system directly in windows, directly format the original linux partition in NTFS format. 3. correct methods to delete the linux System in the windows directory. Many users may want to delete the linux system on Dual-system machines, but only use the windows system, "grub rescue" may occur when windows directly deletes the linux system during restart. To restore the system, you can delete the linux system directly in the following two cases, however, if the original linux partition is not formatted as NTFS, there are two ways to recover the disk: Idea 1: If a windows installation disk exists, you can use the windows installation disk to restore the windows boot record, this is more important. Use a Windows installation disk to directly use bootrec.exe: Put the Windows Vista or Windows 7 installation disc into the disc drive, and then start the computer. When prompted, press any key. Select the language, time, currency, keyboard, or input method, and then click Next. Click repair on your computer. Click the operating system to be repaired, and then click Next. In the system recovery Options dialog box, click a command prompt. Click bootrec.exe and then press ENTER. Idea 2: If you do not have a windows system to install the disk, first restore the boot item, enter the windows system, and use the mbrfix tool to repair the windows Boot Record: 1. Start the machine because the grub boot record cannot be found, will enter grub rescue mode. 2. In grub rescue mode, only a few commands can be used: set: to view the environment variable settings of the root and prefix directories. Root: Specifies the start partition variable. Prefix: the prefix of grub boot. Ls: View devices. Insmod: unveiling module. (1) Use ls to find the grub boot partition grub rescue> ls (hd0) (hd0, msdos1) (hd0, msdos3) (hd0, msdos4) (hd0, msdos5) grub rescue> ls (hd0, 1)/error: unknown filesystem grub rescue> ls (hd0, 4)/found/boot partition, that's it, check grub rescue> ls (hd0, 4)/boot. The/grub directory is found:-(2) set the startup variable and start grub rescue> set root = (hd0, 4) grub rescue> set prefix = (hd0, 4)/boot/grub Note: This command must be consistent with the actual situation, you can only use ls to locate the grub partition and then set the prefix variable grub rescue> insmo D/boot/grub/normal. mod or insmod normal insmod can be executed before the following normal command is executed. Otherwise, the prefix may be incorrectly set. Grub rescue> after normal execution is successful, grub is added. (3) directly run the boot command at this time. If the boot item is successfully entered, go to windows. Otherwise, you must reconfigure grub: grub> set root = (hd0, 4) grub> linux/boot/vmlinuz ...... ro text root =/dev/sda4 # Set grub> initrd/boot/initrd ...... # Set grub> boot according to the actual situation. Now you should see the startup option. Go to windows System (4) and go to windows system. Use mbrfix to fix the problem: the mbrfix tool is www. sysint. after downloading a file developed by no, run the file with the super administrator permission: mbrfix/drive 0/win7/yes. Note: Because Windows 7 is used (more specifically, Windows 7 is fixed ), so use the/win7 option. If it is xp or/vista, check the instruction file and change it to the appropriate option. If no error is displayed, it indicates that it is successful (if it is successful, nothing will be returned ). At this time, restart the machine and go directly to the windows system. The grub boot records are missing. II. If windows directly deletes the linux system and directly formats the original linux partition to the NTFS format, there are two methods to restore the disk: Idea 1: If windows is installed, there are more aspects. For detailed steps, refer to the above descriptions. Idea 2: Install a linux instance on an additional mobile hard disk. During installation, you will find the windows boot record. After the installation is complete, restart and enter the windows system. For the next steps, refer to the above introduction. Correct Way to delete a linux System in windows: 1. Use mbrfix to fix boot records. 2. Delete the linux partition.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.