PDA

View Full Version : [other] Reinstalling Grub After Windows



ElMoshe
December 13th, 2010, 02:56 PM
Every other guide I've seen is confusing the heck outta me.

I had ubuntu, and no other OS, then I installed win7, and now I want GRUB to be my MBR and any help?

tajiknomi
December 13th, 2010, 03:07 PM
Every other guide I've seen is confusing the heck outta me.

I had ubuntu, and no other OS, then I installed win7, and now I want GRUB to be my MBR and any help?

you want to say that you didn't see ubuntu anymore,right?

this is because windows has Overwrite your mbr, you have to install Grub-again.... using live cd...

Once you in live Cd:-

Mount your Ubuntu-drive:-


sudo mount /dev/sdXY /mnt
Change XY with your Partition of Ubuntu...

Once it is mounted, Reinstall Grub by the Following Command:-


sudo grub-install --root-directory=/mnt /dev/sdXIn the Upper code, Change "X" with your hdd e.g sda(if you have only one hdd)....Once it is done,you will get back your Grub along with Ubuntu, all you have to do is to just Go to Ubuntu , and "sudo update-grub" to get your win-7 too...