Perfect solution for failure to start Ubuntu after Windows 7 is installed

Source: Internet
Author: User
Because the Windows Startup manager cannot identify the linux system, installing the linux system first and then Windows 7 will cause the problem of linux Startup failure. After trying for a long time tonight, I finally helped my colleagues solve the problem that once plagued me. The solution is as follows: 1. Start livecd with the CD for Ubuntu installation (that is, try Ubuntu) 2. Open the terminal and enter the sudo-ifdisk-l command (note the letter l, not number 1) 3. Check the terminal information and remember

Because the Windows Startup manager cannot identify the linux system, installing the linux system first and then Windows 7 will cause the problem of linux Startup failure.

After trying for a long time tonight, I finally helped my colleagues solve the problem that once plagued me.

The solution is as follows:

1. Start live cd with a cd for Ubuntu installation (that is, try Ubuntu)

2. Open the terminal and enter the command

Sudo-I

Fdisk-l (note that it is the letter l, not the number 1)

3. Check the terminal information and remember the partition where your Ubuntu system is installed (if there is a root partition, record it ).

4. If your Ubuntu/partition is sda7 and the/boot partition is sda6, enter

Mount/dev/sda7/mnt

Mount/dev/sda6/mnt/boot (skip this step if no/boot partition is available)

Grub-install -- root-directory =/mnt // dev/sda

Exit

Restart

The grub option may appear after restart, and the problem is fixed. You don't need to check the following.

Or

Grub>

Not moving after

Enter the command

Kernel/boot/grub/core. img

Boot

Then you can start the Ubuntu system.

After entering the Ubuntu system and connecting to the Internet, go to the Neide Software Package (system-management-Neide software package) and mark the installation of grub-pc

Next, open the terminal

Sudo-I

Update-grub2

OK!

Related Article

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.