Wednesday, August 24, 2011

How to fix Grub Error after reinstalling Windows7 on a dual boot laptop ?

Problem is that After re-installing Windows7, When the laptop was rebooted, Grub Error 17 Message appeared.

Solution :

Boot from Ubuntu 10.04 LTS or other linux versions

Start Ubuntu Without installetion

  • For GRUB


Get in to the Terminal, and run

1. sudo grub

2. find /boot/grub/stage1

Now it will be returning something as (hdX,Y), [e.g (hd0,0)]

3. sudo root(hdX,Y)

4. sudo setup(hdX)

reboot the laptop and boot normal, (do not foget to remove the Live CD)

problem was solved.

I hope this help someone out there.

  • For GRUB2


Go to Terminal and do the following:

Mount the partition containing the ubuntu installation.

1. sudo mount /dev/sdXY /mnt

Run the grub-install command as described below

2. sudo grub-install -root-directory=/mnt/ /dev/sdX

Exit the Terminal

reboot the laptop and boot normal, (do not foget to remove the Live CD)

problem was solved.

2 comments:

  1. [...] How to fix Grub Error after reinstalling Windows7 on a dual boot laptop ? (jasmedia2011.wordpress.com) LD_AddCustomAttr("AdOpt", "1"); LD_AddCustomAttr("Origin", "other"); LD_AddCustomAttr("theme_bg", "ffffff"); LD_AddCustomAttr("theme_text", "333333"); LD_AddCustomAttr("theme_link", "222222"); LD_AddCustomAttr("theme_border", "dddddd"); LD_AddCustomAttr("theme_url", "346ba4"); LD_AddCustomAttr("LangId", "19"); LD_AddCustomAttr("Tag", "linux"); LD_AddCustomAttr("Tag", "tips-2"); LD_AddCustomAttr("Tag", "boot"); LD_AddCustomAttr("Tag", "boot-managers"); LD_AddCustomAttr("Tag", "device-file"); LD_AddCustomAttr("Tag", "disk-partitioning"); LD_AddCustomAttr("Tag", "distributions"); LD_AddCustomAttr("Tag", "gnu-grub"); LD_AddCustomAttr("Tag", "grub"); LD_AddCustomAttr("Tag", "linux"); LD_AddCustomAttr("Tag", "operating-system"); LD_AddCustomAttr("Tag", "tips"); LD_AddCustomAttr("Tag", "ubuntu"); LD_AddSlot("LD_ROS_300-WEB"); LD_GetBids(); Like this:LikeOne blogger likes this post. Etiquetado:boot, Boot Managers, Device file, Disk partitioning, Distributions, GNU GRUB, Grub, Linux, Operating system, Tips, Ubuntu Posted in: Linux, TIPS ← Reparando el problema de Flash-player 10-Ubuntu en una migraciĆ³n a Squeeze Un blog de mucha calidad… → Be the first to start a conversation [...]

    ReplyDelete