How to fix Grub

Source: Internet
Author: User

In this way, there will be no trace of grub in the main guide. How does one guide Linux at this time? Leading Role appearance: How to fix Grub. If you have used a variety of dostoolbox to install a hard drive boot dos boot disk for Windows), you must be familiar with grub4dos. The core of grub4dos is a grldr file.

Nonsense:
Download grud4dos with thunder. The address is in dig? You cannot see the c root directory boot. ini. Click Tools> folder option in the menu bar of the resource manager, and click View. The following is an option for Advanced Settings: Hide the protected

How to fix Grub Operating System File recommendation), remove the preceding check box, and add a line at the end of boot. ini:
C: \ grldr = linux boot
Grldr searches for the menu. lst file in the C root directory.

Next we went to menu. lst. use NotePad to Open menu. lst and set the vmlinuz and initrd paths, which generally look like this:
Title Red Flag Linux
Root (hd0, n) # [here, hd0 is the partition where you put linux on the first hard disk and n is the first partition in linux]
Kernel/boot/vmlinuz ro root = LABEL =/
Initrd/boot/initrd. img
Boot

What may be uncomfortable: After the kernel is updated, You need to manually synchronize the menu. lst content of drive C of Windows. Otherwise, the new kernel cannot be started.
The solution to solving Grub is very simple. grub is very powerful and supports a configfile command:
Change menu. lst in the root directory of your C drive
Timeout 5
Configfile (hd0, 6)/grub/menu. lst
In this way, grldr will reload menu. lst in the (hd0, 6)/grub directory to display the menu. lst Startup menu.
Great! If you update the kernel, you do not need to modify anything in Windows. You are not afraid of reinstalling the system. You only need two files grldr and menu. lst) to modify the boot. ini file. Everything is OK.
You do not want to select twice to enter linux. You can modify the timeout of menu. lst in the C root directory to 00.

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.