Ubuntu system boot Failure situation, the system will enter the Grub rescue mode, the following prompt appears on the computer:
Grub Rescue>
First, execute command LS to view the current hard disk. The results may appear as follows:
(hd0,1), (hd0,5), (hd0,3), (hd0,2)
Then find all of the above partitions, find the location of the boot folder, how to do: Execute the command sequentially
Grub Rescue>ls (hd0,x)/
where x represents the 1,2,3,5 in the above command. The files and directories under each of these partitions will be listed.
If the boot directory exists for partition X, do the following
Grub Rescue>set root= (hd0, x) # set root grub rescue>set prefix= (hd0, x)/boot/grub# set grub directory, if it is boot separate partition, the above command should become set Prefix= (hd0, X)/grub grub rescue>set vmlinuz=/vmlinuz># Settings Vmlinuz grub rescue>set initrd=/initrd# Settings initrd Grub Rescue>insmod Normal grub rescue>normal# into the proper boot interface
Should be able to enter the familiar graphical start-up interface ~
It is important to note that some of the introductions say Grub rescue are as follows:
Grub Rescue>set root= (hd0,5) Grub Rescue>set prefix= (hd0,5)/boot/grub Grub rescue>insmod/boot/grub/ Normal.mod Grub Rescue>normal
However, in the course of the author's operation, the above command
Grub Rescue>insmod/boot/grub/normal.mod
cannot be done. Reference connection: http://forum.ubuntu.org.cn/viewtopic.php?f=139&t=348503
Re-install grub under migrated Ubuntu
Go to Ubuntu and perform the operation under Ubuntu system
sudo update-grub sudo grub-install/dev/sda
Ubuntu system Startup Repair