📜 ⬆️ ⬇️

How to kill Lenovo G580 with one blow

Remember the recent EFI bug on the Samsung 530U3C that caused the laptop to no longer work after a one-time download of ubuntu?

Meet the EFI on Lenovo G580!

So, on the eve of the new year and holiday sales, Adiost bought a Lenovo G580 with FreeDOS, demolished it and installed Ubuntu. After some time, I wanted to install-see Windows 8. In the course of this, I found that I couldn’t enter the EFI settings by pressing the F2 button: simply nothing happened and the OS started to boot. Spitting on it, installed Windows 8, and began to repair.

At first I loaded Google. Such symptoms - is complete . Even on Habré was. Unfortunately, none of the whole two ways helped. From under Windows, NVRAM did not change, and all Linux distributions were loaded in BIOS emulation mode, since in EFI, she was selected first.
')
Some information: EFI NVRAM can neither be read nor changed from under an OS loaded in BIOS mode. Therefore, it was necessary to somehow run the OS through EFI. To do this, ArchLinux was installed on a USB flash drive with GPT and GRUB2 as an EFI bootloader. So, ArchLinux is loaded into EFI, great, run efibootmgr, and ... empty. There is not a single EFI point, although there is a certain “ubuntu” item when choosing a boot device, and this should be exactly the item added in NVRAM. When trying to delete a “random” entry number 0000, the boot item changed its name from ubuntu to Linux.

Adiost added a blank item and rebooted. The laptop has forgotten how to show the boot menu, stopped loading at all, with no errors whatsoever. Just POST and everything, forever empty screen, sad but true.

Because of what efibootmgr gave an empty result - it is not clear, but I can guess why this happened with the EFI setting. The fact is that, apparently, on many Lenovo laptops, NVRAM stores not only OS boot items, but also all items in general.
This is what efibootmgr gives on my X220:
BootCurrent: 0009 Timeout: 0 seconds BootOrder: 0019,0009,000A,0006,000C,0007,0008,000B,000D,000E,000F,0010,0011,0012,0013 Boot0000 Setup Boot0001 Boot Menu Boot0002 Diagnostic Splash Screen Boot0003 Startup Interrupt Menu Boot0004 ME Configuration Menu Boot0005 Rescue and Recovery Boot0006* USB CD Boot0007* USB FDD Boot0008* ATAPI CD0 Boot0009* ATA HDD2 Boot000A* ATA HDD0 Boot000B* ATA HDD1 Boot000C* USB HDD Boot000D* PCI LAN Boot000E* ATAPI CD1 Boot000F* ATAPI CD2 Boot0010 Other CD Boot0011* ATA HDD3 Boot0012* ATA HDD4 Boot0013 Other HDD Boot0014* IDER BOOT CDROM Boot0015* IDER BOOT Floppy Boot0016* ATA HDD Boot0017* ATAPI CD: Boot0018* PCI LAN Boot0019* arch_grub 

In all likelihood, Ubuntu has overwritten the item Boot0000, which is Setup. I tried to remove it from myself, and, fortunately, it was recreated when the laptop was restarted, but I did not try to overwrite it with a new one.

Source: https://habr.com/ru/post/169985/


All Articles