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