Home > Debian, Fedora, Gentoo, Linux, PCLinuxOS, Tutorial, Ubuntu > Restore Grub after Windows installation

Restore Grub after Windows installation

August 6th, 2009 Leave a comment Go to comments

I’ve just installed Windows Seven so I’ve lost ma Grub boot window…

let’s see how we can do that…

You need a Linux Live CD with grub supported.
Insert your CD, load your distribution, open a console and then type:

sudo <a href="tag/grub/" title="grub">grub</a>

We need root privileges to use grub. In my example I was using an Ubuntu Live CD which uses sudo, you can use the switch user command (su) if you prefer.

find /boot/grub/stage1

You need to find your old grub configuration. Grub will look into your partitions. The output will be something like this (hdX,Y)

root (hdX,Y)
setup (hdX)
quit

Now you’re done. Be aware the you are writing your MBR!
So do not screw up!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • blinkbits
  • Bumpzee
  • Technorati
  • BlinkList
  • Furl
  • Rec6
  • Simpy
  • Slashdot
  • Facebook
  • LinkedIn
  • TwitThis
  1. No comments yet.
  1. No trackbacks yet.