| |
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 |
|
|
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  |
| |
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 |
| |
3 Weeks Ago
|
#4 (permalink)
| | Linux Engineer
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. |
| |
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 |
| |
3 Weeks Ago
|
#6 (permalink)
| | Linux Engineer
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. |
| |
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 |
| |
3 Weeks Ago
|
#8 (permalink)
| | Linux Engineer
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. |
| |
3 Weeks Ago
|
#9 (permalink)
| | Super Moderator
Join Date: Jun 2006 Location: Chandigarh, India
Posts: 21,081
| 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 |
| |
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 |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |