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?
Main Rig: FX-6100@4.2ghz / Radeon 6950 / Velociraptor HD / 8GB Ram / Win 7 x64
Backup/FIleserver: Sempron 2650 / 6 TB storage / FreeBSD 10 / hilariously inside a Cooler Master Cosmos case
pikaporeon
Graphmaster Gerbil
 
Posts: 1321
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.
http://www.gentoo.org
Guy 1: Surely, you will fold with me.
Guy 2: Alright, but don't call me Shirley.
titan
Grand Gerbil Poohbah
 
Posts: 3276
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.
notfred
Grand Gerbil Poohbah
 
Posts: 3775
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