[ltp] Re: ThinkPad T520: uefi/gpt debian install

Martin Steigerwald linux-thinkpad@linux-thinkpad.org
Wed, 31 Aug 2011 13:23:51 +0200


Am Mittwoch, 31. August 2011 schrieb Martin Steigerwald:
> Am Freitag, 13. Mai 2011 schrieb Robert Tomsick:
> > On Fri, 2011-05-13 at 14:13 -0300, Stefan Monnier wrote:
> > > UEFI+GPT is no worse than traditional BIOS+MBR and offers some
> > > advantages, but unless you have more than 4 partitions you likely
> > > will never notice the difference (except for the fact that some
> > > tools don't support GPT, of course).
> >=20
> > IIRC, the Tx20 series boot a couple second faster when set up as UEFI
> > +GPT, hence the interest in getting them to do UEFI boots as opposed
> > to using BIOS emulation.
>=20
> So out of curiosity I started a second attempt with the most recent
> 1.31 BIOS. The following failed:
>=20
> 1) GPT with EFI and GRUB 2
> 2) GPT with BIOS Boot Partition for GRUB 2
> 3) MBR with EFI and GRUB 2
>=20
> I only get the device selection menu and then I select the intel SSD
> the firmware scans a while and then goes back to the device selection
> menu.
>=20
> I looked after setting with partition types in GPT and/or MBR. I also
> set the partition I didn=C2=B4t want to use, either the BIOS Boot Partiti=
on
> or the EFI System Partition to a different type.
>=20
>=20
> This is what I have in EFI partition:
>=20
> merkaba:~> ls -l /boot/efi
> insgesamt 804
> drwxr-xr-x 4 root root    512 31. Aug 2011  efi
> -rwxr-xr-x 1 root root 822784 31. Aug 2011  shellx64.efi
> merkaba:~> ls -lR /boot/efi
> /boot/efi:
> insgesamt 804
> drwxr-xr-x 4 root root    512 31. Aug 2011  efi
> -rwxr-xr-x 1 root root 822784 31. Aug 2011  shellx64.efi
>=20
> This is the 64-bit beta shell mentioned here:
>=20
> https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interf
> ace#UEFI_Shell
>=20
>=20
> /boot/efi/efi:
> insgesamt 818
> drwxr-xr-x 2 root root    512 31. Aug 2011  debian
> drwxr-xr-x 3 root root  13824 31. Aug 12:27 grub
> -rwxr-xr-x 1 root root 822784 31. Aug 2011  shellx64.efi
>=20
> /boot/efi/efi/debian:
> insgesamt 2685
> -rwxr-xr-x 1 root root    4987  9. Aug 06:09 ascii.pf2
> -rwxr-xr-x 1 root root   51613  9. Aug 06:09 euro.pf2
> -rwxr-xr-x 1 root root  131584 31. Aug 12:26 grubx64.efi
> -rwxr-xr-x 1 root root 2560080  9. Aug 06:09 unicode.pf2
>=20
> [... above was from a call to grub-install from grub-efi without
> parameters ... I copied the font files there myself...]
>=20
> /boot/efi/efi/grub:
> insgesamt 4776
> [...]
> -rwxr-xr-x 1 root root  132608 31. Aug 12:27 grub.efi
> [ + all modules as single files + pf2 fonts ]
>=20
> /boot/efi/efi/grub/locale:
> insgesamt 618
> -rwxr-xr-x 1 root root 23380 31. Aug 12:27 ast.mo
> -rwxr-xr-x 1 root root 45816 31. Aug 12:27 ca.mo
> -rwxr-xr-x 1 root root 42440 31. Aug 12:27 da.mo
> -rwxr-xr-x 1 root root 45131 31. Aug 12:27 de.mo
> [...]
>=20
> I used grub-efi and even installed it once from my running (with MBR
> and GRUB 2 PC then again) Linux 3.0 debian with modprobe efivars and
> grub- install reported no errors and thus must have executed the
> efibootmgr command that reported errors about efivars before.

I still have output of this here:

merkaba:~> apt-get install grub-efi
Paketlisten werden gelesen... Fertig
Abh=C3=A4ngigkeitsbaum wird aufgebaut      =20
Statusinformationen werden eingelesen... Fertig
Die folgenden zus=C3=A4tzlichen Pakete werden installiert:
  grub-efi-amd64
Die folgenden Pakete werden ENTFERNT:
  grub-pc
Die folgenden NEUEN Pakete werden installiert:
  grub-efi grub-efi-amd64
0 aktualisiert, 2 neu installiert, 1 zu entfernen und 7 nicht=20
aktualisiert.
Es m=C3=BCssen noch 0 B von 31,1 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 197 kB Plattenplatz freigegeben.
M=C3=B6chten Sie fortfahren [J/n]?=20
Laden der Fehlerberichte ... Erledigt
=C2=BBFound/Fixed=C2=AB-Informationen werden ausgewertet ... Erledigt
Vorkonfiguration der Pakete ...
(Lese Datenbank ... 236288 Dateien und Verzeichnisse sind derzeit=20
installiert.)
Entfernen von grub-pc ...
Trigger f=C3=BCr man-db werden verarbeitet ...
Vormals abgew=C3=A4hltes Paket grub-efi-amd64 wird gew=C3=A4hlt.
(Lese Datenbank ... 236277 Dateien und Verzeichnisse sind derzeit=20
installiert.)
Entpacken von grub-efi-amd64 (aus .../grub-efi-amd64_1.99-11_amd64.deb) ...
Vormals abgew=C3=A4hltes Paket grub-efi wird gew=C3=A4hlt.
Entpacken von grub-efi (aus .../grub-efi_1.99-11_amd64.deb) ...
Trigger f=C3=BCr man-db werden verarbeitet ...
grub-efi-amd64 (1.99-11) wird eingerichtet ...
=46atal: Couldn't open either sysfs or procfs directories for accessing EFI=
=20
variables.
Try 'modprobe efivars' as root.
=46atal: Couldn't open either sysfs or procfs directories for accessing EFI=
=20
variables.
Try 'modprobe efivars' as root.
Installation finished. No error reported.
Generating grub.cfg ...
=46ound background image: /usr/share/images/desktop-base/desktop-grub.png
=46ound linux image: /boot/vmlinuz-3.0.0-1-amd64
=46ound initrd image: /boot/initrd.img-3.0.0-1-amd64
done
grub-efi (1.99-11) wird eingerichtet ...
merkaba:~> modprobe efivars

merkaba:~> grub-install --boot-directory=3D/boot/efi/efi --bootloader-id=3D=
grub=20
=2D-no-floppy --recheck
Installation finished. No error reported.

=3D> After this later grub-install try I thought it could have worked. But=
=20
still the ThinkPad firmware resorted to prompting me the device selection=20
dialog.

=2D-=20
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7