Tuesday 16 July 2013

Windows keep restarting

1 comment

This problem may occur due to different reasons such as corrupted boot sector, viruses. In my opinion there are two solutions to solve this problem

1. Using recovery console

Follow the steps given below but beware that after using this commands your other OS like CentOS, Ubuntu will be removed from the grub. Do to which you will not able to use your other OS installed with Windows.
  • boot your machine from windows bootable DVD or USB.
  • go to recovery console 
  • type the following commands 
    • bootrec.exe/rebuildbcd     (scan all disks which contain Windows installation)
    • bootrec.exe/fixmbr           (write new MBR)
    • bootrec.exe/fixboot          (Write new boot sector)
  • This commands search for windows installed drive and add those entries to grub.
  • After this shutdown the machine and start it.

2. Installing Ubuntu alongside windows

This is safer option than first one because this method keeps both the Windows,  Other Linux, and this new Ubuntu which you are going to install alongside windows. After installing Ubuntu all the grub entries go the Ubuntu, due to which problem get solved. By using this method you will be able to use two flavors of Linux (Ubuntu:-debian based + CentOS:- Redhat based + Windows) with Windows. This method require free disk space (minimum requirement of Ubuntu)on C drive (where your Windows is installed) to install Ubuntu alongside Windows.
By using this method we can also get CentOS back after removal of its entry from grub due to some problem and going to grub rescue.

1 comment: