LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-25-2005, 04:02 PM   #1
fazaman
LQ Newbie
 
Registered: Feb 2005
Distribution: Debian Sarge
Posts: 14

Rep: Reputation: 0
Reinstalling GRUB in Sarge


Pleaaase respond quickly I just can't stand Windows anymore!!!!

I had to reinstall windows 98 for the kids and that killed by GRUB so i had to re-install it but I don't know how!
I searched google but couldn't find what I wanted

All I have is the Debian Net Installlation CD and KNOPPIX LiveCD (if it helps)

Thank You
 
Old 02-25-2005, 04:26 PM   #2
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 32
that is all you need.

But i need to know about your current setup.

Are windows and linux on the same hard drive? and what partition is linux on.

you get boot up into knoppix, then open up a terminal and type

su and then become root(no password)

then mkdir /mnt/debian

then mount /dev/(whatever linux is, for example hda1) /mnt/debian

chroot /mnt/debian

then run grub-install /dev/hda
 
Old 02-25-2005, 04:30 PM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Well boot knoppix, open a terminal and run grub. You'll need to tell it where it's configuration files are. Grub counts from zero so numbers are one less than you'd expect. Also, it uses numbers instead of letters so to grub, /dev/hda5 (for example) is (hd0,4) and /dev/hdb8 would be (hd1,7). So if your /boot/grub/grub.conf is on /dev/hda3 enter
grub
> root (hd0,2)
> setup (hd0)
> quit
 
Old 02-25-2005, 04:35 PM   #4
fazaman
LQ Newbie
 
Registered: Feb 2005
Distribution: Debian Sarge
Posts: 14

Original Poster
Rep: Reputation: 0
thanks I will certainly try it!
I have 1 HDD 20 GB for windows 20 GB for linux
the linux part contains 1 Ext3 partition and the Swap
 
Old 02-25-2005, 05:16 PM   #5
fazaman
LQ Newbie
 
Registered: Feb 2005
Distribution: Debian Sarge
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Andrew Benton
Well boot knoppix, open a terminal and run grub. You'll need to tell it where it's configuration files are. Grub counts from zero so numbers are one less than you'd expect. Also, it uses numbers instead of letters so to grub, /dev/hda5 (for example) is (hd0,4) and /dev/hdb8 would be (hd1,7). So if your /boot/grub/grub.conf is on /dev/hda3 enter
grub
> root (hd0,2)
> setup (hd0)
> quit

Thank you Thank you Thank you!

It worked
 
  


Reply



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
reinstalling grub. greythorne Ubuntu 23 12-03-2005 01:51 AM
GRUB not reinstalling jboo Linux - Software 5 10-02-2005 10:55 AM
reinstalling GRUB 0perat0r Linux - Newbie 7 05-02-2005 02:30 PM
Reinstalling grub darkangel29 Linux - Newbie 3 04-03-2005 05:53 PM
Reinstalling GRUB Petelow Linux - Newbie 1 05-24-2004 04:03 AM

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

All times are GMT -5. The time now is 02:12 PM.

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
Open Source Consulting | Domain Registration