Tip Details Add a Related Tip

Rate as: Positive Negative

Restore grub after installing windows

So you've decided to reinstall windows after installing linux for some reason. Now windows (being the insecure (no pun intended) OS it is, wants complete power, so it automatically boots up to itself. You want to restore grub so you can choose whether to boot linux or windows. Here's a very easy and quick way to do it.

1. Pop in a restore cd that has grub on it (ubuntu has it, knoppix should)
2. Open a terminal

sudo grub
find /boot/grub/stage1
root (hd,?,?) [replace the ? with whatever find /boot/grub/stage1 gives you]
setup (hd0)
quit

3. Restart and grub will magically re-appear
Rating: 95% positive, 23 total Votes
Categories: grub linux windows ubuntu restore cd
Added: on Mar 08, 2007 at 4:06 pm
Added By: an anonymous user
Searches: grub window restore linux

Comments on this Tip

Add a Comment
on line "root (hd,?,?) [replace the ? with whatever find /boot/grub/stage1 gives you]"

replace root (hd,?,?) with (hd?,?) Sorry for the typo
– Added by an anonymous user on Apr 19, 2007 at 2:49 pm
thank you so much! This was exactly the fix I needed. Very clear, succinct, and successful! Thanks!
– Added by an anonymous user on Nov 09, 2008 at 1:39 pm
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

restoring grub

100% positive, 0 comments
– Tip added by an anonymous user on Apr 25, 2007 at 6:50 am

Add windows to grub menu

Categories: linux grub windows
76% positive, 0 comments
– Tip added by an anonymous user on Mar 08, 2007 at 4:34 pm

Adjusting the GRUB selection time

Categories: linux grub ubuntu
100% positive, 0 comments
– Tip added by an anonymous user on Jul 29, 2007 at 6:16 am

Dual booting Vista and Ubuntu

Categories: windows Vista linux ubuntu
100% positive, 0 comments
– Tip added by an anonymous user on Jul 03, 2007 at 8:53 am

Hacking Windows Using Linux

85% positive, 0 comments
– Tip added by an anonymous user on Jun 08, 2009 at 12:03 pm

20 Free Operating Systems that are not Windows

85% positive, 0 comments
– Tip added by an anonymous user on Jul 05, 2009 at 8:47 am

Mount windows partition temporarily in linux

Categories: linux mounting windows
85% positive, 0 comments
– Tip added by an anonymous user on Mar 08, 2007 at 3:53 pm

Cleaning up the Grub boot menu in Ubuntu

Categories: ubuntu grub
100% positive, 0 comments
– Tip added by grrreat! on Sep 06, 2007 at 6:41 am

Restarting X Windows in Ubuntu

Categories: ubuntu linux
50% positive, 2 comments - last added on Jul 22, 2009 at 9:54 am
– Tip added by an anonymous user on Apr 10, 2007 at 8:04 am

Automatic logins on Ubuntu

Categories: ubuntu linux security
100% positive, 0 comments
– Tip added by an anonymous user on Oct 04, 2007 at 1:17 pm

Photobooth for Linux

no ratings, 0 comments
– Tip added by an anonymous user on Nov 07, 2008 at 11:34 am

Context highlighting in nano

no ratings, 0 comments
– Tip added by an anonymous user on Aug 05, 2007 at 8:17 am

Monitor network traffic in Linux

Categories: linux ubuntu Gentoo network
no ratings, 0 comments
– Tip added by an anonymous user on Jul 13, 2007 at 4:42 pm

Setting Windows as the default when dual-booting Ubuntu

Categories: windows ubuntu
no ratings, 0 comments
– Tip added by an anonymous user on Apr 16, 2007 at 5:19 pm

Restarting X Server in Ubuntu

100% positive, 1 comment - last added on Nov 06, 2009 at 10:11 pm
– Tip added by an anonymous user on Oct 24, 2009 at 6:42 am

Open My Computer more quickly

Categories: Windows speed computers
100% positive, 0 comments
– Tip added by an anonymous user on Aug 13, 2009 at 7:01 pm

Change your scroll bar width

100% positive, 0 comments
– Tip added by an anonymous user on Aug 04, 2009 at 2:13 pm

Keep windows from powering off USB devices

Categories: Windows USB power
no ratings, 0 comments
– Tip added by an anonymous user on Oct 10, 2009 at 1:17 pm

Manage your battery in linux

no ratings, 0 comments
– Tip added by an anonymous user on Sep 03, 2009 at 1:29 pm

Disabling Pigin Notifications

no ratings, 0 comments
– Tip added by an anonymous user on Aug 13, 2009 at 12:33 pm