PDA

View Full Version : [ubuntu] MBR issues



Dovelea
April 23rd, 2011, 07:55 PM
Have been using Ubuntu on external Hard drive and windows7 on a Acer laptop.

Today windows did some upgrade which I left running while I went out, Laptop re-booted in to Acer erecovery mode. I was able to access command prompt via windows install and re-installed MBR for windows 7, laptop now works fine.

The external drive when plugged in does not start with dual boot but error of no operating system, how do I get windows to now recognise my external Ubuntu drive ?

Many thanks in advance.

Hedgehog1
April 23rd, 2011, 09:02 PM
You will need to reinstall GRUB, as the windows update overwrote the MBR (as you guessed by the thread title :D )

Please boot off your LiveCD/LiveUSB, select 'TRY'

Determine what partition holds your Ubuntu root. In the examples below, they assume that /dev/sda5 is your Ubuntu partition. Yours may be /dev/sdb5 or /dev/sda3 or /dev/sdb3 or whatever... Use that. Also note that your drive MAY be /dev/sdb.

In the Terminal (Menu to: Applications >> Accessories >> Terminal):


sudo mount /dev/sda5 /mnt

sudo grub-install --root-directory=/mnt /dev/sda

The Hedge

:KS