LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-20-2007, 12:53 AM   #1
eDog1014
LQ Newbie
 
Registered: Jun 2005
Distribution: Gentoo, Ubuntu
Posts: 6

Rep: Reputation: 0
Gentoo, RAID, LVM, and GRUB error 21


I have IDE 5 hard drives in a software RAID 5 array and one SATA drive containing my OS partitioned as follows:

/dev/sda1 /boot
/dev/sda2 swap
/dev/sda3 /
/dev/vg0/home /home
/dev/vg0/var /var

vg0 is the LVM volume group that spans the RAID5 array. there are other volumes not related to the OS in the array.

I have no difficulty installing grub from the grub shell with
>root hd(3,0)
>setup (hd3)

but when I reboot the computer, grub goes immediately to error 21 without presenting me a boot menu.

Any help would be greatly appreciated.
 
Old 05-20-2007, 09:23 AM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
I do not use LVm but you have got a bootloader...grub on hd3 or your fourth detected drive.

is that what you want?

which drive does your bios order normally detect?

Normally you put grub onto hd0.

root (hd3,0)
setup (hd0)

Last edited by aus9; 05-20-2007 at 09:25 AM.
 
Old 05-20-2007, 11:40 AM   #3
eDog1014
LQ Newbie
 
Registered: Jun 2005
Distribution: Gentoo, Ubuntu
Posts: 6

Original Poster
Rep: Reputation: 0
Solved, but not understood

I tried that and it gave me the same error, so I tried disconnecting the RAIDed drives and just booting the SATA drive. Now, I received error 15 instead of 21. After reinstalling grub with the IDE drives removed, I successfully booted the SATA drive. After plugging in the IDE drives however, error 21 returned. At this point, I changed the BIOS boot device from HDD0 to SCSI and now it is booting properly. After having this machine for two years, I only now just found out that not only Linux, but also the BIOS, treats SATA as SCSI.
 
Old 05-21-2007, 06:22 AM   #4
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
well yes and no.

i have a single sata drive non-raided....but after a bios update...I needed to enable raid for the onboard raid to detect the sata drive.

you may want to check with your motherboard manufacturer for a bios update but be aware that flashing your bios may require a floppy drive?
 
Old 09-22-2008, 07:25 AM   #5
muhsinzubeir
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by eDog1014 View Post
I have IDE 5 hard drives in a software RAID 5 array and one SATA drive containing my OS partitioned as follows:

/dev/sda1 /boot
/dev/sda2 swap
/dev/sda3 /
/dev/vg0/home /home
/dev/vg0/var /var

vg0 is the LVM volume group that spans the RAID5 array. there are other volumes not related to the OS in the array.

I have no difficulty installing grub from the grub shell with
>root hd(3,0)
>setup (hd3)

but when I reboot the computer, grub goes immediately to error 21 without presenting me a boot menu.

Any help would be greatly appreciated.

Not sure years later I came across this post via google...

root (hd0,0) #This is boot partition
setup (hd0) #This is mbr watever that means
quit

Not sure bout LVM, thats what I was searching via google...still dont know what the hell that means..but im curios of the possibilities
 
  


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
software raid 5 + LVM and other raid questions slackman Slackware 5 05-09-2007 02:58 PM
Perc3Di SCSI RAID + Adaptec 2810SA RAID = Fatal Grub Error? LinuxOnTheEdge Linux - General 2 03-19-2005 02:35 PM
Gentoo Error can't boot with Grub therapture Linux - Distributions 4 02-14-2005 11:07 AM
Gentoo GRUB Error usa1234 Linux - Distributions 1 10-15-2004 04:44 PM
Grub Error After Installing Gentoo Crashed_Again Linux - General 3 12-20-2003 05:02 PM


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