Reinstalling grub
I need to reinstall grub on my system. How do I do this? I am using Mandriva linux 2006 on KDE. My /boot/grub folder only contains "mdv-grub_splash.xpm.gz" and "menu.lst.example". Here is a link to the larger problem at hand, though reinstalling grub is the current issue.
|
The best thing to do is to reinstall the kernel. If you reinstall the kernel, then all supporting files will be installed. You could also try to configure the bootloader from the Mandriva control center and see if that generates the right files.
|
How do I reinstall the kernel?
|
Quote:
|
Running "uname -a" results in:
Code:
Linux localhost 2.6.12-12mdksmp #1 SMP Fri Sep 9 17:43:23 CEST 2005 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz unknown GNU/Linux After looking under installed packages in the Control Center, I now see the package I installed and "kernel-smp-2.6.12.12mdk-1-1mdk". Did I install the wrong one. Should I uninstall both and reinstall the original one? Should everything be fixed? Here's a screenshot of Control Center. |
In addition
Code:
[root@localhost ~]# rpm -Uvh --nodeps |
As root, type grub-install. It will install the files for you if they are not there and place GRUB in the master boot record.
|
Tried it Electro. Here's the results:
Code:
[root@localhost michael]# grub-install |
Well, your printout tells the story. You need to tell grub-install WHERE to install. check grub manual (or maybe man grub-install)
|
I don't know where to install. I tried this:
Code:
[root@localhost michael]# grub-install /boot/grub Code:
GRUB-INSTALL(8) FSF GRUB-INSTALL(8) Code:
[root@localhost michael]# info grub-install |
Assume you want grub located at your Master Boot Record on /dev/hda , type this :
grub-install /dev/hda Hope it helps you . |
[root@localhost michael]# info grub-install
bash: info: command not found => You not installed info yet . |
I tried it on various parts of my drive with the same error:
Code:
[root@localhost michael]# grub-install /dev/sda |
Quote:
Code:
# rpm -Uvh --nodeps kernel-version.rpm Anyway it seems like grub is not installed properly. I would uninstall it using rpmdrake and then reinstall it. After that reinstall your kernel so that it generates the right /boot/grub/menu.lst and other supporting files. |
regarding Grub install
hai..isawyour message ..
this is steps wefollow... 1. Boot your system using first CD in boot prompt type "linux rescue" 2. after getting one popup window just type "chroot /mnt/sysimage" 3. and lastly you get prompt..and then type "grub-install/dev/hda"(before that yousure about hard diskis connected to mastrer or slave) 4. and them reboot your system with regards Saran |
All times are GMT -5. The time now is 09:29 PM. |