[!!] Install the GRUB boot loader on a hard disk

Mariano Jara Melagrani/g mjaramelagrani at gmail.com
Sun May 22 20:20:46 UTC 2011


On Mon, 2011-05-23 at 01:15 +0800, Goh Lip wrote:
<snip>
> Alright, if the installation goes all okay but it's just the bootloader 
> (grub) that's the issue, there's a way we can rectify this. However if 
> there are other installation issues as well, then well...don't think we 
> can do much.
> 
> So lets try to see if that's the case...
> 
> Boot up using the livecd 
I booted up using the alternate/install cd and went to "Rescue a broken
system" and after a few settings questions (language, kb layout,
location, locales, etc.) it asked me where I wanted to execute the
shell. I chose the install environment and then got a Busybox prompt.

> and we'll first determine the partition Ubuntu 
> is installed - if the whole disk, then it should be sda1, at terminal, 
> "sudo fdisk -l" to confirm.
This is confirmed, though I had to remove "sudo" because it complained
about "/bin/sh: sudo: not found".

> Then we mount the partition (assume sda1, otherwise amend accordingly)
> "sudo mount /dev/sda1 /mnt"
Done (removing sudo again).

> then we install grub by
> "sudo grub-install --root-directory=/mnt /dev/sda"
It complained again about "/bin/sh: grub-install: not found" (no sudo
again).

> 
> Reboot normally.
> 
> Good luck - Goh Lip






More information about the ubuntu-users mailing list