Read on full site | Join TechSpot! (it's free) | Bookmark / Share this



I need to get my Grub loader back

chadro
02-24-2004, 04:16 PM
I just reformatted the XP partition and lost the Linux Red Hat 9 Grub boot loader. Any easy way i can get it back??? I cant boot into Linux no more :(. Reply to me as i am a noob at Linux. Thank you

Nodsu
02-25-2004, 05:27 AM
How did you install Grub in the first place?

Ad
02-25-2004, 05:27 AM
  

MattG
02-25-2004, 03:23 PM
Grub installs on some flavors during install...assuming its either on the super Block or the MBR?

more info is needed.

chadro
02-25-2004, 03:52 PM
uh....ok??? but anyway......there was no /boot partition installed so i assume the loader was in the MBR. I heard there was a way to recover the loader using the boot disk i made. Do you know the commands?

Nodsu
02-25-2004, 04:38 PM
You put the floppy in and boot into linux. It should boot nicely into the graphic environment.

Look in /boot/grub/menu.lst file. If you see an entry for your Windows there then Grub was in the MBR or even if it wasn't, you will still be able to get into Windows after you install Grub. Use the grub-install command to put Grub back. It should be sth like "grub-install /dev/hda".

chadro
02-25-2004, 08:15 PM
DO i enter the grun-install/dev/hda commands at the Terminal Prompt (bash) or do i do them after the boot disk is loaded?

Phantasm66
02-25-2004, 08:25 PM
1>Method One - Boot from Installation CD

boot from the linux CD.

type this at the boot prompt:

linux rescue

use the ensuing rescue procedure to get to a command line, with your / mounted, say as /mnt/rescue

then say this:

chroot /mnt/rescue

now your / on your HDD is mounted as / and not /mnt/rescue (formerly, / was the root of the RAM drive your CD boot sets up.)

Now, type this:

/sbin/grub-install /dev/hda

now this

exit

exit

and reboot.


2> Method 2 - Boot from rescue floppy

once the floppy is booted, and you have logged in:

/sbin/grub-install /dev/hda

now reboot.

MattG
02-26-2004, 12:04 PM
Phantasm to the resuce :)

That should work. Let us know if it does not.

Post a reply, see related topics & more

Tip: Download Advanced SystemCare 3 Free - Clean, Repair, Protect & Optimize your PC.



 Top Technology News

TechSpot Blog: Disable Windows automatic check for solutions after a program crashes

Weekend Open Forum: Google Chrome OS and the future of cloud computing

Tech Tip of the Week: Unearth Region-Specific Windows 7 Themes

Weekend tech reading: How to run Chrome OS as virtual machine

Sony: PlayStation 3 to be 3D-capable via firmware update

iSuppli: DDR3 to account for over half of DRAM shipments by Q2 2010

Facebook named third most popular video website behind YouTube and Hulu

Patriot introduces new PS-100 SSD series

More Tech News

  
 Software Downloads

Norton Virus Definitions 2003-07 November 20, 2009

AVG Anti-Virus Updates November 20, 2009

Norton Virus Definitions 2008-09 November 20, 2009

avast! Virus Definitions November 20, 2009

McAfee SuperDAT Update 5808

Kaspersky Anti-Virus Update November 20, 2009

Google SketchUp 7.1.6087

More Downloads



Copyright © 1998-2009 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.