Reload win fix Ubuntu boot

Source: Internet
Author: User

//------------------------------------------------------------------------------------------------------------- ------------------------


After reloading the system, Ubuntu boot on the boot screen is missing and goes directly to the newly installed window system. Here's how to restore the Ubuntu boot method:

1) Prepare an Ubuntu system installation disk;

2) put the Ubuntu system installation disk into the CD-ROM drive, restart the computer, enter the BIOS, the boot is set to the CD-ROM (cd/rom) boot mode,//or fast startup items, restart the BIOS after the trouble

3) Then save the settings to exit, wait a moment to enter the Ubuntu installation interface, there are two options

1. Try the Ubuntu system on the CD

2. Install the Ubuntu system on the computer

Select "Try Ubuntu system on this disc" and enter the Ubuntu system to open the terminal (shortcut key combination is ctrl+alt+t);

4) Enter sudo-i under terminal (Get Administrator privileges)

5) under terminal input fdisk-l (is lowercase letter ' l ', view disk list characters)

A message similar to the following will appear:

disk/dev/sda:320.1 GB, 320072933376 bytes

255 heads, Sectors/track, 38913 cylinders

Units = Cylinders of 16065 * 8225280 bytes

Disk identifier:0x70f7ab9c

Device Boot Start endblocks Id System

/DEV/SDA11 1627 13060096 Unknown

Partition1 does not end on cylinder boundary.

/dev/sda2* 1627 1639102400 7 Hpfs/ntfs

Partition 2 does not end on cylinder boundary.

/dev/sda31639 8166 52429859 7 hpfs/ntfs

/dev/sda48167 38913 246975277+ 5 Extended

/dev/sda58167 32385 194539082+ 7 hpfs/ntfs

/dev/sda632386 38788 51432066 Linux

/dev/sda738789 38913 1004031 for Linux Swap/solaris

Then find the letter ID 83, according to the information shown above, when the fashion Ubuntu is installed in Sda6 this partition.

6) in terminal input mount/dev/sda*/mnt

(* represents the partition on which the Ubuntu system is located, that is, the previous step shows the partition number with ID 83 in the result, as shown above in Sda6 this partition,

So the input is mount/dev/sda6/mnt .

Note: There is a space behind mount, there is a space behind the SDA6, the two spaces must not be missed, otherwise it will be an error.

7) After the previous step is finished, continue entering Grub-install--ROOT-DIRECTORY=/MNT/DEV/SDA in the terminal

Wait for a while, if the Installationfinished,no error reported indicates success

(Note: There is no space between Grub-install,--root Front has a space,--root front is two '-',/mnt behind a space)

8) to this, Ubuntu boot basic recovery, restart the computer, you can see the familiar Ubuntu boot interface, enter the Ubuntu system, open the terminal input

sudo update-grub /* is recommended with sudo update-grub2, pro-test sudo update-grub boot interface is the old version, not as good as the purple version. */

Wait a moment to display the following information:

Generating grub.cfg ...

Found Linux Image:/boot/vmlinuz-2.6.31-20-generic

Found initrd Image:/boot/initrd.img-2.6.31-20-generic

Found memtest86+ Image:/boot/memtest86+.bin

Found Windows Vista (loader) on/dev/sda1

Found Windows 8 (loader) on/dev/sda2

Done

The resumption of work was all done.


//------------------------------------------------------------------------------------------------------------- ------------

Reload win fix Ubuntu boot

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.