In case someone tries this route with an Asus motherboard and a Crucial SSD:
Pre requisites: Two drives, one for Windows/Other OS and the other for EnOS.
- Disconnect all drives with EFI partitions from the PC (other linux OS and/or Windows).
Download RESCUE64.img.gz (Small Linux system to recover from issues with sedutil on 64bit UEFI systems) from the link at the bottom of this post.
Before issuing the below commands, make sure your drive is /dev/sda.
Enable locking and the PBA
# sedutil-cli --initialsetup debug /dev/sda
# sedutil-cli --enablelockingrange 0 debug /dev/sda
# sedutil-cli --setlockingrange 0 lk debug /dev/sda
# sedutil-cli --setmbrdone off debug /dev/sda
$ gunzip /usr/sedutil/UEFI64-n.nn.img.gz <-- Replace n.nn with the release number.
# sedutil-cli --loadpbaimage debug /usr/sedutil/UEFI64-n.nn.img /dev/sda
Set a real password
# sedutil-cli --setsidpassword debug yourrealpassword /dev/sda
# sedutil-cli --setadmin1pwd debug yourrealpassword /dev/sda
- Shutdown computer (POWEROFF).
Boot EndeavourOS LiveUSB and if your drive is a SATA drive, press ‘e’ to change Kernel cmdline and add libata.allow_tpm=1 to it.
Install sedutil and unlock the drive.
$ yay -S sedutil
# sedutil-cli --setlockingrange 0 rw yourrealpassword /dev/sda
# sedutil-cli --setmbrdone on yourrealpassword /dev/sda
# partprobe /dev/sda
Install EnOS normally (generate a new GPT table).
- Shutdown computer (POWEROFF).
Boot to the new drive and unlock the drive. <---------- IMPORTANT, as only one UEFI partition should be available otherwise a Windows entry will be wrongly added as mentioned in my post above.
- Shutdown computer (POWEROFF).
Reconnect all the drives to the PC and change BIOS boot order as your preference.
In case you can’t unlock your drive for some reason, you can use Crucial software in Windows to restore the drive, note that your data will be loss during this process.
Tested and working with:
Crucial SATA SSD MX500: firmware: M3CR046
Latest EnOS ISO Endeavouros_Cassini_Nova-03-2023_R1.iso
Latest RESCUE64.img 1.20.0
ASUS B550-F Gaming BIOS 3002
Links used:
https://wiki.archlinux.org/title/Self-encrypting_drives
https://github.com/Drive-Trust-Alliance/sedutil/wiki/Encrypting-your-drive
Download Rescue Image UEFI 64:
https://github.com/Drive-Trust-Alliance/sedutil/wiki/Executable-Distributions