Restoring GRUB2 on Software RAID 0 after Windows 7 wiped it using LiveCD

Posted by unknownthreat on Ask Ubuntu See other posts from Ask Ubuntu or by unknownthreat
Published on 2011-01-03T03:19:02Z Indexed on 2011/01/03 4:58 UTC
Read the original article Hit count: 284

Filed under:
|
|
|
|

I have installed Ubuntu 10.10 on my system. However, I need to install Windows 7 back, and I expect that it would alter GRUB and it did.

Right now, my partition on my Software RAID 0 looks like this:

alt text

nvidia_acajefec1 is Ubuntu 10.10 and nvidia_acajefec3 is Windows 7.

I've been following some guides around and I am always stuck at GRUB not able to detect the usual RAID content.

I've tried running:

sudo grub

> root (hd0,0)

GRUB complains it couldn't find my hard disk. So I tried:

find (hd0,0)

And it complains that it couldn't find anything.

So I tried:

find /boot/grub/stage1

It said "file not found".

Here's the text from the console:

ubuntu@ubuntu:~$ grub
Probing devices to guess BIOS drives. This may take a long time.

       [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]
grub> root (hd0,0)
root (hd0,0)

Error 21: Selected disk does not exist
grub> find /boot/grub/stage1
find /boot/grub/stage1

Error 15: File not found

Fortunately, I got one person suggesting that what I've been trying to do is for GRUB Legacy, not GRUB2. So I went to the suggested website, ** (http://grub.enbug.org/Grub2LiveCdInstallGuide) **try to look around, and try:

ubuntu@ubuntu:~$ sudo fdisk -l

Unable to seek on /dev/sda

This is just the step 2 of the instruction in the http://grub.enbug.org/Grub2LiveCdInstallGuide and I cannot proceed because it cannot seek /dev/sda.

However,

ubuntu@ubuntu:~$ sudo dmraid -r
/dev/sdb: nvidia, "nvidia_acajefec", stripe, ok, 488397166 sectors, data@ 0
/dev/sda: nvidia, "nvidia_acajefec", stripe, ok, 488397166 sectors, data@ 0

So what now? Do you have an idea for how to make fdisk see my RAID array on live cd (Ubuntu 10.10)? Honestly, I am lost, very lost in trying to restore GRUB2 on this software RAID 0 system right now.

© Ask Ubuntu or respective owner

Related posts about 10.10

Related posts about grub2