Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming gpu hard drive hardware hdmi internet laptop malware memory monitor motherboard netgear network printer problem ram registry router security slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Restoring an Overwritten GRUB Boot Loader

Reply  
Thread Tools
RootbeaR's Avatar
Computer Specs
Distinguished Member with 4,606 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
06-May-2009, 06:40 PM #1
Restoring an Overwritten GRUB Boot Loader
"I like to have lots of choice about which operating system I can boot to. Between my desktop PC’s two hard drives, I have at least three distributions of Linux and several versions of Windows, so I have complete OS flexibility.

Unfortunately, maintaining a multi-boot configuration like this can be a pain, especially if you later install an operating system which overwrites the GRUB boot loader you had in place (such as a version of Windows). If your boot loader is overwritten, you could be left with no choice but to boot the most recently installed OS.

In this tutorial, I will show you how to restore an overwritten copy of the GRUB boot loader by using a Linux live CD. In this example, my master GRUB installation is on a Kubuntu 8.10 installation, and I’m using an older Kubuntu 8.04 Live CD I have lying around."
http://fosswire.com/post/2009/5/rest...rwritten-grub/
__________________
"The only stupid question is the one not asked." Me
Empowered by Linux
"Software is like sex; it’s better when it’s free." Linus Torvalds
saikee's Avatar
Senior Member with 3,409 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
09-May-2009, 05:38 PM #2
Many Live CD now use stage2_eltorito instead of isolinux for booting. That means Grub is available before a Linux is booted

Press "esc" follow by the "c" key can drop a user into a Grub prompt.

In a Grub prompt one can see the partition layout of the 1st and 2nd disk by
Code:
geometry (hd0)
geometry (hd1)
If one want restore Grub in partition (hd0,2) to MBR the commands are
Code:
root (hd0,2)
setup (hd0)
To make the partition (hd0,2) chainloadable by another boot loader the command is
Code:
root (hd0,2)
setup (hd0,2))
Any installed Dos, Windows, Vista must have a ntfs partition of Type 7, say it is in (hd0,0) then Grub can fire it up by command
Code:
root (hd0,0)
makeactive
chainloader +1
boot
With a bit of experience a Grub prompt is all a PC user needs to boot any installed OS. A Linux can have no boot loader installed yet it can be booted manually by a Grub prompt.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:25 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.