GRUB restore

Where Penguins and Daemons chill together in the warmth of the Sun.

Moderators: SecretSquirrel, notfred

GRUB restore

Postposted on Fri Jun 05, 2009 6:12 pm

I accidentally overrote my GRUB for dual booting when I installed Vista again. What's the simplest way to rescue it?
Hey girl you want a bad boy? I overclock my backup servers.
Graphmaster Gerbil
Posts: 1402
Joined: Mon Nov 19, 2007 4:42 pm
Location: Mississauga, ON, Canada.

Re: GRUB restore

Postposted on Fri Jun 05, 2009 9:43 pm

Use a LiveCD that you can install Grub with. I believe Gentoo's LiveCD can do that. At any rate, you can use it to chroot to you Linux install.
The best things in life are free.
Guy 1: Surely, you will fold with me.
Guy 2: Alright, but don't call me Shirley.
Grand Gerbil Poohbah
Posts: 3296
Joined: Mon Feb 18, 2002 7:00 pm
Location: Great Smoky Mountains

Re: GRUB restore

Postposted on Sun Jun 07, 2009 10:23 am

Boot from any live CD or something like SystemRescueCD, basically anything that runs Linux with GRUB on it:

1) Become root (if you are not already)
2) "grub" will get you the grub prompt
3) "find /boot/grub/stage1" will print out where your install is located, should be something like "(hd0,0)"
4) "root (hd0,0)" or whatever from the previous step.
5) "setup (hd0)" to setup grub in the MBR on that drive.
Grand Gerbil Poohbah
Posts: 3967
Joined: Tue Aug 10, 2004 10:10 am
Location: Ottawa, Canada

Return to Linux, Unix, and Assorted Madness

Who is online

Users browsing this forum: No registered users and 1 guest