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 |
Why not just add an entry into the grub configuration that is used to allow the other operating system?
Regards, Alunduil |
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. |
Thanks when I try what you suggested it then says grub-install: command not found
|
Quote:
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 |
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 |
All times are GMT -5. The time now is 12:54 AM. |