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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-20-2007, 12:53 AM
|
#1
|
LQ Newbie
Registered: Jun 2005
Distribution: Gentoo, Ubuntu
Posts: 6
Rep:
|
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.
|
|
|
05-20-2007, 09:23 AM
|
#2
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep: 
|
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.
|
|
|
05-20-2007, 11:40 AM
|
#3
|
LQ Newbie
Registered: Jun 2005
Distribution: Gentoo, Ubuntu
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
05-21-2007, 06:22 AM
|
#4
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep: 
|
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?
|
|
|
09-22-2008, 07:25 AM
|
#5
|
LQ Newbie
Registered: Oct 2007
Posts: 3
Rep:
|
Quote:
Originally Posted by eDog1014
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 
|
|
|
All times are GMT -5. The time now is 06:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|