Bug#586143: Doesn't boot: Unaligned pointer 4c191bea

Colin Watson cjwatson at debian.org
Wed Jun 16 20:48:00 UTC 2010


On Wed, Jun 16, 2010 at 09:17:10PM +0200, Guido Günther wrote:
> after the upgrade:
> 
> grub-pc 1.98+20100527-2 1.98+20100614-1
> 
> system won't boot anymore. Grub prints:
> 
> Unaligned pointer 0x4c191bea - press any key
> 
> After pressing a key it says "No operation system found" - seems grub
> quit. Downgrading to 1.98 and running grub-setup /dev/sda makes the
> system boot again.

(Don't use grub-setup directly; use grub-install.)

With 1.98+20100614-1, could you please temporarily apply this patch to
/usr/sbin/grub-install:

--- grub-install.orig	2010-06-04 17:56:55.000000000 +0100
+++ grub-install	2010-06-16 21:45:44.000000000 +0100
@@ -285,6 +285,9 @@
 prefix_drive=
 config_opt=
 
+echo 'set debug=all' > ${grubdir}/load.cfg
+config_opt="-c ${grubdir}/load.cfg "
+
 if [ "x${devabstraction_module}" = "x" ] ; then
     if [ x"${install_device}" != x ]; then
       if echo "${install_device}" | grep -qx "(.*)" ; then
@@ -305,7 +308,7 @@
           echo "UUID needed with ata mod, but the filesystem containing ${grubdir} does not support UUIDs." 1>&2
           exit 1
         fi
-        echo "search.fs_uuid ${uuid} root " > ${grubdir}/load.cfg
+        echo "search.fs_uuid ${uuid} root " >> ${grubdir}/load.cfg
 	echo 'set prefix=($root)'"${relative_grubdir}" >> ${grubdir}/load.cfg
 	config_opt="-c ${grubdir}/load.cfg "
         modules="$modules search_fs_uuid"
@@ -315,7 +318,7 @@
           echo "You attempted a cross-disk install, but the filesystem containing ${grubdir} does not support UUIDs." 1>&2
           exit 1
         fi
-        echo "search.fs_uuid ${uuid} root " > ${grubdir}/load.cfg
+        echo "search.fs_uuid ${uuid} root " >> ${grubdir}/load.cfg
 	echo 'set prefix=($root)'"${relative_grubdir}" >> ${grubdir}/load.cfg
 	config_opt="-c ${grubdir}/load.cfg "
         modules="$modules search_fs_uuid"

Then run 'grub-install /dev/sda', reboot, and show me as much of the
output as you can, and certainly the end of it.  Hopefully it's failing
late enough for this to be useful!

Thanks,

-- 
Colin Watson                                       [cjwatson at debian.org]





More information about the Pkg-grub-devel mailing list