LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   problem with grub!! (https://www.linuxquestions.org/questions/debian-26/problem-with-grub-314886/)

kaktous 04-19-2005 09:25 AM

problem with grub!!
 
hi ...
i have problem.....i try to reinstall my winXP ....
after installation grub didn't work....
and computer just boot win
how can i load grub?
i use debian sarge 3.1

mikeyt_333 04-19-2005 10:08 AM

You'll need the deb CD. Boot off of the CD and then go through and install grub back on your system. When you installed Windows you wiped out the MBR (Master Boot Record) and lost the grub instance. All the grub info you need can be found here: http://docsrv.sco.com:8457/cgi-bin/info2html?(grub.info.gz)Top

mcosta 04-19-2005 10:34 AM

This will sound scary if you are newbie. But it's the fastest way to recover grub.

-Boot with sarge CD, do not make anything...
-Press crtl+alt+f2 to get a console
-Mount the root fs (ie: mkdir rootfs; mount /dev/hda2 rootfs)
-chroot on it (ie: chroot rootfs)
-Now you have the installed debian fs as /. just type "grub-install /dev/hda"

Something stated above may be incorrect, please look /boot/grub/menu.lst. Please watch your steps and guess your correct partition (may be hda2, or may be not)

kaktous 04-19-2005 01:52 PM

ctrl+alt+F2 is not working!!!

Moloko 04-19-2005 05:56 PM

Or use knoppix and boot with "knoppix 2"

johnMG 04-19-2005 09:07 PM

> ctrl+alt+F2 is not working!!!

Try leaving out the ctrl key.

Also, make sure and try the alt key on both sides of the keyboard (one side may not work -- at least, that's how it is sometimes on my fancy programmable keyboard).

BTW, you don't have to specifically hit the F2 key. Try some other F keys (like F1 through F6). Hitting those key combinations just moves you through the virtual consoles. If you hit alt-F7, it usually takes you to the virtual console running X11. To get out of there, *that's* when you need to use the ctrl key too (along with the alt and the F-key).


All times are GMT -5. The time now is 03:59 AM.