LinuxQuestions.org
Visit Jeremy's Blog.
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 01-26-2009, 09:14 AM   #1
wadesmart
Member
 
Registered: Jul 2005
Location: Oklahoma
Distribution: Ubuntu
Posts: 79

Rep: Reputation: 15
Ubuntu 8.04 grub Error22: found solution - but same error


Yesterday I was working on my computer tonight when it started getting very slow. I clicked on Home on the toolbar and it said it could not be found and was not associated with ... something. I saved my data and then rebooted. I had Grub Error 22 on my screen. I did some searching and found a few posts in the ubuntu forums so I followed these instructions:

Booted to LiveCD,
sudo grub,
find /grub/stage1

It is located at hd0,0.

I found some other posts about this and followed these instructions:

sudo grub
find /grub/stage1


sudo grub
grub> root (hd0,0)

the result:
checking if "/boot/grub/stage1" exists ....no
checking if "/grub/stage1" exists... yes
checking if "/grub/stage2" exists... yes
checking if "/grub/e2fs stage1_5 (hd0)"... 16 sectors are embedded
succeeded
running "install /grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/grub/stage2
/grub/menu.lst" ... secceed
done.

grub> setup (hd0)
grub> quit

Next I rebooted... same message .. .Error 22.

I started live cd again and and did a search and it says hd0,0 for
stage1 and stage 2. I have to assume that whatever caused this problem to begin with is persistent. Any help would be much appreciated.

Wade
 
Old 01-26-2009, 01:32 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,793

Rep: Reputation: 292Reputation: 292Reputation: 292
Error 22 means that grub cannot find a partition. The partition that it cannot find may not be hd0,0. Check /boot/grub/menu.lst to see what partition grub expects the kernel and the initrd to be on.

Also run fdisk -l from the liveCD to find out what partitions still exist. You may have a damaged partition table.

--------------------
Steve Stites
 
  


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
Ubuntu 7.10 Dual Boot with XP, ubuntu partition deleted, grub 1.5 error 22 narchy Linux - Newbie 11 02-07-2011 04:54 AM
grub Error 15: File not found lowbrow Debian 2 11-10-2007 07:52 PM
Boot hangs with the 'GRUB' message - no solution found alxp Linux - Newbie 7 09-20-2004 02:23 AM
Solution to Grub memory error 768 bencpht Linux - Newbie 0 03-08-2003 11:11 PM


All times are GMT -5. The time now is 11:07 AM.

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