Create bootable USB drive with ThinkPad Drive Erase Utility on Linux

Revision history
Tags: thinkpad ssd encryption

I am creating a bootable USB pen drive containing Drive Erase Utility for the Resetting the Cryptographic Key and the Erasing the Solid State Drive - ThinkPad for my Lenovo T470P.

This is one of multiple steps taken to prepare for full disk encryption.

Download the .zip file containing the utility. This file is a little under 80KB.

Prepare USB disk

Run fdisk to format and prepare the USB disk. Make sure the device path to the USB disk is correct. /dev/sdb is the correct one for me, but may not be the same device on your computer.

  1. sudo fdisk /dev/sdb to start the utility. Next steps are keypresses.
  2. o to create a new DOS disklabel
  3. n for new partition
  4. Enter for default (primary partition)
  5. Enter for default partition number
  6. Enter for default first sector
  7. Enter for default last sector
  8. Conditional: If prompted, enter Y to overwrite existing file system signature
  9. t to change partition type
  10. c for W95 FAT32 (LBA)
  11. a to toggle (enable) bootable flag
  12. w to write changes to disk and exit fdisk

Create a filesystem on the drive. Now, append a 1 to the original device path to select the first and single partition created in the previous step.

# mkfs.vfat -F 32 /dev/sdb1

Mount the partition

# mount /dev/sdb1 /mnt

Unzip the contents of the utility zip previously downloaded

# cd /mnt
# unzip ~/Downloads/83fd04ww.zip

Create UEFI folder and move the BootX64.efi into that folder

# mkdir -p /mnt/EFI/BOOT
# mv /mnt/BootX64.efi /mnt/EFI/BOOT

Sync pending disk operations, change out of the directory, and unmount the flash drive

# sync
# cd /
# unmount /mnt

Run the utility

Insert the USB drive into the ThinkPad and hammer F12 (alternatively F1, then F12) after powering on to be able to select “Boot from other device”. Select the USB Flash Drive, and the utility should start.

Disk utility steps

If you have any comments or feedback, please send me an e-mail. (stig at stigok dotcom).

Did you find any typos, incorrect information, or have something to add? Then please propose a change to this post.

Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.