LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-07-2011, 02:18 AM   #1
FireDemonSiC
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Rep: Reputation: 0
Grub Doesn't Recognize RAID For Repair


Last night I upgraded my 10.04 Ubuntu install to 10.10 and guess what? It broke the boot loader. Grub falls to a recovery shell at boot so at the moment I have NO OPERATING SYSTEM.

No problem I can fix that with the LiveCD.

So I popped in the live CD, installed kpartx so I can properly read my RAID array and verify this in gparted. 4 Linux partitions and two Windows so we should be good to go.

Quote:
ubuntu@ubuntu:~$ sudo grub
Probing devices to guess BIOS drives. This may take a long time.
Unknown partition table signature
Unknown partition table signature

[ 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,3)
root (hd0,3)

Error 22: No such partition
grub> root (hd0)
root (hd0)
grub> root (hd1)
root (hd1)
grub> root (hd2)
root (hd2)
grub> root (hd3)
root (hd3)
grub>
As you can see, grub isn't reading the RAID array. It's still recognizing 4 individual drives. How do I correct this?

I am using software RAID with the onboard NVRaid controller of my 780a motherboard.
 
Old 03-07-2011, 04:21 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Grub2 lists devices as sda, sdb
You may have to mount all partitions and do
"os-prober"
"update-grub"
I am told "os-prober is unnecessary, but I still include it.
http://karuppuswamy.com/wordpress/20...rescue-prompt/
 
Old 03-08-2011, 01:36 AM   #3
FireDemonSiC
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
I tried OS prober, which returned:

Quote:
ubuntu@ubuntu:~$ sudo os-prober
/dev/mapper/nvidia_fggfjajh1:Windows 7 (loader):Windows:chain
/dev/mapper/nvidia_fggfjajh2:Windows 7 (loader):Windows1:chain
/dev/mapper/nvidia_fggfjajh5:Ubuntu 10.10 (10.10):Ubuntu:linux
ubuntu@ubuntu:~$
Then of course updateb grub, which returned:

Quote:
ubuntu@ubuntu:~$ sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ...

Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) n

Not creating /boot/grub/menu.lst as you wish
So it looks like It's not recognizing my 200MB ext2 boot partition, despite the fact I have it mounted and can access it from the desktop. Where do I go from here?

it appears that the boot partition IS recognized through gparted (Since I installed kpartx to properly read my RAID array). Should I attempt to mount It's /dev/mapper location as /boot?

Last edited by FireDemonSiC; 03-08-2011 at 01:37 AM.
 
Old 03-08-2011, 01:45 AM   #4
FireDemonSiC
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
I tried the above fix. I even tried:

Quote:
ubuntu@ubuntu:~$ sudo mount /dev/mapper/nvidia_fggfjajh3 /boot
Grub is still not recognizing the array. My grub install resides on (hd0,3). But grub is still seeing (hd0-3) so It's seeing 4 seperate disks instead of the array. I can't continue with repairing the bootloader until I figure out why It's doing this.

FYI, I manually went and checked and /boot/grub/menu.lst IS there. It just isn't seeing it because of the no RAID support.

Last edited by FireDemonSiC; 03-08-2011 at 01:47 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why ark in Slackware 13 doesn`t recognize .txz packages... witek Slackware 6 09-01-2009 09:10 PM
LXer: Super GRUB Disk--A GRUB Repair Utility LXer Syndicated Linux News 0 09-20-2008 10:20 PM
grub doesn`t work Atomtomate Linux - Desktop 6 01-16-2007 07:58 AM
Slack 10.1 kernel 2.6.10 doesnīt recognize CDrom little_ball Slackware 4 08-15-2005 11:33 AM
Mandrake doesnīt recognize my sound card... Please help! telmo Mandriva 5 04-09-2004 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration