laptop fails to boot; grub2 sees garbage in /boot/grub/grub.cfg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: grub2
My sister installed Ubuntu 9.10 on her laptop using Wubi. The boot sequence is MBR -> NTLDR -> Grub2 -> Ubuntu. It worked fine after initial installation. After a couple of Ubuntu kernel updates, new kernels stopped booting (Grub2 complained "must load a kernel first"), but old kernels still worked. After my attempts to fix the boot process by running
sudo apt-get install linux-image-
grub2 no longer even shows the boot menu; it just beeps, shows three errors, then immediately clears the screen (helpful, that) and gives me a grub2 shell.
The shell has (hd0,1)
linux /boot/vmlinuz-
initrd /boot/initrd-
boot
If I try -21-generic instead of -19-generic, Linux fails to boot (after complaining that initrd could not be uncompressed and then failing to mount the root filesystem and panicking).
If I boot from a LiveCD, mount the NTFS filesystem, then loop-mount /media/
Could it be that grub2's ext4 support is buggy? E.g. the grub.cfg file -- it starts with valid commands, I assume (since loop0 is mounted and root set to it), then continues with binary garbage that I do not see if I loop-mount the ext4 fs image after booting a LiveCD.
I'm not even sure it's pristine grub2 that I'm using here; how exactly does Wubi chain-load from NTLDR to Grub?
Sounds to me the problem here is Wubi. We are are all using Grub2 and ext4 since 9.10 in standard partitions with few problems. No sign of the problems in this bug.