LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   missing /boot/grub after fresh install of Ubuntu 8.04 (https://www.linuxquestions.org/questions/ubuntu-63/missing-boot-grub-after-fresh-install-of-ubuntu-8-04-a-648010/)

adityavpratap 06-09-2008 08:06 AM

missing /boot/grub after fresh install of Ubuntu 8.04
 
Hi,
I have installed Ubuntu 8.04 LTS Desktop Edition on my Acer Aspire 5100 laptop. But the problem is when I reboot Ubuntu is not listed in the boot-menu items. On further inspection I found that /boot/grub was not created. So how do I install grub?

Larry Webb 06-09-2008 10:58 AM

We need to know more about your disk partitions and the distros on there now. From terminal as root run 'fdisk -ls' without the quote marks and post the results.

saikee 06-09-2008 11:18 AM

Pretty simple really.

Just use the command
Code:

find / -name stage1
to find out which directory has Grub's system files stage1 and stage2. Then copy these two files into the directory /boot/grub.

Fire up a Grub shell at terminal, say the partition contains /boot/grub is the 2nd partition of your 1st hard disk known to Grub as (hd0,1) then Grub will be setup in the MBR by terminal commands
Code:

sudo su
grub
root (hd0,1)
setup (hd0)
quit

In the above the red commands are inside the Grub shell while the others are Linux terminal commands.

The above, after a reboot, boots you to a Grub prompt with which you can boot any system manually. To boot the system automatically you need to write a menu.lst or Grub's configuration file.

We can suggest a menu.lst if you provide

(1) output of "fdisk -l" in a Bash terminal
(2) List of files inside /boot

Having said that there is no installed PC system that cannot be booted in a Grub prompt so it pays to know how to use it.

adityavpratap 06-12-2008 08:59 PM

Thanks guys,
your suggestion seems to have worked.


All times are GMT -5. The time now is 06:22 PM.