Win7 and Ubuntu12.04 dual system reload win7 boot problem

Source: Internet
Author: User

Reload system, resulting in the original ubuntu12.04 and Win7 dual system guidance is missing, so here is a description of how to repair.

1. Win7 and ubuntu12.04 dual system boot Repair

Problem Description:

After reloading the Win7, the boot found that the original Ubuntu 12.04 (U disk installation) Guide was gone, but directly into the Win7 system.

Problem Reason:

Initially thought is being formatted, the process of installing Ubuntu again, the above is prompted to install Ubuntu, and then online check the relevant information, the original is to guide the problem.

Workaround:

1 through the Universal-usb-installer software for Ubuntu USB disk installation production, already have some can skip this step;

2 set the BIOS to allow the computer to start via U disk, the general situation is HDD xxx that option;

3 Select the Try Ubuntu option, into the U disk's Ubuntu trial system;

4 Open the terminal, enter the command, add the source of the Boot-repair:

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update

5 after the execution of the above command, continue to enter the following command, install Boot-repair and open the Boot-repair:

sudo apt-get install-y boot-repair && Boot-repair

6 Waiting for Boot-repair to open, will pop up a box, this time, select recommended repair to repair, the repair process, will pop up several network connection prompts, sometimes not really disconnected, just a consultation, we click to confirm and continue to execute can ;

7 If the above has been executed successfully, you can skip this section, otherwise, we can enter the command to repair themselves:

sudo recommended repair

8 after the success, it will pop up the various information of our disk and guide the information.

2. Delete boot entry

Problem Description:

After reloading, found that a few more useless win7 boot options, checked in will report don't know what missing error, completely useless, unsightly, want to delete

Workaround:

Note: grub.cfg files are regenerated because the order in which the boot entries are modified, so if you want to modify the boot entry, please modify it before deleting it.

1 Open the terminal, execute the command to open the Grub configuration file for modification:

sudo gedit/boot/grub/grub.cfg

2 Search through the keyword menuentry to find the boot entry we want to delete, such as the Windows 7 (loader) (ON/DEV/SDA2) that I want to remove

3 After you find the boot items that you want to hide, you can simply comment them out by using the #:

4 Save Our changes, restart we can find that we want to remove the guide to the missing! ^_^

3. Modify the boot entry order

Problem Description:

The more people use in the dormitory is window 7, and its startup in the fifth, each boot to look at it to the boot interface and then desperately press down to choose to enter, very troublesome

Problem Reason:

By default Win7 corresponds to the filename is 30_os-prober, the first Linux system corresponds to 10-linux,00 is header,05 is debian-theme, visible 10 is the first startup item, only need to change the Win7 file name ( 06-09 can change the boot sequence, also say, change the file name under the/ETC/GRUB.D directory is feasible

Workaround:

1) Execute the following command to modify the filename:

sudo mv/etc/grub.d/30_os-prober/etc/grub.d/08_os-prober

2 Execute the following command (This command will regenerate/boot/grub/grub.cfg):

sudo update-grub

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.