LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-06-2004, 09:13 AM   #1
linuxtesting2
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Rep: Reputation: 30
grub question


i have installed fedora core 2, and i dualboot with windows. I needed to reinstall windows, so now i dont have grub. I tried to boot with the fedora cd, and got the filesystem mounted under /mnt/sysimage, and i could read and write to my filesystem. But how do i set grub to be the default bootmanager again, with lilo i could just do lilo command I tried with the command "grub-intstall /dev/hdx" and "grub-intstall /mnt/sysimage/dev/hdx", but that doesnt work, and i dont have any floppy. So what commando do i need to run ?


-ole
 
Old 09-06-2004, 09:34 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hey

did u try
"grub-install /dev/hdx"
or
"grub-instrall /dev/hda"

u shouldbe trying the last one

regards
 
Old 09-06-2004, 09:38 AM   #3
linuxtesting2
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Original Poster
Rep: Reputation: 30
i did try grub-install /dev/hda2 , not just hda, because /boot is on hda2, should i try just hda ?

-ole
 
Old 09-06-2004, 09:49 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi u should try

grub-install /dev/hda

and this write the grub mbr on the MBR and if u ever want to remove that u can do the following

boot from a win98 cd
at the command prompt
#fdisk /mbr
will remve grub and rewrite the windows MBR to it


or boot from a winxp/200 cd in to recovery console
and use "fixmbr"

regards
gaurav
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub question...? matthewa Linux From Scratch 2 06-06-2005 03:08 PM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 01:51 PM
Grub question? BajaNick Linux - General 4 07-31-2003 11:35 PM
Grub question? BajaNick Linux - General 0 07-30-2003 07:58 PM
GRUB question malbo1 Linux - General 1 02-27-2003 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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