GRUB error
Hello, I recently formatted and put Ubuntu on my old SuSE partition. I think the installing process went okay, but when I try to boot it up, GRUB gives me Error 22. I tried reinstalling Ubuntu but still no success. I was hoping someone could help me tell GRUB to boot from the right place. I have two hard drives, one with windows and the other that has more windows on it and another partition for linux. I'm currently using the live cd that the ubuntu installer comes with, please help.
|
Hi Jim...
What partition actually holds your stage 1,2, and 3 GRUB? If you know that info, you can reinstall GRUB to your hd's MBR without too much pain or strain. The partition that has the GRUB stages will look something like this: Code:
root@ericsbane03:/mnt/boot/grub# ls -a Luck! ~Eric |
sda2 and to restore, I have no clue what the password is.
|
Also, whenever I try to do anything like 'setup (hd0) or root (hd0,1) it says that the drive is non-existant.
|
Give us the output of:
Code:
# fdisk -l |
Absolutely nothing, it just gives me a new line waiting for an input.
"ubuntu@ubuntu:~$ fdisk -l ubuntu@ubuntu:~$ " |
You have to be root to do that. In "live" Ubuntu:
Code:
$ sudo fdisk -l |
Okay, here's the output...
Code:
ubuntu@ubuntu:~$ sudo fdisk -l |
I tried booting off of what I did below, still gives me "Error 22"
Code:
ubuntu@ubuntu:~$ sudo grub |
I don't know what you are after.
If you set up Grub to (hd1,1) which is sda2 then Grub resides inside sda2 and must be booted by another boot loader in the MBR. I presume the reason of this is you don't want Grub to take over the MBR. If you want Grub to boot from the MBR then do Code:
root (hd1,1) |
Well, I was reading some thing that I found on Google on how to restore GRUB...I guess it was wrong. Anyways I tried setup (hd0) and GRUB still gives me an error.
|
jim98cl,
You have to know booting is in two parts. First part is by Grub and the second part is by the kernel. Basically Grub loads the kernel and kernel loads the Linux. How do you know it is Grub and not the kernel part? Got any proof to back up your claim? Your Post #9 suggests that Grub can be installed in (hd0) successfully. Grub error 22 = No such partition. This implies the menu.lst may have an error resulting Grub could not find the partition you want it to use. Can you post the following? (1) /boot/grub/menu.lst (2) output of root terminal command "fdisk -l" |
Code:
GRUB Loading stage 1.5 |
Code:
# menu.lst - See: grub(8), info grub, update-grub(8) |
Woo, hello from Ubuntu that runs off of my hard drive. Thanks everyone! :D
|
All times are GMT -5. The time now is 08:26 PM. |