error 22. help me
Recently i decided to partition my hard drive to run vista and ubuntu on it. i ran great for like a day then, until i deleted a small(5gb) partition that didn't have anything in it. Once my computer rebooted i got something like this:
------------- GRUB Loading stage1.5. GRUB loading, please wait... Error 22 ------------- What do i do to get it running like it did? |
I'm not at all familiar with Error 22, but it's possible that this small, empty partition may have been the Linux swap partition. Do you remember what its type was? Was it swapfs?
|
http://www.linuxselfhelp.com/gnu/gru...r/grub_13.html
Looks like a pretty simple issue to sort. Assuming you have a live CD or some other way to boot, can you show us The contents of /boot/grub/menu.lst and the output of "fdisk -l" I'll bet your partition numbers have changed and the menu.lst entry is now pointing to a nonexistent partition. |
From the GRUB manual
Quote:
Code:
fdisk -l Edit: billymayday beat me, this time... :) |
Quote:
|
okay I can boot ubuntu up with just the disc, but the problem is i am pretty much retarded when it comes to linux. Would reinstalling ubuntu to the same partition help or is just a grub problem?
|
It is a simple grub configuration problem.
Simply take a look at the entry for booting Ubuntu and edit (press e) it. Change root= .. to root=(hd0,2) (for example 3rd partition of 1st hard disk) |
If it takes you to a shell, then you may need to edit /etc/fstab or just press enter , ctrl d
|
I am sorry but i don't i think i understand exactly what to do. I boot up with the disc in. It shows:
Try Ubuntu without any change to your computer Install Ubuntu Check CD for defects Test memory Boot from first hard disk Is this where I edit or do I load ubuntu and try to edit there? |
Select "Try Ubuntu without any change to your computer"
In "Applications->Accessories", select Terminal Type "sudo fdisk -l" (that's a lower case "L") and post the results. Now, I'm not sure where your boot partition is, and we may need to play around a bit to find it. look at the output ot the command above. Here's a snippet of what I get" Code:
Disk /dev/sdb: 300.0 GB, 300090728448 bytes Code:
ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt Code:
sudo cat /mnt/boot/grub/menu.lst If the result of "sudo ls /mnt/boot/grub" had been file not found, I'd then have gone Code:
ubuntu@ubuntu:~$ sudo umount /mnt Note that you would only bother with partitions that fdisk told you were linux partitions (so not /dev/sdb2 in my case, or sdb5). See how you go on that. Keep working through any linux partitions you have - it's likely to be a low numbered one, and you probably don't have more than a couple anyway. Note - sounds complicated - is actually easy. Don't worry. |
All times are GMT -5. The time now is 07:47 PM. |