Use the German INSERT system emergency drive to quickly repair the GRUB startup Manager
Source: Internet
Author: User
Use the German INSERT system emergency drive to quickly repair GRUB boot Manager-general Linux technology-Linux technology and application information. The following is a detailed description. Overview
Windows and Linux dual-system or multi-system users will encounter the problem that MBR is overwritten by Windows when Windows is reinstalled, leading to the disappearance of the original boot menu, you must reinstall and set GRUB as the default start manager. Generally, we use a CD and other repair disks for operations. The following describes how to use the German INSERT system emergency disk to repair the GRUB startup manager. after use, it feels simple and fast, and the repair effect is very good.
The goal of the INSERT (the Inside Security Rescue Toolkit) is to become a versatile, multi-purpose accident repair and network analysis system. It runs from a long credit card-sized disc, which is easy to carry and download and is basically a simplified version of Knoppix. INSERT now uses the ntfs-3g to provide full read/write support for NTFS partitions.
INSERT is a complete, bootable linux system. It comes with a graphical user interface running the fluxbox window manager while still being sufficiently small to fit on a credit card-sized CD-ROM.
Repair practices
Note: This repair process applies to the configuration file of the original grub, and the Linux kernel in the boot partition is not damaged. Otherwise, you need to fix these problems before performing the repair process.
1. Burn the INSERT system disc and set the machine to be started;
2. Enter the INSERT desktop environment and open a root shell;
3. Run grub, enter the grub> interaction window, and then run the following command:
Find/boot/vmlinuz ----- this command is used to locate the boot partition where the kernel is located. If you know it in advance, you can directly go to the next step;
Grub> root (hd0, 2) ----- find the boot partition and set the "root directory" of grub ";
Grub> setup (hd0) ----- copy the stage1 and 1.5 startup files of grub to the corresponding location of the hard disk MBR and boot partition;
(Hd0, 2) represents the third partition of the system's first hard disk.
System guidance principle reference
1. Load basic boot loader, which is usually the first step. The basic Boot Loader must be in a very small space in the primary Boot Sector, less than 512 bytes. Therefore, the only thing the basic bootstrap loader does is to load the second bootstrap loader. This is mainly because there is not enough space in the primary Boot Sector for other things.
2. Load the second boot loader, which is usually called Step 2. This second bootstrap loader actually introduces more advanced features that allow users to load into a specific operating system. In GRUB, this step allows the user to display a menu or enter a command.
3. An operating system loaded on a specific partition, such as the Linux kernel. Once GRUB receives the correct command from its command line or configuration file to start the operating system, it will find the necessary boot file and hand over control of the machine to the operating system.
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