Windows+ubuntu dual system, reload windows after starting Ubuntu failed

Source: Internet
Author: User

dual system, restart Linux failed repair method after Windows reload
I. BACKGROUND

These days will WINDOWS10 32-bit upgrade to 64-bit (in fact, the reload, the incremental upgrade should not be implemented, if there is a way to leave a message), the use of EASYBCD to add Linux Startup items after the selection of Linux boot, in the black screen, only one cursor in the flash, no text, The first time I encountered this situation, I panicked, although tossing two systems experienced a variety of egg pain problems, but Linux is always able to go in, at least to enter a grub rescue mode. The egg-ache repair attempt began.


Second, the correct method:How to retrieve Linux Startup items after dual system reload Windows
Third, the wrong try + fix Grub method

1. Use EASYBCD to add a Linux boot entry, find the Linux installation disk, add boot boot options, restart, select this option, enter after the black, there is no character hint.

2. After many attempts, it still fails. In the Windows interface, use the hard disk to install the Linux method (without the created Ubuntu bootable U disk), enter the try Ubuntu system, enter the following command in the command line:

sudo Update - Grub

sudo grub-Install/Dev/SDA


Restart the system, the boot can see the Grub boot interface, then success, if not yet into the Linux system, continue to look below. The egg hurts. I only entered the first command, did not run the second command, after startup or only into the black screen.

But there is a change that is able to see the grub> hint. Originally thought is done, because this field familiar and ripe, considers is my knowledge shallow.

3. Find a variety of methods to repair grub online. such as:Grub Rescue repair, young or more toss
Found at all can not be executed, originally they have a rescue typeface, two different patterns. The commands that are executed must be completely different.

And at this time has been no longer into the Windows system, can not play hard disk installation of Linux tricks, there is no U disk to use, can only bite the bullet to play grub.

4. Find a variety of repair methods in grub mode and test the possible method: start the Linux operating system from the GRUB command line.

The following is the final command of my system, but do not copy (of course, there will be no more serious consequences, or can not start), imitation can:

grub> Root (hd1,5)

grub> Kernel (hd1,5)/vmlinuz ro Root=/dev/hda

grub> initrd/boot/initrd-xxxxx.img

grub> Boot

The above command has a space to increase the gap, the actual as long as the input of a space, no space where there must be no space!!

5. Detailed steps.

A) to find the value of each parameter above the command, you can use the TAB key, the first command to enter the root (HD->tab key, the system lists the hard disk in a series of computers, select the hard disk on which Linux is located, such as root (HD1, and then press TAB to list the disk partitions on the hard disk, Select the partition number where Linux is located, such as Root (hd1,5). At this point, the first command has been executed and continues.

b) on the basis of the previous step, enter: Kernel (hd1,5)/vmlinuz ro Root=/dev/hda

Where Root=/dev/hda HDA is the disk I need to install grub (I have two hard drives, if needed to install to another piece of hard disk select HDB, others etc).

(hd1,5)/vmlinuz is the Vmlinuz file in the Linux installation disk in the previous step. RO is read-only mode

c) Enter initrd/boot/initrd-Press the TAB key to find the latest system image xxx.imgd) boot starts booting the system and enters the Linux system. If you still can't start repeating the steps above, you know you can. e) Not done yet, restart again or repeat the above steps, so you need to run the following command after entering Linux: sudoupdate-Grub sudo grub -Install/Dev/SDA


This article is to record their own bug fix Journey, mainly describes the grub mode of repair, normal as long as the correct way to operate.




Windows+ubuntu dual system, reload windows after starting Ubuntu failed

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.