How to solve the problem of failure to start Ubuntu and grub information loss caused by Windows reinstallation

Source: Internet
Author: User

After windows was reinstalled, I did not care about my ubuntu. As a result, Windows overwrites the startup information and does not want to reinstall ubuntu. According to the experiment on the Internet,

The steps are as follows:

 

1. Create liveusb

Although livecd is written in many places, it is obvious that the USB flash disk is more convenient. Therefore, liveusb is recommended. Of course, the effect of livecd is the same. Liveusb requires at least MB of data to be saved. Of course, the current USB flash drives are very large and the capacity is not a problem. Liveusb mainly uses the "USB Startup Disk creator" function provided by ubuntu. Therefore, you can create an Ubuntu Virtual Machine on Windows and create it on the virtual machine, you can also create an Ubuntu host from another user, which is very convenient.

 

A. After the USB flash drive is inserted, start "system/Administration/USB Startup Disk creator" in the toolbar"

B. Click the other button and select the Ubuntu ISO image file. Your USB flash drive is correctly displayed in "disk to use.

Select the default "stored in reserved extra space" and drag the storage space below. The minimum size is 128 MB, and the maximum size is the size of the USB flash disk minus the ISO size.

Click format to format the USB flash drive.

Click "make Startup Disk" to start production. After the installation is complete, liveusb is ready.

 

2. liveusb boot System

A. Use liveusb to restart the computer and select the language menu (of course, we usually select "simplified Chinese ").

B. Select "Try Ubuntu without changing anything on the computer" in the menu that appears ".

C. Open a terminal after the system is started

 

3. Fixed grub Information

A. run $ sudo fdisk-L to find the root directory partition number of your installed Ubuntu system from the list.

B. Mount your root directory to the current system. For example, the partition of your root directory is/dev/sda2:

Mkdir/mnt/root

Mount-T ext3/dev/sda3/mnt/root

C. Fix windows-covered grub startup information by re-installing:

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

D. restart the system to view the menu selected for Ubuntu and Windows startup.

 

 

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.