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: 94% positive, 19 total Votes
Categories: grub linux windows ubuntu restore cd
Added: on Mar 08, 2007 at 4:06 pm
Added By: an anonymous user

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
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
85% 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

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

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

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 Windows in Ubuntu

Categories: ubuntu linux
no ratings, 0 comments
– Tip added by an anonymous user on Apr 10, 2007 at 8:04 am

Copy and paste in the command prompt

Categories: windows DOS command line
100% positive, 0 comments
– Tip added by an anonymous user on Jul 09, 2008 at 11:36 am

Recovering from unmountable boot volume errors

100% positive, 0 comments
– Tip added by an anonymous user on Jun 18, 2008 at 2:46 pm

Permanently delete files in Windows

no ratings, 0 comments
– Tip added by an anonymous user 14 hours, 52 minutes ago

Access your Mac files from Windows in boot camp

no ratings, 0 comments
– Tip added by an anonymous user 1 day, 17 hours ago

Broken Java in Firefox 3

no ratings, 0 comments
– Tip added by an anonymous user on Jul 15, 2008 at 11:15 am

Enable the login shell for the Gnome terminal

no ratings, 0 comments
– Tip added by an anonymous user on Jul 15, 2008 at 10:46 am

Cleaning car windshields

no ratings, 0 comments
– Tip added by an anonymous user on Jul 15, 2008 at 8:32 am

Windows Vista 800B0100 error

no ratings, 0 comments
– Tip added by an anonymous user on Jul 07, 2008 at 9:08 pm

There is a better way to type unicode characters

Categories: windows Computers
no ratings, 0 comments
– Tip added by an anonymous user on Jun 21, 2008 at 9:24 pm