I am trying to reinstall the boot loader.

Goh Lip g.lip at gmx.com
Tue Nov 2 07:18:05 UTC 2010


On Tuesday 02,November,2010 02:51 PM, Stephen wrote:
> I'm sorry if I hijacked some one's thread, I don't know how I did it but
> I will take your word for it.
>
> I have two drives hd0 is a windows drive, and hd1 is ubuntu.
>
> As the web page  at
>
> https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows
>
> said;
>
> I booted from a live cd.
> mounted the Ubuntu drive.
>
> Typed mount | tail -1
> then ls /media/drive-designation/boot
>
> I got a listing similar to the shown listing on the web page.
>
> I typed sudo grub-install --root-directory=/media/drive-designation/dev/sdb
>
> sdb was what the web page told me to use.
>
> When that didn't work for all the items in the list to work I used
> /dev/sda
>
> That had exactly the same results.
>
> When I took the suggestion to use sudo grub-install /dev/sda from my now
> working in stall of Ubuntu, and rebooted it gave me the prompt grub>  I
> didn't know what to type so I used the live cd again.
>
> So I had to use the live cd and reinstall the boot loader that way, and
> Ubuntu is still the only operating system that will boot.
>
>
> I will be grateful for any help I can get;
> Stephen Oulton
>


Steven, I assume you can now boot direct (cold boot) into Ubuntu, not 
using the livecd. If not, ignore the rest of this message and get back 
to us.



at terminal, type....
sudo grub-mkdevicemap
sudo os-prober
sudo update-grub

If this still does not create an entry for your windows, please print 
out the following output from the entry at the terminal.
sudo fdisk -l

Regards - Goh Lip






More information about the ubuntu-users mailing list