Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Ubuntu Help > Grub Error 22

Forgot Password?
 Ubuntu Help   Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 3 Weeks Ago   #1 (permalink)
Just Joined!
 
Join Date: Mar 2009
Posts: 11
Grub Error 22

Hi,
I was using gparted to make a partition and i hit create particle by accident and when i rebooted, I am getting a grub error 22. I have installed 9.10. Can anybody please help me fix this problem.

Regards,
Vishwa
dagarshali is offline  


Reply With Quote
Old 3 Weeks Ago   #2 (permalink)
Linux Guru
 
Join Date: Oct 2007
Posts: 2,410
Boot from a live CD, open a terminal and post the output of
sudo fdisk -l
sudo grub
find /boot/grub/menu.lst
quit
The -l has a small L rather than a one, and you need to post the output of the find command before you type quit
Jonathan183 is offline   Reply With Quote
Old 3 Weeks Ago   #3 (permalink)
Just Joined!
 
Join Date: Mar 2009
Posts: 11
Hi,
I dont have 9.10 live cd..so i used a 8.04lts cd..hope that wouldn't matter


ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8e0eee9e

Device Boot Start End Blocks Id System




grub> find /boot/grub/menu.lst


Error 15: File not found


Regards,
Vishwa
dagarshali is offline   Reply With Quote
Old 3 Weeks Ago   #4 (permalink)
Linux Engineer
 
D-cat's Avatar
 
Join Date: Jan 2009
Location: Dover, NH
Posts: 1,444
Are you sure there wasn't more to the sudo fdisk -l ? There should be partition data under it.
__________________
You just WON the game!
D-cat is offline   Reply With Quote
Old 3 Weeks Ago   #5 (permalink)
Just Joined!
 
Join Date: Mar 2009
Posts: 11
hi,
yes i am sure that is all i had... ..Is it because is used the create partition table..which by the way started this whole thing..

vishwa
dagarshali is offline   Reply With Quote
Old 3 Weeks Ago   #6 (permalink)
Linux Engineer
 
D-cat's Avatar
 
Join Date: Jan 2009
Location: Dover, NH
Posts: 1,444
It looks like there is no partition table. Yes, "create partition table" actually means "destroy the existing table and start with a blank slate. All information on the drive will be inaccessable." Before continuing, I need to know if there is information on that drive you want recovered. If so, there needs to be a focus on that before trying to reinstall karmic, or it'll all be lost.
D-cat is offline   Reply With Quote
Old 3 Weeks Ago   #7 (permalink)
Just Joined!
 
Join Date: Mar 2009
Posts: 11
yes D-cat,
I have important data that i would like to restore...i am running a program called testdisk after i got a partedmagic live cd.. i think it is listing all the drives there..i am not sure how to restore those though?

regards,
vishwa
dagarshali is offline   Reply With Quote
Old 3 Weeks Ago   #8 (permalink)
Linux Engineer
 
D-cat's Avatar
 
Join Date: Jan 2009
Location: Dover, NH
Posts: 1,444
I'm not exactly syre how testdisk works, but I'd take note of the output a/o keep the log safe (if you went that option). When testdisk finishes, run sync, then do the sudo fdisk -l again. If the partitions are listed, then you're in good shape (I'd still do a fsck on each one to fix any possible errors resulting from the partition table loss).

If it still lists no partitions, show me the output a/o log from testdisk.
D-cat is offline   Reply With Quote
Old 3 Weeks Ago   #9 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,081
Send a message via Yahoo to devils casper
Click in Testdisk option in Partedmagic Menu, select Create -- Proceed -- 'Intel' -- Analyse...

TestDisk will restore lost partitions and rewrite partition table.
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 3 Weeks Ago   #10 (permalink)
Just Joined!
 
Join Date: Mar 2009
Posts: 11
Hi,
this is the output of the testdisk-->analyze and then followed by deeper search..this is the output..i have made some comments on what i noticed when i try to list files in the list..

I could list files for all other partitions except Linux Swap..

Now the problem is how to choose the type of partitions for these things..

The main partition for linux is the 66GB one.. I have windows vista installed as well.. and boot to ubuntu using Grub..

Regards,
vishwa

TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>


Disk /dev/sda - 320 GB / 298 GiB - CHS 38914 255 63
Partition Start End Size in sectors
D FAT32 LBA 0 1 1 33002 254 63 530193132 [NO NAME]
D HPFS - NTFS 0 32 33 21939 13 42 352448848
D HPFS - NTFS 0 32 33 33002 177 7 530186240
D HPFS - NTFS 0 32 45 32676 254 63 524953945
When i select the above partition and type p to list files, i get the message that I can't open file
D Linux 21940 0 1 23854 254 60 30764472
D Linux 23855 1 1 32485 254 63 138656952
D Linux 28158 0 1 36788 253 63 138656952
can't open the above either
D Linux Swap 32486 1 1 33001 254 42 8289456
D Linux 32677 2 1 32980 254 61 4883632
D Linux Swap 32981 1 1 33001 254 41 337280
D HPFS - NTFS 33002 209 40 36987 37 42 64008192 [LENOVO]
* HPFS - NTFS 36987 37 43 38899 129 14 30722048





Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
Enter: to continue
FAT32, 271 GB / 252 GiB
dagarshali is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:52 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2