LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-02-2007, 01:29 PM   #1
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL 5
Posts: 220

Rep: Reputation: 31
SOLVED: Trying to rescue grub on NVIDIA RAID and Fedora 7


ok....

I have a computer running Nvidia Raid 0. had to reinstall windows and so i wanted to use the rescue cd for my distro (Fedoar 7) to reinstall grub.

Normally, I would do this:

Code:
#grub
#root (hd0,1)
#setup (hd0)
However this is not working. I am guessing it has to do with the Nvidia raid mapping system but i am not sure. In my grub configuration root shows up as (hd0,1) but for some reason grub won't accept it giving errors such as unknown device or filesystems. I will try to get the exact errors.


/boot is /dev/mapper/nvidia_ahdjiajcp3

has anyone ever successfully reinstalled grub in this scenario?

Thanks in advance

Last edited by cuco76; 11-04-2007 at 10:52 AM.
 
Old 11-02-2007, 01:50 PM   #2
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL 5
Posts: 220

Original Poster
Rep: Reputation: 31
OK so here are some exact error messages:

Code:
root (hd0,1)
filesystem type unknown, partition type 0x83
setup (hd0)
error 17 Cannot mount selected partition
root (hd0,0) gives 0x7 and (hd0,2) gives 0x7 partition types with the same setup error.

if i try to do: (from memory)
Code:
root (hd1,anything)
cannot mount selected something
hope this clarifies
 
Old 11-02-2007, 07:49 PM   #3
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
grub.conf? What is that?

I do believe that your /boot has to be on a partition that is not part of the raid, if you are using software raid or LVM.

The easiest way to find it is to just do an fdisk -l on your drives, and we'll see what that turns up.
 
Old 11-04-2007, 10:51 AM   #4
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL 5
Posts: 220

Original Poster
Rep: Reputation: 31
OK so i got it figured out. The reason it worked is unknown to me. However it seems that when your system is using /dev/mapper's instead of /dev/hd* to point to your hardware you have to tell grub that this is the case.

I found this because from the rescue env. a fdisk -l shows up with errors until i pointed it to /dev/mapper/nvidia_whatever.

So i ran "grub --device-map=/boot/grub/device.map" and then was able to restore grub to my mbr. I guess by default grub tries to connect to /dev/hda or sda.

Anyways hope this helps someone else out.
 
Old 11-04-2007, 11:15 AM   #5
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Thanks for posting the solution. This will come in handy for other people. I guarantee it
 
  


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
Booting from Grub Rescue apolix Linux - Newbie 16 11-04-2010 06:32 PM
help me to rescue my grub on x86 system with dual boot adityakumar Linux - Software 9 12-28-2006 07:01 AM
Need to (re)install GRUB: fedora c4 rescue cd (and GRUB) unable to see the harddisk whencat Fedora 4 03-05-2006 02:01 PM
Using and editing Grub or boot with System Rescue cd loninappleton Linux - Newbie 5 12-08-2005 06:19 PM
grub reinstall from rescue CD shashikanth Linux - Software 12 08-22-2004 04:40 AM


All times are GMT -5. The time now is 03:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration