LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-27-2007, 12:45 PM   #1
ronty
LQ Newbie
 
Registered: Jun 2004
Location: Manchester UK
Distribution: Debian_OSX_Fedora_Slackware
Posts: 12

Rep: Reputation: 0
Smile grub-install


Hi I have just installed fedora 7 on sda and it installed the grub menu ok
I then Installed suse 10.3 on sdb it installed grub on sda.

I don't like suse so I want to reinstall grub for fedora 7.

grub-install --root-directory=/boot /dev/sda...sda0...hda...hda0 does not work. Has anybody got any ideas?

no other operating systems on either disks!

thanks

Last edited by ronty; 10-27-2007 at 12:49 PM.
 
Old 10-27-2007, 12:58 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Why not just add an entry into the grub configuration that is used to allow the other operating system?

Regards,

Alunduil
 
Old 10-27-2007, 02:12 PM   #3
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 616

Rep: Reputation: 182Reputation: 182
Hello ronty,

Since you don't like SUSE, you may very soon be removing it (and it's boot loader files). So, to reinstall GRUB in the master boot record using Fedora's stage1, boot with your F7 DVD into linux rescue. After chroot /mnt/sysimage at the sh prompt, try grub-install /dev/sda. If you get a "No corresponding drive in BIOS" error, try grub-install --recheck /dev/sda. That should cause your machine to boot into Fedora's GRUB menu to which you can even add SUSE until you decide once and for all to keep it or dump it.

Last edited by stoat; 10-27-2007 at 02:19 PM.
 
Old 10-27-2007, 03:23 PM   #4
ronty
LQ Newbie
 
Registered: Jun 2004
Location: Manchester UK
Distribution: Debian_OSX_Fedora_Slackware
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks when I try what you suggested it then says grub-install: command not found
 
Old 10-27-2007, 04:08 PM   #5
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 616

Rep: Reputation: 182Reputation: 182
Quote:
Originally Posted by ronty

Thanks when I try what you suggested it then says grub-install: command not found
If you...
  1. Boot from your Fedora 7 DVD
  2. Select "Rescue installed system"
  3. Answer prompts and follow directions
  4. Select your Fedora 7 partition (if offered a choice of multiple systems; otherwise disregard this)
  5. Enter chroot /mnt/sysimage at the sh-3.2# prompt
...then the command grub-install /dev/sda will work. I just tried it again for the nth time to reassure myself.

However, if you are issuing that command in a terminal in your running Fedora system, then you must become root for grub-install to work because it also rewrites files in the /boot/grub directory. If you become root in the terminal with su, then you must issue the command as /sbin/grub-install /dev/sda. If you become root in the terminal with su -, then simply grub-install /dev/sda will work.

It all has to do with the path you are using depending on how you are logged in with the terminal. See the different $PATH values for user, su, and su - on my machine...
Code:
[user@localhost ~]$ echo $PATH
/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/home/user/bin

[user@localhost ~]$ su
Password: 
[root@localhost user]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/home/user/bin

[user@localhost ~]$ su -
Password:
[root@localhost ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
Sorry, I didn't invent this.

Last edited by stoat; 10-27-2007 at 05:40 PM.
 
Old 10-28-2007, 04:00 AM   #6
ronty
LQ Newbie
 
Registered: Jun 2004
Location: Manchester UK
Distribution: Debian_OSX_Fedora_Slackware
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the information given.
Problem solved. I installed Debian on sdb installed boot blocks on sda and this time Fedora re-installed boot blocks on sda exactly as you suggested. It must have been a conflict with Suse boot blocks.
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 11:29 AM
Grub - Does fedora automatically install a bootloader like grub? or... mitchell7man Linux - Software 10 05-09-2007 11:49 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 01:55 PM
Need to (re)install GRUB: fedora c4 rescue cd (and GRUB) unable to see the harddisk whencat Fedora 4 03-05-2006 03:01 PM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 02:06 PM

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

All times are GMT -5. The time now is 01:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration