From: Sylvain Archenault on

Hello,

After upgrading GRUB to 20100706, I am no more able to boot linux on my
macbook. When i choose from the refit menu to boot on my linux
partition,GRUB is stuck with this message : "GRUB _"

I boot with a live cd and chroot to the partition to reinstall it, but
it didn't help.

gptsync is happy:
Current GPT partition table:
# Start LBA End LBA Type
1 40 409639 EFI System (FAT)
2 409640 162946551 Mac OS X HFS+
3 162946552 319196552 Basic Data
4 319196553 488392064 MS Reserved

Current MBR partition table:
# A Start LBA End LBA Type
1 1 409639 ee EFI Protective
2 409640 162946551 af Mac OS X HFS+
3 * 162946552 319196552 83 Linux
4 319196553 488392064 c0 Unknown

Status: Tables are synchronized, no need to sync.



When running dpkg-reconfigure grub-pc, I got this:
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition
instead of the MBR. This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be
installed in this setup by using blocklists. However, blocklists are
UNRELIABLE and their use is discouraged..
Installation finished. No error reported.

I choosed /dev/sda3, which is my linux partition.


The last grub version working was 20100617, so I tried to reinstall it,
but it fails. I think something is wrong with the device map.

dpkg: warning: downgrading grub-common from 1.98+20100706-1 to
1.98+20100617-1.
(Reading database ... 133357 files and directories currently installed.)
Preparing to replace grub-common 1.98+20100706-1 (using
grub-common_1.98+20100617-1_i386.deb) ...
Unpacking replacement grub-common ...
dpkg: warning: downgrading grub-pc from 1.98+20100706-1 to 1.98+20100617-1.
Preparing to replace grub-pc 1.98+20100706-1 (using
grub-pc_1.98+20100617-1_i386.deb) ...
Unpacking replacement grub-pc ...
Setting up grub-common (1.98+20100617-1) ...
Installing new version of config file /etc/grub.d/00_header ...
Installing new version of config file /etc/grub.d/30_os-prober ...
Installing new version of config file /etc/grub.d/10_linux ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Setting up grub-pc (1.98+20100617-1) ...
Replacing config file /etc/default/grub with new version
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition
instead of the MBR. This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be
installed in this setup by using blocklists. However, blocklists are
UNRELIABLE and their use is discouraged..
/usr/sbin/grub-setup: error: cannot read `/boot/grub/core.img' correctly.
Generating grub.cfg ...
Found background image: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
Found linux image: /boot/vmlinuz-2.6.32-3-686
Found initrd image: /boot/initrd.img-2.6.32-3-686
Found linux image: /boot/vmlinuz-2.6.32-2-686
Found initrd image: /boot/initrd.img-2.6.32-2-686


How could i fix this? or having more info on why grub is stuck at boot
time ?

Thanks,
Sylvain.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4C38A640.2010506(a)laposte.net
From: Sylvain Archenault on

I managed to fix this.

I should have run "grub-install /dev/sda" at a moment instead of
"/dev/sda3/" which lead to a corrupt mbr.

I fixed this by clearing the mbr
(http://ubuntuforums.org/showthread.php?t=811240):
dd if=fakembr80.tx of=/dev/sda bs=512 count=1

and reinstalling grub:
gptsync
grub-install /dev/sda3
update-grub

Sylvain.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4C3AFE80.3060002(a)laposte.net