Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help Forums Windows Startup Programs Database Virus, Spyware, and Malware Removal Guides Computer Tutorials Uninstall Database File Database Computer Glossary Computer Resources
 

Welcome Guest ( Log In | Click here to Register a free account now! )



Register a free account to unlock additional features at BleepingComputer.com
Welcome to Bleeping Computer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.
Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

 
Reply to this topicStart new topic
> How to re-install Grub bootloader after Windows re-install on a dual-boot system
Rating 5 V
Romeo29
post Jul 26 2009, 07:46 PM
Post #1


Forum Addict
******

Group: BC Advisor
Posts: 1,412
Joined: 6-July 08
From: South Garden
Member No.: 220,807



How to add Grub bootloader after Windows re-install on a dual-boot system


Guide Overview :
You have a dual boot system with Windows and Linux both on separate partitions. You decide to format the Windows partition and re-install Windows after a malware attack or just because Windows got too much cluttered. The Windows setup re-writes the MBR of primary partition so after re-installing Windows, you no longer have Grub loader and you can no longer boot into Linux. This guide tells you how to re-install Grub bootloader after reinstalling Windows on a dual boot system.

Requirements :
A bootable Linux live CD. For example, a Ubuntu CD. http://www.ubuntu.com/GetUbuntu/download

Instructions :
  1. Boot from the Live Linux CD.
  2. Choose an option that says something like "Try Linux without installing".
  3. After Linux desktop environment (like Gnome or KDE) is finished loading, open a Terminal window.
    Under Gnome, open Terminal through, Applications menu -> Accessories -> Terminal.
    Under KDE, open Terminal through, KMenu -> System -> Terminal Program (Konsole).
  4. In the terminal, type sudo grub.
  5. Next type, find /boot/grub/stage1 and press Enter. The output may look like hd0, 6
  6. Type root (hd0, 6). Note that we have to use whatever output we get from previous command. If you get hd0, 2, then type root (hd0, 2)
  7. Type setup (hd0) (again replace hd0 with the output of the find command) and press Enter. next type quit and press Enter to exit grub.
  8. Thats it, Grub bootloader is loaded again in MBR. Restart your computer.


This post has been edited by Amazing Andrew: Jul 29 2009, 12:08 PM
Reason for edit: Added parenthetical, just to be safe :) - AA


--------------------
BleepingComputer on Facebook : Facebook
BleepingComputer on Twitter : Twitter
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 21st November 2009 - 11:35 AM


Advertise   |   About Us   |   Terms of Use   |   Privacy Policy   |   Contact Us   |   Site Map   |   Chat   |   Tutorials   |   Uninstall List
Discussion Forums   |   The Computer Glossary   |   Resources   |   RSS Feeds   |   Startups   |   The File Database   |   Virus Removal Guides

© 2003-2009 All Rights Reserved Bleeping Computer LLC.