Ubuntu boot fix after reloading Win10

Source: Internet
Author: User

Problem Description: The original is installed in the Win7 under the Ubuntu14 dual system, the background win7 for WIN10, and then use EASYBCD for boot item repair, not so, reported

error file:/boot/grub/i386-pc/normal.mod not found.

The way to add boot items using EASYBCD can be referenced by: https://jingyan.baidu.com/article/1876c852942fea890b13760b.html

  

Since EasyBCD adds a guide that doesn't work, let's see how to solve my problem. My main reference is this blog: http://blog.csdn.net/paladinosment/article/details/29179721

Specific to:

1, in the Grub Rescue command line under the LS command to view the drive letter situation, there can be many disk characters, similar

(hd0) (HD0,MSDOS9) (HD0,MSDOS8) (HD0,MSDOS7) (HD0,MSDOS6) (HD0,MSDOS5) (HD0,MSDOS1)

Next you need to confirm which disk character The grub file is in, in fact, to confirm which drive is the/boot partition, take my case as an example:

LS (HD0,MSDOS8)/grub

If you print out some file information, the description is found, if not, you will not find the file error, you need to continue to try a drive letter

2. Set the environment variable after the drive partition is determined

Under the Grub Rescue command line, enter:

Set boot= (HD0,MSDOS8)

Set prefix= (HD0,MSDOS8)/grub

Insmod Normal

Normal

Input Normal, will enter the Ubuntu guide, My luck is better, directly can enter the system, if not to enter, please refer to the above blog processing

  

3. Grub Setup is required after entering the system

sudo update-grub

sudo grub-install/dev/sda

  

4, now become Ubuntu Grub Boot Win10,ubuntu is the default entry, if you need to change WIN10 into the default system, do a bit of configuration:

sudo vim/etc/default/grub

      

        The default is 0, which is Ubuntu, which modifies the order of WIN10 entries, which I am 4.

Update configuration after: sudo update-grub

Ubuntu boot fix after reloading Win10

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.