after reinstalling grub, grub comes in command prompt mode
I had Ubuntu 9.04. But when I installed Windows also, the grub was overwritten. To reinstall the grub, I took a live cd of 9.10 and typed the following
Code:
GRUB 1.97 BETA 4 Code:
sh:grub> |
From your live cd terminal:
sudo grub root (hd0,7) setup (hd0) I presume your ubuntu root partition is sda8. If you still end up with a grub prompt then we will have to go from a different angle. If this does not help from terminal: sudo fdisk -l copy and paste the results |
grub : unknown command
Thanks
I went to Applications->Terminal from the live CD and typed Code:
sudo grub The Windows is installed on hd0,1 and linux on hd0,8. |
You have got a Grub prompt.
In my experience there is no intstalled OS that cannpt be booted by a Grub prompt. Your post suggests that the /boot directory of your Linux has been "sourced" from sda8. You will get a Grub boot menu if you have a healthy grub.cfg in the /boot /grub directory of sda8. The the grub.cfg is missing or defective Grub boots to a Grub prompt. If sda8 is your Ubuntu Linux with at least /boot inside then these lines at a Grub prompt will fire it up Code:
set root=(hd1,8) YOu can check the content of sda8 by mounting it with a Live CD Code:
sudo mkdir /mnt/sda8 |
Sorry for the bad advice, that pesky grub2, will have to get up to date on the changes from 1 to 2.
|
linux booted but no GUI boot-menu still
Thanks
I tried the commands on the grub shell and I was able to boot into my Ubuntu. But the GUI boot-menu (through which I can select which OS to boot) still doesn't show. The command mode grub still comes up and i have to type several commands to load Ubuntu or Windows. For Windows I have to type : Code:
sh:grub>root (hd0,1) As saikee told. I also tried booting into the linux and typing update-grub there. It went smoothly but still the GUI mode of boot menu isn't coming. |
Show us your /boot/grub/grub.cfg
Every command you use to boot up a system is inside grub.cfg. I dislike the grpahic screen of Grub becuase only in a text screen one can get a Grub prompt which is the most powerful bit of Grub. |
Look in /etc/default/grub. This is one of the files that update-grub reads to create grub.cfg
|
Content of menu.lst
I have a 9.04 version of Ubuntu (only the live CD was of 9.10), so there is menu.lst instead of grub.cfg. Here is its contents.
Code:
# menu.lst - See: grub(8), info grub, update-grub(8) |
By entering this at the grub command line, can you boot into ubuntu and then reinstall grub?
Quote:
|
Don't have 9.04 live CD, but do have 9.10 one
I can easily boot into Windows ans well as Ubuntu from the grub command line, but I want a GUI based one.
When I enter Ubuntu I tried typing Code:
sudo update-grub Is there anything else I should try (apart from using 9.04 live CD bcoz I'm not able to get one) |
Have you tried Larry Web's method after booting into your ubuntu installation from the grub command prompt?
|
Quote:
|
You may have both Grub1 and Grub2 installed. if you boot a system by specifying the root as
Code:
root (hd0,1) Code:
set root=(hd0,2) You can mix the Grub1 and Grub2 but they can both installed. The one that works is the one you put in the MBR. The GUI bit of Grub is just loading a splash screen or employing the fgxmenu commonly found in Grub1. You should forget the GUI menu if you have a booting confusion as it added uncertainty to to your problem. |
Thanks
But, its 100% Grub 1. From my first post can u tell me why the grub was installed in the shell mode ? Is there any way to repair it or should I do a fresh install ? |
All times are GMT -5. The time now is 03:03 AM. |