PDA

View Full Version : Grub, Grubby and rpm issues combine to cause a problem


milomak
5th February 2011, 06:38 PM
I am having to chroot into my fedora install due to the last update I ran having removed kernel entries when a new kernel was installed through the update process.

Grubby gave an error that no suitable templates could be found when the kernel was being installed. During the same update my grub somehow got wiped.

So I manually edited grub.conf in the chroot environment and then ran grub-install --recheck /dev/sda14 - I previously had grub installed to the partition rather than the MBR.

This then returns an error

The file /boot/grub/stage1 not read correctly.

So then I thought I would reinstall grub, hoping that the stage1 issue would be resolved. This raised another problem where the system does nothing for hour plus at the part where it states it is installing grub

# time yum reinstall grub
Loaded plugins: fastestmirror, presto, protectbase
Setting up Reinstall Process
Loading mirror speeds from cached hostfile
* rawhide: ftp.uni-koeln.de
* rpmfusion-free-rawhide: mirror.switch.ch
* rpmfusion-nonfree-rawhide: mirror.switch.ch
0 packages excluded due to repository protections
Resolving Dependencies
--> Running transaction check
---> Package grub.x86_64 1:0.97-71.fc15 will be reinstalled
--> Finished Dependency Resolution

Dependencies Resolved

================================================== ================================================== ============
Package Arch Version Repository Size
================================================== ================================================== ============
Reinstalling:
grub x86_64 1:0.97-71.fc15 rawhide 655 k

Transaction Summary
================================================== ================================================== ============
Reinstall 1 Package(s)

Total download size: 655 k
Installed size: 2.3 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 655 k
grub-0.97-71.fc15.x86_64.rpm | 655 kB 00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:grub-0.97-71.fc15.x86_64 1/1
^C^C^C^X^X^Z
[1]+ Stopped yum reinstall grub

real 77m24.204s
user 0m0.000s
sys 0m0.000s

Just before I tried to reinstall grub, I had run the following successfully

# yum install nzbget
Loaded plugins: fastestmirror, presto, protectbase
Loading mirror speeds from cached hostfile
* rawhide: ftp.uni-koeln.de
* rpmfusion-free-rawhide: mirror.switch.ch
* rpmfusion-nonfree-rawhide: mirror.switch.ch
0 packages excluded due to repository protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nzbget.x86_64 0:0.7.0-1.fc15 will be installed
--> Processing Dependency: libpar2.so.0()(64bit) for package: nzbget-0.7.0-1.fc15.x86_64
--> Running transaction check
---> Package libpar2.x86_64 0:0.2-9.fc12 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================== ================================================== ============
Package Arch Version Repository Size
================================================== ================================================== ============
Installing:
nzbget x86_64 0.7.0-1.fc15 rawhide 155 k
Installing for dependencies:
libpar2 x86_64 0.2-9.fc12 rawhide 102 k

Transaction Summary
================================================== ================================================== ============
Install 2 Package(s)

Total download size: 257 k
Installed size: 689 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
rawhide/prestodelta | 1.2 MB 00:15
Processing delta metadata
Package(s) data still to download: 257 k
(1/2): libpar2-0.2-9.fc12.x86_64.rpm | 102 kB 00:01
(2/2): nzbget-0.7.0-1.fc15.x86_64.rpm | 155 kB 00:01
----------------------------------------------------------------------------------------------------------------
Total 84 kB/s | 257 kB 00:03
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : libpar2-0.2-9.fc12.x86_64 1/2
Installing : nzbget-0.7.0-1.fc15.x86_64 2/2

Installed:
nzbget.x86_64 0:0.7.0-1.fc15

Dependency Installed:
libpar2.x86_64 0:0.2-9.fc12

Complete!

---------- Post added at 03:19 PM ---------- Previous post was at 02:29 PM ----------

I normally chainload my Fedora grub from my Debian's grub. So I decided to edit the Debian grub for the Fedora entry to directly boot Fedora. That worked and I was able to run grub-install without the stage1 error showing up. And chainloading the Fedora grub now works again. At least one issue has been resolved.

---------- Post added at 08:38 PM ---------- Previous post was at 03:19 PM ----------

ran the latest updates. now when i installed a kernel grub.conf was updated. 2 out of 3 issues solved.