Wubi installed Ubuntu into grub during boot, the solution cannot enter the system

Source: Internet
Author: User
Tags wubi

First

Ls

 

List disk partition information

For example, my thinkpad t400 r84 has a built-in 2G messaging disk, which is as large as the following

(Hd0) (hd0, 4) (hd0, 3) (hd0, 2) (hd0, 1)

Hd0, x represents my four partitions, And I installed them on the d: disk. The corresponding hd0, 2

Input

Set root = (hd0, 2) Press ENTER
Loopback loop0/ubuntu/disks/root. disk press ENTER
Set root = (loop0) Press ENTER

 

Now you need to find your current kernel version, the way is to enter cat/boot/vml directly press the tab key to bring out the file name, then my version is/boot/vmlinuz-2.6.31-14-generic-pae

PS: When I upgrade ubuntu to vmlinuz-2.6.31-21-generic-pae, this problem occurs, and now my machine only mlinuz-2.6.31-14-generic-pae is can enter normally

 

After confirming the version, enter

Linux/boot/vmlinuz-2.6.31-14-generic-pae root =/dev/sda2 loop =/ubuntu/disks/root. disk press ENTER
Initrd/boot/initrd. img-2.6.31-14-generic-pae press ENTER

 

The version of initrd. img-2.6.31-14-generic-pae in line 2nd should be consistent with vmlinuz by pressing the tab key cat/boot/initr

Last Input

Boot press ENTER

Start boot. If an error occurs, the problem usually occurs on the root =/dev/sda2 device. You only need to modify sda2 to (sda1, sda2... sda5), My partition is the partition 2 of the hard disk except the communication disk, so it is sda2

PS: Because wubi is installed to virtualize the image to the disk, the sda, sda1, and sda2 cannot be found in the/dev/directory in the grub environment.

 

After successful boot, enter the terminal

Sudo update-grub2 press ENTER
Sudo mkdir/host/ubuntu/install/boot/grub press ENTER
Sudo cp/boot/grub. cfg/host/ubuntu/install/boot/grub/press ENTER

 

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.