LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-19-2005, 09:25 AM   #1
kaktous
LQ Newbie
 
Registered: May 2004
Location: iran.tehran
Posts: 12

Rep: Reputation: 0
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
 
Old 04-19-2005, 10:08 AM   #2
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
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
 
Old 04-19-2005, 10:34 AM   #3
mcosta
Member
 
Registered: Jan 2005
Location: Spain
Distribution: Debian
Posts: 44

Rep: Reputation: 16
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)
 
Old 04-19-2005, 01:52 PM   #4
kaktous
LQ Newbie
 
Registered: May 2004
Location: iran.tehran
Posts: 12

Original Poster
Rep: Reputation: 0
ctrl+alt+F2 is not working!!!
 
Old 04-19-2005, 05:56 PM   #5
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Or use knoppix and boot with "knoppix 2"
 
Old 04-19-2005, 09:07 PM   #6
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 31
> 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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HDD problem, scancode problem and grub EJ_INSIDE Debian 2 07-15-2004 09:36 AM
problem with grub deNiro Debian 4 06-05-2004 10:54 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM
grub problem ianunderwood Linux - General 4 05-31-2003 05:45 AM
GRUB problem hfawzy Linux - Newbie 4 04-11-2003 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration