LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-05-2007, 07:51 AM   #1
wannabelinux
LQ Newbie
 
Registered: Jun 2007
Location: Durban,South Africa
Distribution: SUSE 10.1
Posts: 4

Rep: Reputation: 0
Exclamation GRUB Error 21 again


Please help! I'm VERY new to Linux, in fact this problem is rearing it's ugly head on my first installation.
I tried installing SUSE Linux 10.1 on my work PC as a client is using Linux throughout their organisation and I wanted to test my software on the platform. BUT . . .
Once the Installation was completed (without errors) it rebooted and I've been plagued with the Error 21 screen since.
I have read the thread addressing the same problem that Sebastian had but my situation is a lot worse it would seem.
"threadid=338856"
He at least had a clue as to what to try but I do not.

Now some background, the PC is running 2 SATA hard drives and I'm sure that I installed the Linux on the master drive. I can go into my BIOS and I did try changing settings but to no avail.
If I leave the DVD in it loads up to the Installation menu and I've tried repairing the installation which gives an OK to everything but it gives an error when it gets to the 'Mounting All Partitions' where it says it's problematic.

Now I know that this is the problem, but how (and please explain every step as simply as possible) can i fix this or (worst case scenario) remove the Linux installations so that I can at least access the Windows system. (I have some very expensive software on the windows system which can not be re-installed so a re-format is not an option!)

PLEASE help!!
 
Old 06-05-2007, 08:37 AM   #2
Crooksey
LQ Newbie
 
Registered: Mar 2006
Distribution: Gentoo
Posts: 25

Rep: Reputation: 15
To what location did you install the bootloader, it wants to go into the MBR of /dev/sda
 
Old 06-05-2007, 08:47 AM   #3
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
Tell us where was Windows installed before you installed SUSE. Windows cannot boot from a secondary drive, please clarify.
 
Old 06-06-2007, 02:37 AM   #4
wannabelinux
LQ Newbie
 
Registered: Jun 2007
Location: Durban,South Africa
Distribution: SUSE 10.1
Posts: 4

Original Poster
Rep: Reputation: 0
First to answer your Qs - Windows is loaded on the Primary drive (Master drive!?)
Bootloader I can only assume from what I've discovered (read below) is loaded into sdb7
PS - what is MBR?
I pretty much didn't change anything in the setup other than the disk space that Linux wanted when installing, I gave it 30GB.
Could this have screwed up my installation?
Please read what I've found out and advise accordingly.
Thanks in advance for the help - it's much appreciated.

So I did get it to work, but in a very round about way. If i boot from the CD and do an installation selecting "repair installed system", do an automatic repair (activating the swap area [/dev/sdb6]), get the message "an error occured during installation" it brings up the main menu (kernel default) where I select 'Start Installation or System', then 'Boot Installed System'.
It lists the root partitions as:
sda1 : ntfs
sdb1 : ntfs
sdb5 : ntfs
sdb7 : reiserfs
sdb8 : reiserfs
From there I select /dev/sd7 as sdb8 is an invalid selection
This gets me into Linux (Yay!)
Now, my question is:
What must I do to point it straight to sdb7?
And How can I load up Windows (still not able to)?
 
Old 06-06-2007, 03:07 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,314

Rep: Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032
The MBR is the Master Boot Record - it's what enables you to boot an operating system. The fact that you get a grub error means that you did install to the MBR.
So we can tick that box.

Do you get a (usable) grub prompt when you get the "21" ??? - i.e. will it accept keyboard input ??. If so, try (no quotes) "find /boot/grub/stage1"
Hopefully it'll return with "(hd1,6)". If it fails try "find /grub/stage1".
Whatever you get back use in the next command - enter both of these then reboot.
Code:
root (hd1,6)
setup (hd0)
If you dont get a usable grub prompt at boot, open a terminal from your Linux system, then type in "grub", and start with the find command above.

Edit: fixed reference to error code.

Last edited by syg00; 06-06-2007 at 03:09 AM.
 
Old 06-06-2007, 04:50 AM   #6
wannabelinux
LQ Newbie
 
Registered: Jun 2007
Location: Durban,South Africa
Distribution: SUSE 10.1
Posts: 4

Original Poster
Rep: Reputation: 0
I did as you said, grub prompt is unusable so in the terminal I did as you said
"find /boot/grub/stage1"
it did return with "(hd1,6)"

then I ran

Code:

root (hd1,6) setup (hd0)

and rebooted, to get the same error again.
You seem to know what you are talking about. Are we on the road to success? And can I get into my Windows system at all?
 
Old 06-06-2007, 05:00 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,314

Rep: Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032
This isn't making a lot of sense.
To get your Windoze booting again, boot the XP CD, and hit the <r> key when it says so on the splash screen. This will get you into the Recovery Console.
Enter fixmbr then reboot (you might get a "scare" message - I've never heard of this causing a corruption).

You should be right to go - however you'll need the (Linux) CD to get to your Linux system.
 
Old 06-06-2007, 05:44 AM   #8
wannabelinux
LQ Newbie
 
Registered: Jun 2007
Location: Durban,South Africa
Distribution: SUSE 10.1
Posts: 4

Original Poster
Rep: Reputation: 0
And the Linux?

Is it possible that the hard drives are SATA that is causing the hassles?
Does anyone know what I can do?
 
  


Reply

Tags
error, grub, trash


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Error Grub stage2 loading error (using FC6) on seperate hdd Anifield Linux - Newbie 7 03-20-2007 01:14 PM
GRUB Error 26: Disk Read Error (using grub4dos and ubuntu) Dark_Master Linux - Newbie 2 11-07-2006 11:58 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM


All times are GMT -5. The time now is 03:40 PM.

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