Retrieving the method of Grub2 covered by Win 8 guide

  
                                    

After installing Windows 8, grub will be overwritten, and many methods are useless. The Grub command line in the PE CD I used does not recognize the files in the Linux partition. The display is all garbled. Had to be a bootable USB flash drive for Grub2.

First of all, you need a Linux system to install Grub2 on a USB flash drive. I installed a Ubuntu12.04 in the virtual machine temporarily because there is just a mirror on hand.

First make sure that your U disk can boot from MBR, not sure you can format it under Linux, choose MBR mode, I use Ubuntu that comes with the formatting tool.

Note that you must unmount before formatting.

Create a new partition after formatting.

Then execute sudo grub-install --boot-directory=/media/u --recheck /dev/sdb

u is the name of the mount folder, sdb is the device name.

No error returning is the installation is complete.

Then restart the computer and boot from the U disk to enter the Grub command line.

The commands of Grub2 and Grub are different, so I can go and see it myself. I won't say it.

According to the information found online, I set the root and load the kernel with linux, load the memory disk with initrd and then boot. . . .

Unfortunately, this should be Linux in the memory disk, not Ubuntu on the disk, I am not sure, I hope the master knows why this is not possible.

The information on the Internet may be old, and you can only rely on yourself. Turned over the Grub2 manual and found the normal [FILE] command, which is to load the Grub2 menu.

This is easy, as long as the original boot menu is loaded, it should be properly guided.

set root=(hd0,4)

normal /boot/grub/grub.cfg

Then you will come out with the familiar Grub boot menu!

Copyright © Windows knowledge All Rights Reserved