Win7,ubuntu Dual System-How to restore Ubuntu boot after reloading Win7

Source: Internet
Author: User

Disk partitioning--windows 7 with partition tool implementation  Disk partition--PQ hard disk partition magician  Win7,ubuntu installation of dual systems--Formal installation  Win7,ubuntu installation of dual Systems--Uninstall Ubuntu

Tell me about my win7,ubuntu dual-system use history, now encountered " re-install Win7 after how to restore Ubuntu boot ", especially recorded, for later review:

Reference: http://www.cnblogs.com/dolphin0520/archive/2012/03/11/2390175.html

After reloading the system, Ubuntu boot on the boot screen is missing and goes directly to the newly installed window system.

What to do?

the way I do it

First, the preparatory work:

to the link:

Win7,ubuntu Dual System Installation--preparation work

Ah

Find: Prepare file: address one

Download the prompt file and unzip it to c:/ .

Download Ubuntu iso file, I'm using ubuntu-12.04.1-desktop-i386.iso

If this is not the version of Ubuntu, do the following:

Edit the file named Menu.lst with the content:

Title Install Ubuntu
Root (hd0,0)
Kernel (hd0,0)/vmlinuz boot=casper iso-scan/filename=/ubuntu-12.04.1-desktop-i386.iso ro quiet splash locale=zh_cn. UTF-8
INITRD (hd0,0)/initrd.lz

Change Ubuntu-12.04.1-desktop-i386.iso to the name of the Ubuntu file you downloaded (don't forget the suffix).

After this preparation is complete, restart the system.

Second, the configuration

After restarting, choose to enter the Ubuntu system, open the terminal (shortcut key combination is ctrl+alt+t);

1) Enter Sudo-i under terminal (Get Administrator privileges)

2) 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 End Blocks Id System
/DEV/SDA1 1 1627 13060096 Unknown
Partition 1 does not end on cylinder boundary.
/DEV/SDA2 * 1627 1639102400 7 Hpfs/ntfs
Partition 2 does not end on cylinder boundary.
/dev/sda3 1639 8166 52429859 7 Hpfs/ntfs
/DEV/SDA4 8167 38913 246975277+ 5 Extended
/dev/sda5 8167 32385 194539082+ 7 hpfs/ntfs
/dev/sda6 32386 38788 51432066-up Linux
/dev/sda7 38789 38913 1004031, 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.

3) 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.

4) 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)

5) 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

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 7 (loader) on/dev/sda2
Done

The resumption of work was all done.

Reboot the system.

Third, the final improvement

After restarting, select Enter Win7, to Win7 system disk C disk, delete the files that were copied to the C drive when installing Ubuntu (Vmlinuz, Initrd.lz,grldr,grldr.mbr,grub.exe,menu.lst,boot.ini,ubuntu.iso)

In particular, the ISO file, if not deleted, restarts into the Win7, and will enter the Ubuntu installation interface.

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.