Skip to content

Instantly share code, notes, and snippets.

@diffficult
Created May 15, 2019 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diffficult/c001a59581d1956e55f430a775be929d to your computer and use it in GitHub Desktop.
Save diffficult/c001a59581d1956e55f430a775be929d to your computer and use it in GitHub Desktop.
Updating the BIOS on Lenovo laptops from Linux using a USB flash stick
  1. Go to support.lenovo.com (or better use a search engine because the Lenovo website is beautiful but technically pretty broken and slow) and search for the BIOS upgrade of your laptop model.

  2. Download the most recent ISO file. Look for “BIOS bootable update CD”.

  3. Convert the ISO image using the geteltorito utility

Example:

geteltorito -o bios.img g2uj18us.iso
  1. Insert any USB stick into your laptop that you have lying around. The image file is just 50 MB in size so even USB sticks with low capacity will work. Keep in mind that the stick will be completely overwritten.

  2. If you are in a graphical environment then unmount the USB stick again.

  3. Find out the device name of the stick. Enter a terminal window and enter dmesg | tail. You are looking for something like: [ 2101.614860] sd 6:0:0:0: [sdb] Attached SCSI disk

The sdb tells you that your USB stick is available on /dev/sdb. Don’t just assume it’s sdb. If it’s on another device on your laptop then you will destroy your data.

  1. Copy the image to the USB stick:
dd if=bios.img of=/dev/sdb bs=1M
  1. Reboot your laptop.

  2. After the Lenovo logo appears press ENTER.

  3. Press F12 to make your laptop boot from something else than your harddisk.

  4. Select the USB stick.

  5. Make sure your laptop has its power supply plugged in. (It will refuse to update otherwise.)

  6. Follow the instructions.


Links

Source -- https://workaround.org/article/updating-the-bios-on-lenovo-laptops-from-linux-using-a-usb-flash-stick/

Lenovo Support -- BIOS Update Utility for X220, X220i, X220 Tablet & X220i Tablet -- https://support.lenovo.com/us/en/downloads/ds018805

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment