also @ TechSpot: Samsung announces Galaxy Tab 2 with Android 4.0 ICS
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Software > The Alternative OS

Download Now:

I need to get my Grub loader back

Thread Tools Search this Thread
  #1  
Old 02-24-2004
TechSpot Member
 
Member since: Dec 2003, 38 posts
I need to get my Grub loader back

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
  #2  
Old 02-25-2004
Nodsu's Avatar
TechSpot Evangelist
 
Location: Estonia
Member since: Feb 2002, 9,431 posts
System specs
How did you install Grub in the first place?
  #3  
Old 02-25-2004
MattG's Avatar
TechSpot Member
 
Location: Maine
Member since: Aug 2003, 147 posts
Grub installs on some flavors during install...assuming its either on the super Block or the MBR?

more info is needed.
  #4  
Old 02-25-2004
TechSpot Member
 
Member since: Dec 2003, 38 posts
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?
  #5  
Old 02-25-2004
Nodsu's Avatar
TechSpot Evangelist
 
Location: Estonia
Member since: Feb 2002, 9,431 posts
System specs
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".
  #6  
Old 02-25-2004
TechSpot Member
 
Member since: Dec 2003, 38 posts
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?
  #7  
Old 02-25-2004
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
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.

  #8  
Old 02-26-2004
MattG's Avatar
TechSpot Member
 
Location: Maine
Member since: Aug 2003, 147 posts
Phantasm to the resuce

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

Similar Topics
Topic Replies Forum
Deleted GRUB loader 1 Processors and Motherboards
Msn Loader.exe Problem 6 Software Apps
GRUB loader lost - how to reactivate it? 4 The Alternative OS
Trojan Loader 14 Virus and Malware Removal
IE loader Module 0 Software Apps

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 03:54 AM.