Installing Ubuntu11.04 on the motherboard RAID0 and the grub Problems and Solutions

Source: Internet
Author: User
I installed Ubuntu11.0464-bit desktop, and the motherboard is 880 GB. Two GB hard disks have been set to raid0 In the bios of the motherboard, and win7 is installed first. The current hard disk structure, 100 mwin7 hidden partitions, and c, d, and E disks each have GB. Improvement steps: first try Ubuntu and then start installation. While installing, you can also access the Internet without delay. The Installation started smoothly. In the last step, grub cannot be installed and a fatal error occurs. This time is critical

I installed Ubuntu 11.04 64-bit desktop, and the motherboard is 880 GB.

Two GB hard disks have been set to raid0 In the bios of the motherboard, and win7 is installed first.

The current hard disk structure, 100 M win7 hidden partitions, and c, d, and E disks each 100 GB.

Improvement steps:

First try Ubuntu and then start installation. While installing, you can also access the Internet without delay.

The Installation started smoothly. In the last step, grub cannot be installed and a fatal error occurs.


This is the key. Don't be confused.

Open a terminal in the Attachment Program Group, I refer to the method of this post, http://www.linuxidc.com/Linux/2011-05/36502.htm

Follow these steps:

$ Sudo-I

First mount the root directory

# Mount/dev/mapper/pdc_XXXXXXXXXXn/target

Pdc_XXXXXXXXXX should be available during installation. If you do not remember it, the ls-l/dev/mapper/command can be listed.

Re-mount/home

# Mount/dev/mapper/pdc_XXXXXXXXXXn/target/home

N is the same as the code for partitioning.

Other mount points are determined based on your own installation. If you need to share the win partition, you can also mount the win directory to/media/c,/media/d.

Then it is related to the system.

# Mount-o bind/proc/target/proc

# Mount-o bind/sys/target/sys

# Mount -- rbind/dev/target/dev

Then, run the chroot command to go to the installed system and go to the target directory. (Now we do a chroot to the mount system .)
# Chroot/target/bin/bash

Create device. map to grub (Now create the file device. map, used by GRUB .)

# Echo "(hd0)/dev/mapper/pdc_XXXXXXXXX">/boot/device. map
The pdc_XXXXXXXXXXXX here is the code of the raid0 array, and no numbers are appended.
# Cp/boot/device. map/boot/grub/

Then install grub.

# Grub-setup/dev/mapper/pdc_XXXXXXXXXXXX
The pdc_XXXXXXXXXXXX here is the code of the raid0 array, and no numbers are appended.
# Update-grub
Grub automatically finds and configures the ubuntu and win7 startup options to generate the/boot/grub. cfg file.

In this way, we are done.
Restart.

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.