LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-18-2007, 02:05 PM   #1
viticus
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Rep: Reputation: 0
Unhappy GRUB error 21 upon installation


Here is my setup:
I have a stripe RAID of two drives for XP pro. I've been wanting to try linux out for a while now and picked up a Ubuntu live cd. I installed a third hard drive specifically to play around with linux. I put the live cd in the drive and booted from the cd. This is where the first problem occurred: I had to install w/ noapic.
The cd booted up. I went through the installation, partitioning as I should. Once finished I tried to reboot my pc. I guess it defaults to reboot from the HD with the newly installed linux OS. When it trys to boot from this drive, it freezes at the "verifying" stage.
I reset, went into BOOT MENU changed it to boot from my RAID drives, then I get the GRUB error 21. I tried to reset and noticed at the prompt that my RAID drives do not show up there, only my linux HD. I checked my BIOS, the RAID drives do not show up there either.

Any advice helpful. I've found multiple listings from google, mainly about bootloaders and fdisk \mdr commands. I'm not familiar with how to use this stuff.
 
Old 07-19-2007, 12:17 PM   #2
SCerovec
Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware x86 and ARM and Porteus
Posts: 655

Rep: Reputation: 45
Buddy, seems You disassembled Your RAID array?
A heavy data-rescue seems eminent :-(
Try to reassemble/ fix Your RAID without that 3rd HDD first.
Afterwards, allways play with the RAID off-box ;-)
 
Old 07-19-2007, 04:51 PM   #3
viticus
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Original Poster
Rep: Reputation: 0
What do you mean play with the RAID off-box?

I've done this over and over again. I boot my RAID for xp. then i install my 3rd hard drive for linux and then install it. regardless, i get still get a GRUB 21 error. I read about a couple of commands but I'm not sure where or how to use them:

fdisk \mdr
fdisk -l

would these help? something about my bootloader may have installed improperly. any ideas?

Last edited by viticus; 07-19-2007 at 04:53 PM.
 
Old 07-19-2007, 07:28 PM   #4
Le Beastie
LQ Newbie
 
Registered: Mar 2005
Location: Way out there
Distribution: Ubuntu 9.10
Posts: 25

Rep: Reputation: 16
It sounds like RAID and regular HDs don't play well with Grub. I could be wrong, but I think "off-box" means isolating the two sets of drives from each other (the multi-disk RAID drive and the regular drive, that is). Perhaps the safest thing to do would be to temporarily remove your RAID drives from the boot order (if you can do that; I don't have much experience with RAID) when you want to boot into linux, and set the linux distro up without a boot loader. (Because you'll be booting directly to the third HD, which only has linux on it).

By the way, is your RAID setup okay? It sounded like you might have somehow lost it in your BIOS.
 
Old 07-19-2007, 08:58 PM   #5
viticus
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Original Poster
Rep: Reputation: 0
yeah my RAID disappeared. I don't know where there crap it went. Luckily I back everything up before I ever decide to start experimenting. I'm just going to try and start from scratch. I'm going to try without the RAID, and only use 2 HDs. I'll just have a spare for now. I'll put xp on one and try linux on the other. wish me luck. "I'm goin in"
 
Old 07-20-2007, 04:12 AM   #6
SCerovec
Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware x86 and ARM and Porteus
Posts: 655

Rep: Reputation: 45
"OK man, we will cover You"
Really be carefull regardnig grub's device mapping against Your RAID array ;-)
I still would do it with RAID off-box ;-) --> lesser headache that way...
 
Old 07-20-2007, 11:11 AM   #7
viticus
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Original Poster
Rep: Reputation: 0
All right fellas, here's what I've done now. I took out the third HD. No problem.

So I install windows first, on its own HD.
Then I install a second HD. I then boot from my Ubuntu live cd and installed it. I tried putting the boot loader(which I have finally figured out how to mess with) on the Linux HD. When I restart, I choose to boot from the Linux HD. It gives me the OS selection menu. Nothing will boot from this menu. Both OSs give me errors(Ubuntu is error 17 & windows is error 13).

Now if I try to boot from the Windows HD, it boots windows right up.

It seems like there's a boot loader issue. Any ideas?

C'mon guys, we're almost there. I can feel the energy of the Decepticons!!

Last edited by viticus; 07-20-2007 at 11:12 AM.
 
Old 07-21-2007, 03:17 AM   #8
SCerovec
Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware x86 and ARM and Porteus
Posts: 655

Rep: Reputation: 45
"What we got here is failure to comunicate..."
;-)

buddy, You got yourself a double_device_remapping problem which is a serious issue.
:-)

1. When You tell Your BIOS to boot from the (wild guess) 2nd HDD with Linux, it remaps the drives:
1st Master -> 1st Slave
1st Slave -> 1st Master
Then You land in the grub and it seeks for (hd0,0) as the windows partition, which now (thanks to BIOS) shows on Ubuntu's 1s partition, and then tries to 'chainload +1' ubuntu's root partition's 1st block. This ain't working normally :-)
Try this out:
get to the GRUB's console
type:
Code:
root (hd0
the type [tab] to see the patitions of the '1st' drive
then edit it to
Code:
root (hd1
and redo
;-)
 
  


Reply

Tags
grub


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
New FC5 Installation: grub error 15 rps63ifid Fedora 10 05-30-2009 07:48 AM
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM
Grrrr! GRUB Error on 1st boot after installation Hayz Linux - Newbie 5 09-09-2003 09:54 AM


All times are GMT -5. The time now is 01:42 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