Linux - NewbieThis 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
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.
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.
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?
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.
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).
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
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.