Dual-system repair Ubuntu9.10GRUB2 Boot Method

Source: Internet
Author: User
GRUB1 is not used for GRUB boot of Ubuntu9.10. GRUB2 (beta version) is used instead ). After Windows is reinstalled, the original LiveCD method cannot be used for restoration. You can only use the following two methods. Method 1. if you have a tool disk that has been started by GRUB, use the tool disk to start it. Press c on the GRUB menu to enter the command line status. In GRUB & gt; enter grub & gt; find/boot/gr

GRUB 1 is not used for GRUB boot in Ubuntu 9.10. GRUB 2 (beta version) is used instead ). After Windows is reinstalled, the original Live CD method cannot be used for restoration. You can only use the following two methods.

Method 1. Fixed a CD or USB flash disk with GRUB Enabled

If you have a tool disk that is started by GRUB, start it with the tool disk and press c in the GRUB menu to enter the command line status,

Enter at the grub> prompt

Grub> find/boot/grub/core. img (find/grub/core. img for/boot partitions)

(Hdx, y) (display the found Partition Number)

Grub> root (hdx, y)

Grub> kernel/boot/grub/core. img (/kernel/grub/core. img for the boot partition)

Grub> boot

After running the boot command, you can go to the GRUB 2 menu, start Ubuntu, and then run

Sudo grub-install/dev/sda (or sdb, sdc, etc., depending on the number of hard disks) to repair GRUB.

Note: If the ubuntu boot partition uses the ext4 format, you must have grub that supports the ext4 format to fix it.

Method 2: Use liveCD to fix grub (recommended)

Start Ubuntu with Live CD of Ubuntu 9.10 and then open the terminal

If your ubuntu/partition is sda9 and the/boot partition is sda6, enter

Sudo-I

Mount/dev/sda7/mnt

Mount/dev/sda6/mnt/boot (skip this step if no/boot partition is available)

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

As before, replace sda with sdb if you want to mount the second hard disk.

My file system is ext4. It seems that GRUB of the USB flash drive pe is not supported. I used Live CD to fix it for the sake of insurance, but it cannot guide Windows after the fix. You can use the following method to solve the problem:

Go to the Ubuntu system and open the terminal,

Recreate the GRUB list sudo update-grub

Re-write the first partition mbr sudo grub-install/dev/sda

To modify the startup sequence, you can modify the grub. cfg file in the/boot/grub directory. Note that this file cannot be written. Run the command first.

Sudo chmod + w/boot/grub. cfg

Then run sudo gedit/boot/grub. cfg to modify it, similar to the menu. lst modification of GRUB 1.

Related Article

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.