LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ubuntu 8.04 grub Error22: found solution - but same error (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-8-04-grub-error22-found-solution-but-same-error-699928/)

wadesmart 01-26-2009 08:14 AM

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

jailbait 01-26-2009 12:32 PM

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


All times are GMT -5. The time now is 10:38 AM.