LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 01-21-2007, 06:15 PM   #1
jaygee02
Member
 
Registered: Aug 2005
Location: New Zealand
Distribution: Kubuntu 6.06
Posts: 32

Rep: Reputation: 15
Reinstall grub


Recently had to reinstall windows, and now grub is gone. Have searched the forums and tried the suggestions there, but when I try to do grub-install /dev/hda6 I either get an error like /boot not found, or if I do the chroot /media/hda6 (where linux is located) it then tells me /dev/hda.
What am I doing wrong?
I have Linux installed on a partition on a 200GB ide drive, which also has an ntfs partition on it, and a small 300MB fat partition (the first partition) which I was previously told I needed for booting to work (I don't think I did in the end, so used it as a swap drive between Linux and Windows). Windows is installed on a striped array. I did have grub installed on the IDE drive before I lost it, and haven't been able to install it back on.

BTW am running Kubuntu 6.10.
 
Old 01-21-2007, 11:17 PM   #2
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 883

Rep: Reputation: 78
download the super grub disk.
Burn it and reinstall grub.
 
Old 01-22-2007, 12:00 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,050

Rep: Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971
if you can chroot in o.k., simply do "grub-install /dev/hda" - note: to the device itself (for the MBR), not the partition.
 
Old 01-22-2007, 12:02 AM   #4
jaygee02
Member
 
Registered: Aug 2005
Location: New Zealand
Distribution: Kubuntu 6.06
Posts: 32

Original Poster
Rep: Reputation: 15
Tried that, got an error. Will try the supergrub thing
 
Old 01-22-2007, 02:01 AM   #5
jaygee02
Member
 
Registered: Aug 2005
Location: New Zealand
Distribution: Kubuntu 6.06
Posts: 32

Original Poster
Rep: Reputation: 15
Worked great, thanks
 
  


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
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
GRUB Reinstall scripts Linux - Software 1 02-21-2005 06:55 PM
how to reinstall grub? spchehe Linux - Software 2 08-17-2004 07:09 PM
Can't reinstall GRUB gandalfthewite Linux - General 4 01-26-2004 03:31 AM


All times are GMT -5. The time now is 01:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration