Ubuntu system Startup Repair

Source: Internet
Author: User

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

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.