LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-08-2002, 04:31 PM   #1
Snake007uk
Member
 
Registered: May 2002
Location: London
Distribution: Redhat 7.3
Posts: 84

Rep: Reputation: 15
Grub repair


ok i had redhat 7.3 dual booting with windows XP perfectly, bu then my XP messed up so instead i reinstalled win2k, and uyes i know the over writes the MBR but i was wondering is there a way i mean i didnt put the linux on the first secotr i installed it on the MBR coz i was using Grub bootloader to dual boot, but im not bothered if iused grub or not,m but i need to be able to boot into linux one way or another but i have an SMP system so i do want it to boot the smp kernel, so is there a way i can either restore the grub bootloader or some how boot it using windows boot loader ?

Snake
 
Old 05-08-2002, 05:19 PM   #2
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Here is a related thread where I tell how to make a syslinux boot floppy:
http://www.linuxquestions.org/questi...threadid=19989
 
Old 05-08-2002, 05:33 PM   #3
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
You can dual boot W2K and Linux using either Grub or W2K's NTLDR. Either way you will need to get back to your Linux space to get some data or update Grub.

Get a boot floppy going (either the one that you should have made during your Linux installation, or a downloaded one) then come back for furhter instructions. Or you can go to linuxdoc.org and try to follow some of the dual boot how-tos.
 
Old 05-08-2002, 05:43 PM   #4
Snake007uk
Member
 
Registered: May 2002
Location: London
Distribution: Redhat 7.3
Posts: 84

Original Poster
Rep: Reputation: 15
ive got a bootfloppy which i am using at the moment, but please remeber that when i installed linux i installed th eboot loader in the mbr and now that has been overwritten by nt bootloader!

any instruction s would be great

Snake
 
Old 05-08-2002, 06:15 PM   #5
Snake007uk
Member
 
Registered: May 2002
Location: London
Distribution: Redhat 7.3
Posts: 84

Original Poster
Rep: Reputation: 15
i dont want to boot from floppy, this is the problem

i had dusl boot working fine using grub but when my windows xp messed up i re installed win2k ok, now the MBR as be re written so so ican get a bootsect image of linux as i didnt place it in the first secotr of the drive i put it in !

i have linux and windows each on a seperate drive,

what i wanted to know was could i some how boot into linux ? without the use of a floppy ?

i know i installed the bootloader on the MBR and now that is gone but how do i get it to boot withou floppy !

icant even th do the dd .... thing coz i dont have a bootsecotr of the first sector of that drive!

if i cant get this sorted i will have to just re install linux, but i know there is a way around it, imean if you remove windows of the mbr all u have to do is boot up using the win2k cd got to the console and type "fixmbr " and it replace your bootsector witha valid one.. so there must be a way of sorting this out

Snake

Last edited by Snake007uk; 05-08-2002 at 08:27 PM.
 
Old 05-09-2002, 04:42 AM   #6
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Boot into linux and as root run the command grub-install (hd?). Replace the ' ? ' with the correct drive number. If you want to install it in the mbr of the primary master drive ( hda ), use ' 0 ' ( zero ). If it's the primary slave ( hdb ) then use ' 1 ' ( one ). Then reboot and see if it works.
 
Old 05-09-2002, 08:04 AM   #7
Snake007uk
Member
 
Registered: May 2002
Location: London
Distribution: Redhat 7.3
Posts: 84

Original Poster
Rep: Reputation: 15
the problem is m8 i did that last time and i could even repair the bootsector i had to wip off everything and start over because windows would load

Snake
 
Old 05-09-2002, 09:14 AM   #8
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
Linuxcool is correct. Once you run grub-install, there should be a menu.lst file in /boot/grub that you can manually modify to set your default boot option and default boot time. Try it and see if you can find that file. You may need further assitance in editing that file, but the information in menu.lst is used to control your boot options under Grub.
 
Old 05-09-2002, 01:14 PM   #9
Snake007uk
Member
 
Registered: May 2002
Location: London
Distribution: Redhat 7.3
Posts: 84

Original Poster
Rep: Reputation: 15
i type the command "grub-install (hda)"

but nothing happend it give the following error!

grub-install (hda0)
bash: syntax error near unexpected token `(hda0)'
[root@SKYNET root]#
 
Old 05-09-2002, 02:49 PM   #10
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
Try grub-install /dev/hda
 
Old 05-09-2002, 04:26 PM   #11
Snake007uk
Member
 
Registered: May 2002
Location: London
Distribution: Redhat 7.3
Posts: 84

Original Poster
Rep: Reputation: 15
cheers m8 it all worked well!!! it working fine thanks!

thanks guyz

Snake
 
Old 05-10-2002, 04:31 AM   #12
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Snake007uk, I'm sorry you didn't understand my suggestion. If you had, you would have run the command grub-install (hd0). It's the same as running grub-install /dev/hda. hd0 is grub's way of labeling hda.

Glad you got it working.
 
Old 05-10-2002, 05:21 AM   #13
murshed
Member
 
Registered: Jan 2002
Posts: 157

Rep: Reputation: 30
i wonder why this happened to u from the beginning!

cuase i had this case exactly, with small differences ..

i had winxp .. and redhat 7.2 ..with lilo

i formated the winxp drive and installed win2k ...
but nothing happened to the lilo!!
it was still there .!! didn't disappear .. i asked someone about this thing.. and he said that win2k boots from boot.ini and doesn't do any thing to the MBR

now i upgraded to redhat 7.3 with grub .. it looks better that hte lilo


cheers
 
Old 05-10-2002, 08:14 AM   #14
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
As the great Winston Churchill said "We are two people separated by a common language". Glad you got it going !!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
howto repair GRUB using debian setup CD ? cccc Linux - Distributions 4 11-06-2010 07:00 AM
repair console pansarevaibhav Linux - Newbie 1 10-15-2005 02:58 PM
repair 10.1 ??? d1l2w3 Mandriva 1 04-10-2005 11:27 AM
GRUB repair on dual boot system NickTheBubble Linux - Newbie 2 10-07-2004 02:06 PM
Repair grub? nyroc Linux - Newbie 1 01-09-2003 07:50 PM


All times are GMT -5. The time now is 08:41 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