LinuxQuestions.org
Review your favorite Linux distribution.
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 05-05-2007, 06:39 PM   #1
hitemhrd
LQ Newbie
 
Registered: May 2007
Posts: 13

Rep: Reputation: 0
Grub error 22 during install


I have a clean system that has no operating system on it. I ran fdisk and erased all partitions so that I could configure them while installing SUSE 10.2. However I got the Grub error 22 error message. I even created one large partition for the entire hd and got the same message. Then I formatted the drive just to see if that would help, and it didn't. I still get the grub error 22 message when booting from the 1st installation disk.

I can boot from Knoppix so I know my hardware is working. What should I do next? This is my first time ever trying to install Linux. Most people with this message posting are dual boot, but I am not. So what should I do?

Thank you.
 
Old 05-05-2007, 07:13 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Error 22 usually indicates that GRUB is looking on the wrong partition. Then again, if that happened even with a snigle partition, this cannot be the problem. What kind of disk are we talking about: SATA or PATA? Any more disks in that computer, anything else that could have influence on disk numbering (such as a USB stick, optical drives, ...)?
 
Old 05-05-2007, 07:13 PM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
22 : "Must load Multiboot kernel before modules"
This error is returned if the module load command is used before loading a Multiboot kernel. It only makes sense in this case anyway, as GRUB has no idea how to communicate the presence of location of such modules to a non-Multiboot-aware kernel.
Kinda odd - where in the install process does this error occur?
Probably you should try to manually install grub to mbr.
http://www.linuxquestions.org/questi...d.php?t=511076
 
Old 05-05-2007, 07:32 PM   #4
hitemhrd
LQ Newbie
 
Registered: May 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Grub error 22 during install

Quote:
Originally Posted by jay73
Error 22 usually indicates that GRUB is looking on the wrong partition. Then again, if that happened even with a snigle partition, this cannot be the problem. What kind of disk are we talking about: SATA or PATA? Any more disks in that computer, anything else that could have influence on disk numbering (such as a USB stick, optical drives, ...)?
I only have a CDROM drive in the computer, no other hard drives. Both the CDROM and the hard drive show up in the bios and work when I boot with Knoppix. Theseate SATA drives. I do not have any USB flash drives in the machine.

Should I try the installation with the hard drive formatted? Should I fdisk and erase all paritions?
 
Old 05-05-2007, 07:38 PM   #5
hitemhrd
LQ Newbie
 
Registered: May 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Grub error 22 during install

Quote:
Originally Posted by Simon Bridge
Kinda odd - where in the install process does this error occur?
Probably you should try to manually install grub to mbr.
http://www.linuxquestions.org/questi...d.php?t=511076
My problem is that I get this error message when I try to boot from Disk 1 of Suse 10.2

The disk works on other computers I have (I tried to boot with the same CD on another pc to eliminate the media from the equation.)

How can I install grub to the MBR without booting with Disk #1? Can I do it while running Knoppix?
 
Old 05-05-2007, 08:05 PM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
What was on the disk before your used fdisk? The error 22 system is known to come up when a linux partition is not only formatted but deleted. Any chance you had a linux distro on there before you ran fdisk? And did you use linux fdisk or ms fdisk?
 
Old 05-06-2007, 12:38 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,725

Rep: Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121
If you're booting the CD, it shouldn't even try the disk MBR. The fact that Knoppix works shows how it should happen. From Knoppix, do this from a terminal to erase the loader code in the disk MBR (might need root)
Code:
dd if=/dev/zero of=/dev/sda count=446 bs=1
Then try the install again.
 
Old 05-06-2007, 12:54 AM   #8
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by Jay73
The error 22 system is known to come up when a linux partition is not only formatted but deleted.
This is what I was thinking - most others have solved this by cleaning mbr by their favorite method. eg.
Quote:
Originally Posted by sy00
dd if=/dev/zero of=/dev/sda count=446 bs=1
Quote:
Originally Posted by hitemhrd
How can I install grub to the MBR without booting with Disk #1? Can I do it while running Knoppix?
Sure - you can invoke grub-install (man grub-install). Of course syg00's suggestion will fill the mbr with zeros... possibly better.
 
Old 05-07-2007, 10:31 PM   #9
hitemhrd
LQ Newbie
 
Registered: May 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Simon Bridge
This is what I was thinking - most others have solved this by cleaning mbr by their favorite method. eg. Sure - you can invoke grub-install (man grub-install). Of course syg00's suggestion will fill the mbr with zeros... possibly better.
When i entered:
dd if=/dev/zero of=/dev/sda count=446 bs=1

I get the message
dd if=/dev/zero of=/dev/sda count=446 bs=1

Sorry to be so remedial. I am great with Windows but suck at Lunix so far.

Thanks for all the help you are giving me.
 
Old 05-07-2007, 10:34 PM   #10
hitemhrd
LQ Newbie
 
Registered: May 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hitemhrd
When i entered:
dd if=/dev/zero of=/dev/sda count=446 bs=1

I get the message
dd: opening '/dev/sda': No such device or address

Sorry to be so remedial. I am great with Windows but suck at Lunix so far.

Thanks for all the help you are giving me.
Sorry. The message I get is:

dd: opening '/dev/sda': No such device or address
 
Old 05-07-2007, 10:56 PM   #11
hitemhrd
LQ Newbie
 
Registered: May 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jay73
What was on the disk before your used fdisk? The error 22 system is known to come up when a linux partition is not only formatted but deleted. Any chance you had a linux distro on there before you ran fdisk? And did you use linux fdisk or ms fdisk?
I used ms fdisk. I have tried with an unpartitioned hard drive, a partitioned but unformatted hard drive, and a partitioned fat32 formatted hard drive.
 
Old 05-07-2007, 11:27 PM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,725

Rep: Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121
o.k. from a terminal session (knoppix is fine) let's see the output from
Code:
fdisk -l
(that's a lower case ell, as in list)
 
Old 05-08-2007, 12:13 AM   #13
hitemhrd
LQ Newbie
 
Registered: May 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00
o.k. from a terminal session (knoppix is fine) let's see the output from
Code:
fdisk -l
(that's a lower case ell, as in list)
got the message

Cannot open /dev/hda
 
Old 05-08-2007, 12:18 AM   #14
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,725

Rep: Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121
Did you do it as root ???.
 
Old 05-08-2007, 12:23 AM   #15
hitemhrd
LQ Newbie
 
Registered: May 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00
Did you do it as root ???.
Not the first time. Here is the return I got the second time.

Disk /dev/hda: 40.0 GB, 40016019456 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
 
  


Reply


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
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Grub error 21 on new install Eoin Dubh Debian 2 12-01-2006 03:51 PM
Grub-Install gives error acidblue Fedora 2 07-11-2005 10:56 AM
grub-install error xelt Linux - General 6 05-13-2005 04:31 AM
New Install GRUB Error 15 AndeAnderson Debian 18 04-08-2005 01:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration