LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   HELP: Lost Grub Linux Booter (https://www.linuxquestions.org/questions/linux-general-1/help-lost-grub-linux-booter-380466/)

kevingpo 11-06-2005 09:25 AM

HELP: Lost Grub Linux Booter
 
I used knoppix-install to install Knoppix on my machine. Then I reinstalled Windows XP and it overrided my Knoppix grub loader. How can I restore my grub loader?

SlackerLX 11-06-2005 09:37 AM

http://www.tldp.org/HOWTO/Multiboot-with-GRUB.html
http://www.gnu.org/software/grub/

kevingpo 11-06-2005 09:47 AM

It's not easy as that, since Knoppix uses Debian, and it has grub set up totally differently.

I used to be able to boot up RedHat/Fedora rescue CD on a RedHat/Fedora system, then typing grub-install /dev/hda and woilia! it's done.

But this doesn't work on Knoppix/Debian...

SlackerLX 11-06-2005 10:00 AM

post your menu from grub here

craigevil 11-06-2005 10:17 AM

Just use the Knoppix cd to reinstall.

1) Boot using LiveCD.
2) Mount drive
3) Restore grub:
sudo chroot /mnt/hda1(or whatever your linux drive is) grub-install /dev/hda

Takes a whole 5 seconds.

If you use devfs or for some reason, the chroot environment doesn't work, mount the filesystem with write permissions then run
sudo grub-install -root-directory=/mnt/hda1 /dev/hda

tinybit 11-18-2005 10:19 PM

GRUB and LILO always conflict with Windows. And GNU GRUB is not so robust, causing many problems during boot.

So try GRUB for DOS please. It is a cross-platform boot loader based on GNU GRUB. The GRUB.EXE can be started from DOS/Win9x; and GRLDR can be started from BOOT.INI of Windows NT/2K/XP/2003; and even more, the GRUB.EXE can be started from LINUX via the KEXEC tool.

By using GRUB.EXE or GRLDR, you don't have to touch your MBR. It is the safest way coexisting with DOS/Windows.

You needn't install GRUB for DOS. Just run GRUB.EXE from DOS, or append a line of "C:\GRLDR=START GRUB" into your BOOT.INI(restart and select the "START GRUB" menu item), that will do.

Download GRUB for DOS here: http://freshmeat.net/projects/grub4dos/

There is a fat12grldr.img file with the GRUB for DOS release. You can create a GRUB bootable floppy with this fat12grldr.img file.

Or, you can just copy GRUB.EXE to your DOS floppy and run GRUB.EXE to enter the GRUB environment.

If the system has no DOS/WINDOWS, you may use the bootlace.com utility to write GRLDR boot record onto the MBR.

Rooy 11-27-2005 04:43 AM

Hi all,
I ran into the same prob like kevingpo, with XP & FC4. Can I use a RH 7.2 1st disk to rescue the GRUB?
Thanx.
Roy


All times are GMT -5. The time now is 07:46 AM.