Reinstall GRUB after Windows install on Dual Boot System

I dual boot my laptop with Windows XP Pro and Ubuntu, recently I had installed Windows 7 to test out and lost my Ubuntu system at boot up, but after searching the Ubuntu Forums I realised I’d lost my GRUB settings and still had Ubuntu safety on my laptop. Here is what is did. 

Reinstall GRUB after Windows install:

Insert Ubuntu Live CD and restart system.

Open a terminal once in Ubuntu and do the following:-

sudo grub

find /boot/grub/stage1

Take not of whatever find states (hdx,x)

root (hdx,x)

setup (hdx)

quit

Now restart the system and remove the Live CD when instructed to. When the system restarts you’ll notice GRUB is back :)

About these ads
    • ChloeP
    • October 14th, 2009

    Short, sweet. This worked perfectly and was very simple compared to the confusing multiple options at:

    https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

    • MatV
    • October 20th, 2009

    Very nice post. Very easy to follow. I will definitely be giving this a try when I return home this evening.

    • MatV
    • October 20th, 2009

    My system is back up and running thanks to this simple instruction. Much appreciated!

    • Dmd
    • December 15th, 2009

    will this wipe the Vista BCD? – I have Vista and ubuntu installed ubuntu is on (hd0,4) , I can no longer access UBuntu as I needed to fix BCD to access vista, I would like to have access to the ubuntu from the vista boot loader
    any help appreciated

    • Bling
    • January 5th, 2010

    Worked perfectly. I installed ubuntu after windows but on its own bootloader, thus causing windows to start no matter what. I followed the instructions and I can now dual boot windows and ubuntu 9.04

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: