Personal computing discussed

Moderators: SecretSquirrel, notfred

Graphmaster Gerbil
Topic Author
Posts: 1490
Joined: Mon Nov 19, 2007 4:42 pm
Location: Guelph, ON, Canada.

GRUB restore

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.
i5-6600K@4.2ghz | R9 380X | 16 GB RAM | BX100 500 GB
Sempron 2650@1.45GHZ | 2 GB RAM | 6 TB | FreeBSD 10
Grand Gerbil Poohbah
Posts: 3338
Joined: Mon Feb 18, 2002 7:00 pm
Location: Great Smoky Mountains

Re: GRUB restore

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.
Maximum Gerbil
Posts: 4316
Joined: Tue Aug 10, 2004 10:10 am
Location: Ottawa, Canada

Re: GRUB restore

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.

Who is online

Users browsing this forum: No registered users and 1 guest