LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 08-11-2009, 06:14 AM   #1
illnamiqui
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Dual boot install - ubuntu studio 9.04 - GRUB error 21


Hi everyone,

I am new tu Linux and this is my first install.

I wanted to install Ubuntu Studio 9.04 in a Dell precision 670 Workstation. I have Windowx xp installed so I wanted to have both.

During the installation everything seemed fine, but when rebooted i get the error:
GRUB Loading stage1.5

GRUB Loading, please wait...
Error 21

I have 2 hard drives in a RAID array
CERC 2s#0-#0 ARRAY0

During the installation it asks if i want to activate Serial ATA Raid devices, i chose: yes

The partitions look like this:

/dev/sda1
/dev/sda2
/dev/sdc1
/dev/sdc2
/dev/sdc5 (root file system)
/dev/sdc6 (SWAP)

I have tried entering in rescue mode and reinstall GRUB boot loader
but then i don't know which option i should use
(hd0) - /dev/hda
(hd0,1) - /dev/hda2
(hd2,4) - /dev/sdc5
(fd0) - /dev/fd0

I have searched for the GRUB 21 error, and read about changing something in the bios or something like that but i have no idea what to do...
Can anyone guide me please?

Thanks for your time!
 
Old 08-12-2009, 07:35 PM   #2
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,484

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
Grub Error 21: Selected disk does not exist
This error is returned if the device part of a device- or full file name refers to a disk or BIOS device that is not present or not recognized by the BIOS in the system.

If your root filesystem for UBuntu is indeed on sdc5, issuing the following commands from a command line from your Ubuntu Installation CD:

sudo grub
root (hd2,4)
setup (hd0)
quit

What happened to sdb? Did you have another dirve attached during the install? The error above indicates Grub is looking for its boot files on a disk no longer attached, or at least not correctly named in menu.lst file. I don't use RAID so I don't know what impact that might have.
 
Old 08-13-2009, 10:40 PM   #3
sysfce2
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 91

Rep: Reputation: 38
How bad do you want to keep your RAID array?
I believe it is possible to install on a RAID array, but it is much more difficult.
I tried for a couple of days and couldn't get it to work (keep in mind I am a Linux newbie), so I destroyed the RAID array and reinstalled Windows and Linux on separate hard drives. It was relatively easy at that point.

EDIT: Installing Linux on RAID is one thing - no problem. Using the RAID drive to boot from is where I ran into problems - a possible solution is to use a non-RAID device to boot (or maybe the windows boot manager).

Last edited by sysfce2; 08-13-2009 at 10:46 PM.
 
Old 12-03-2011, 06:31 AM   #4
PhilP
LQ Newbie
 
Registered: Jul 2009
Location: Reading, England
Posts: 2

Rep: Reputation: 0
Similar Problem - Grub Error 21 on a SiI RAID Setup

Hi
This thread looked the most relevant to my situation.

I am trying to install Ubuntu Feisty Fawn onto my old A7N8X motherboard PC when Windows XP packed up for good. I've basically no idea what I'm doing, but the install seemed to go ok until I tried to restart and got the dread "Grub error 21".

I suspect it's something to do with the fact that I've two 500 gB disks in a striped Silicon Image RAID from the preceding thread, but I'm guessing really.

I can't undo the RAID as when I boot up and do F4 into the RAID setup, the keyboard will not respond - no, not even with a PS/2 keyboard which I've tried.

fdisk -l gives this list if that helps:

Device Boot Start End Blocks Id System
/dev/sda1 1 8585 68958981 83 Linux

/dev/sdb1 1 30256 243031288+ 82 Linux swap / Solaris
/dev/sdb2 * 30257 60329 241561372+ 83 Linux
/dev/sdb3 60330 60801 3791340 5 Extended
/dev/sdb5 60330 60801 3791308+ 82 Linux swap / Solaris


Any advice gratefully received.

Thanks
 
Old 12-03-2011, 04:51 PM   #5
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,484

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
I don't know anything about RAID so I don't know what impact that has if any. You said you had two 500GB drives yet your fdisk output only shows one drive and that is sdb which generally means the second drive. When you install Ubuntu, the partition manager which usually says Allocate Drive Space, has a Device for Bootloader installation and there is a drop down box. You can select either drive you have to install to its master boot record or you can select a partition. If Ubuntu is all you have, you would want grub in the master boot record of whichever drive is set to first boot priority in the BIOS.

Are both your drives recognized in the BIOS?

I don't know which number version Feisty Fawn is but if it is earlier than 9.10, it would have Grub Legacy, later would be Grub2.
You could go to the site below and download and run the bootinfoscript to gather detailed information on your system and boot files and post it here:

http://bootinfoscript.sourceforge.net
 
  


Reply

Tags
dual boot, error, grub, ubuntu studio


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
Ubuntu 7.10 Dual Boot with XP, ubuntu partition deleted, grub 1.5 error 22 narchy Linux - Newbie 11 02-07-2011 03:54 AM
Ubuntu studio 4.09 error 18 on grub boot? joey45 Ubuntu 4 05-16-2009 08:06 AM
Grub Error 17 on Install dual Boot Ubuntu 8.10 marvinjean Linux - Newbie 8 01-17-2009 11:08 AM
Ubuntu 8.03a3 New Install: GRUB Error 21 after new dual-HDD, dual-boot install tvdxer Ubuntu 1 01-29-2008 01:08 PM
Grub error 17 after XP-Ubuntu dual install Grrblt Linux - General 12 09-17-2007 05:00 PM


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