Ubuntu10.04+win7 dual System, re-install Win7, restore grub boot menu and command line boot Linux

Source: Internet
Author: User

I installed the ubuntu10.04 and Win7 flagship dual system on my little Y, using grub boot. Today Win7 do not know where the problem, Windows Update update has been an error, (of course, 360 is not a drop) on the internet for a long time to learn from a lot of solutions or failed to solve the problem. I have some perfectionism tendencies, for such a problem naturally intolerable, did not update how worthy of my this hard brush genuine?      Holding the "Life is tossing" the spirit of decisive decision to redo the system.    But the redo system will be the Grub boot menu to cover out (strongly despise the next overbearing Microsoft), I do not want to redo the hard configuration of Ubuntu, so before doing the first Baidu under the Grub repair method, just in case. Here are the main mentions: 1.sudo-i (or sudo bash)//switch to root privileges 2, fdisk-l//See where the Ubuntu partition is, it seems like the following, (83)       Device boot    start    end       blocks     id   System      /dev/sda1 *      1       2432    19535008+   c     W95 FAT32 (LBA)      /dev/sda2      2433      19457   136753282   f    W95 Ext ' d (LBA)      /dev /sda5      2433     7296    39070048+   b     W95 FAT32      /dev/sda6      7297      12395   40957686    7    hpfs/ntfs       /dev/sda7      12396    15435   24414062+   83   Linux      /dev/sda8      15435    15739   2440192     82   Linux swap       /dev/sda9      15739    19163   27507712     83   Linux     3, mount/dev/sda9/mnt//hangs on the original system root directory     4, Grub -install--root-directory=/mnt//DEV/SDA     See installation finished. No Error reported. On the success of the          have a method in hand on the courage to re-install Win7, do a good win7, burning u disk LiveCD, all step by step, After restarting the result is still a tragic grub command line instead of what is familiar with the Grub boot menu! I am dizzy, do not know whether the online method is wrong, I tried several times or failed to solve. There is no way to do something else ...      i use LiveCD to enter the system, find the Ubuntu system boot file grub.cfg, write down my system main boot information:       root= ' (hd0,7) ', Linux/boot/vmlinuz-2.6.32-24-generic, Initrd/boot/initrd.img-2.6.32-24-generic,

Decide to try booting under the GRUB command line;

After rebooting, enter the following on the GRUB command line:

1.grub>root (hd0,6)//input root (hd0, press TAB to see the Linux partition 2.grub>kernel (hd0,6)/boot/vmlinuz-2.6.32-24-generic ROOT=/DEV/SDA7//File name can be pressed tab completion, SDA7 is (hd0,6) 3.grub>initrd/boot/initrd.img-2.6.32-24-generic//press TAB to Complete 4.grub>boot with disturbed mood, finally see grub in the boot, a familiar Ubuntu interface back! After entering the next update grub will be OK; 1. Open terminal, 2.sudo-i, 3.update-grub,

Finally restart, this time long lost grub menu just calculate back ~ ~ Toss Me 2 hours finally fix, online that method effect is not clear, I did not succeed!

Ubuntu10.04+win7 dual System, re-install Win7, restore grub boot menu and command line boot Linux

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.