LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 11-02-2007, 02:29 PM   #1
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: 64bit Fedora8, WInXP/Vista for games:(
Posts: 213
Thanked: 0
SOLVED: Trying to rescue grub on NVIDIA RAID and Fedora 7


[Log in to get rid of this advertisement]
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 11:52 AM..
cuco76 is offline     Reply With Quote
Old 11-02-2007, 02:50 PM   #2
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: 64bit Fedora8, WInXP/Vista for games:(
Posts: 213
Thanked: 0

Original Poster
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
cuco76 is offline     Reply With Quote
Old 11-02-2007, 08:49 PM   #3
jiml8
Senior Member
 
Registered: Sep 2003
Distribution: mandriva 2009.1, 2008.1, kubuntu 8, fedora 8
Posts: 2,819
Thanked: 38
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.
jiml8 is offline     Reply With Quote
Old 11-04-2007, 11:51 AM   #4
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: 64bit Fedora8, WInXP/Vista for games:(
Posts: 213
Thanked: 0

Original Poster
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.
cuco76 is offline     Reply With Quote
Old 11-04-2007, 12:15 PM   #5
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.5.5, Windows 2003 Server/Vista/XP/2000/NT/98, Ubuntux64, CentOS4.7/5.2
Posts: 2,980
Thanked: 0
Thanks for posting the solution. This will come in handy for other people. I guarantee it
Micro420 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 12:21 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration