Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-29-2009, 09:04 AM   #1
LQ Newbie
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
grub error 21!

hi everybody ,
I know this is posted everywhere, but once more
so I decided to install ubuntu 8.10 over my xp and the problem is I never read about this , thats why I'm in a deeper shit...
it gave me grub error 21 since first boot and is still, I'm connected through a live cd that runs directly so I'ts the only way to get a pc to living ;] . I dont know what to do I read alot in past few hours but nothing really helpful, because everybody is still keeping xp and I don't want to.. I have the only SATA HD and I suppose it doesn't get recognised by grub, if I just could get to grub's command line...
any help?
Old 01-29-2009, 01:12 PM   #2
Registered: Mar 2006
Distribution: fedora 7
Posts: 62

Rep: Reputation: 16
Just try to give a general idea of how grub works:

Grub has 2 stages/parts. Stage 1 is stored on MBR of your HDD (usually). Stage 2 has larger files and cannot fit onto MBR, so it's stored on a HDD partition (usually in /boot/grub).

When computer boot from your HDD, it first reads the grub stage1 info on your MBR, which will point to the location of stage2 grub image.

Grub Error 21 means stage1 is pointing to a incorrect location of stage2. And the boot will fail.

I don't know the detail steps of setting up grub, but they are available out there. Here are some links I can suggest:

Note: I wrote this purely by memory from few years ago. Things could have changed, or my memory could have failed. Grub gurus out there, please correct if I am wrong.

Old 01-29-2009, 02:20 PM   #3
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware, Ubuntu
Posts: 9,930

Rep: Reputation: 2297Reputation: 2297Reputation: 2297Reputation: 2297Reputation: 2297Reputation: 2297Reputation: 2297Reputation: 2297Reputation: 2297Reputation: 2297Reputation: 2297
It would be difficult for anyone to give you specific information without knowing what your partition setup is. Use your Live CD and run the command from a terminal window: sudo fdisk -l (lower case Letter L) and post the output here.


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
install kubuntu 8.10 with lilo rather than grub (because of grub error 18) dukeinlondon Ubuntu 7 12-27-2008 06:53 PM
Loading Grub 1.5 Please Wait...... Grub Failed Error 18 2words4uready Linux - Newbie 5 06-12-2008 05:37 PM
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration