Tuesday, 23 September 2014

How to Resolve "Grub Rescue" Using Windows Repair Disc/LINUX Live CD

Some time when you have dual boot installed and then you remove one of the OS, say Linux setup. Then you will end up in the "grub rescue" prompt. Following steps will help you fix the Windows installation media 'grub rescue' using the windows repair disc you have or with the windows installation CD.


1) Get the Windows repair disc ready.
 Repair disk can be created by following steps. Start menu -> control panel -> backup and restore -> in left panel you will fine create a repair disc. Insert a CD and click. That’s it done :)

  
2) Get start the device (please refer to your device for boot option ex: dell -> F12) and choose Boot from CD/DVD option.

3) Then choose “command prompt” from Option list given.


4) Follow the steps, 

>bootrec /fixmbr 
>bootrec /fixboot 
>bootrec  /rebuildbcd

Command prompt will show successful message.....


Using Ubuntu Live cd:


  1. sudo mount /dev/sdaX /mnt
    Here, sdaX is your boot partition. You can get a list with sudo blkid like this,
    /dev/sda1: LABEL="Windows" UUID="BISBHBIUBYIVBI5968" TYPE="ntfs" 
    /dev/sda3: LABEL="Ubuntu 14.04" UUID="naskfjsdb-sdfsdf" TYPE="ext4" 
    /dev/sda8: LABEL="ENTIES" UUID="23534HDJFDB345" TYPE="ntfs" 
    /dev/sda9: LABEL="DATA" UUID="23432BVFGRDG" TYPE="vfat" 
    
    Note: sdaX must be Linux partition.
  2. sudo grub-install --boot-directory=/mnt/boot /dev/sda
  3. sudo update-grub


:) done ...restart the Machine and check. Good Luck :) 
 

No comments:

Post a Comment