Re: Problems upgrading GRUB to GRUB2 while upgrading to Squeeze from Lenny
On Sat, Feb 5, 2011 at 9:04 PM, Markus Viitamäki <markus@viitamaki.net> wrote:
>
> I have this small problem to upgrade GRUB to GRUB2 when upgrading my
> boxes from Lenny to Squeeze.
>
> This problem seems to be related to using Raid or not, as the servers
> I've tested on and want to upgrade is either using mdadm-raid or
> hardware-raid. (I have not been able to test on a non-raid system as i
> don't have one)
>
> The problem is that grub-pc package wont install as it fails on a
> problem like this:
>
> Setting up grub-pc (1.98+20100804-14) ...
> /var/lib/dpkg/info/grub-pc.postinst: line 270: 18302 Killed
> grub-mkdevicemap --no-floppy
> dpkg: error processing grub-pc (--configure):
> subprocess installed post-installation script returned error exit status 137
> configured to not write apport reports
> dpkg: dependency problems
> prevent configuration of grub:
> grub depends on grub-pc; however:
> Package grub-pc is not configured yet.
> dpkg: error processing grub (--configure):
> dependency problems - leaving unconfigured
> configured to not write apport reports
> Errors were encountered while processing:
> grub-pc
> grub
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> And I've tried a few other things to just get more information but
> without success.
>
> grub-install --recheck /dev/sda
> /usr/sbin/grub-install: line 285: 18340 Killed
> $grub_mkdevicemap --device-map=$device_map $no_floppy
> grub-mkdevicemap --no-floppy
> Killed
>
> This is the setup of the system and partitions I have:
> df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/sda3 5.1G 2.7G 2.2G 55% /
> /dev/sda1 59M 19M 37M 34% /boot
> /dev/sda4 129G 63G 60G 52% /var
grub-pc doesn't seem to like your hardware RAID.
Does "grub-mkdevicemap --verbose --no-floppy" give a better clue to
what's failing?
Reply to: