Thu 06 Sep 2012 08:38:56 AM UTC, original submission:
Hi.
I'm having problems with GRUB EFI on my new laptop, which is an Asus N56VZ-S4033V with Aptio version 2.14.1219 (it also advertises itself as version 204, don't know which number is more significant). I'm using Debian GNU/Linux sid (unstable) on it.
I compiled grub-2.00 with this command:
./configure --with-platform=efi --target=x86_64 --program-prefix="" --prefix="/opt/grub"
make
make install
Then I installed it with:
/opt/grub/sbin/grub-install --directory=/opt/grub/lib/grub/x86_64-efi/ --efi-directory=/mnt/efi
/opt/grub/sbin/grub-mkconfig > /mnt/efi/EFI/grub/grub.cfg
(the system EFI partition is mounted in /mnt/efi).
When I boot GRUB, the menu is displayed properly, but I can't boot Linux. Specifically, that what happens: if I boot the first entry in the GRUB menu ("GNU/Linux", created by grub-mkconfig, see configuration attached), sometimes (somewhat like once in ten attempts, but I have no precise statistics) it works perfectly, Linux boots and works as expected. In the other cases, after writing some lines I can't read (but see below), the GRUB menu gets displayed again nearly immediately. If I choose again the same entry, Linux apparently starts, but stops at the initramfs stage, complaining that it doesn't find /etc/fstab and cannot find init.
The same kernel and initrd work always, for example, when served via PXE by another computer (at the moment, this is the only way I have to reliably boot my computer).
To better understand what's going on, I try, instead of just pressing Enter to boot the first option, to edit it with E and, without actually touching anything, booting it with F10. This way I can see what it writes.
The first time it writes:
---
Caricamento Linux 3.2.0-3-amd64...
Caricamento ramdisk iniziale...
error: couldn't terminate EFI services.
Press any key to continue...
---
Than I press I key and I'm back to the edit screen for the first entry. I go with F10 again and this time Linux boots, but with the initramfs problem I wrote above.
|