Using sdm on Windows WSL

March 24, 2026 · View on GitHub

sdm can run on Windows WSL2 distros. sdm can be used for all functions including customize, explore, mount, burn, and burnfile. Burn to disk requires adding usbipd on the Windows host, as documented below.

usbipd Documentation

usbipd is addon software for Windows that provides WSL2 guests access raw disk storage.

usbip Documentation:

If you have problems using usbipd your first stop for assistance should be the usbipd-win GitHub. I'm a usbipd user just like you; the experts are over there.

Install usbipd

Perform these at the Windows Command Prompt.

  • Shutdown WSLwsl --shutdown
  • Update WSLwsl --update
  • Install usbipdwinget install --interactive usbipd

Using usbipd

Here are the steps I recommend to help ensure success and ease of use. Perform these steps at the Command Prompt.

  • Start with the USB disk or SD card reader NOT inserted
  • Enable sudo — (Optional) This makes the rest of what follows MUCH easier. Follow this Microsoft guide. If you opt to not enable sudo, you'll need a separate Administrator Command Prompt as indicated.
  • Disable Windows autoplay — (Optional) Don't fight with Windows when inserting a drive. Open the Settings app (WIN+I), search for Autoplay and select AutoPlay settings. On that page turn off Use AutoPlay for all media and devices, and set AutoPlay defaults for both Removable drive and Memory card to Take no action.
  • Start the WSL2 instancewsl
  • Verify and connect the deviceDetailed steps. Where the document indicates that it should be run as Administrator use sudo instead if you enabled it
  • Identify WSL disk namedmesg | tail -n 20. The newly connected disk should now be displayed at the end of the dmesg output (at least on Debian-based systems)

NOTES:

  • A bind is permanent, even across reboots. Use usbipd unbind to break the association. bind and unbind require sudo or an Administrator Command Prompt.
  • usbipd attach must be redone after every system reboot or WSL restart. Use usbipd detach to detach a device from the WSL instance. NO sudo or Administrator Command Prompt required

If usbipd not installed

The disk burning restriction is because WSL is unable to properly address USB storage. usbipd, documented above, fills the gap. If you do NOT install usbipd sdm's --burn command WILL fail.

Without usbipd you can still take advantage of sdm's burn-time customizations by using --burnfile to burn to a .IMG file, and then using another tool such as Win32 Disk Imager, Cygwin dd, etc. to burn the IMG to the target SSD/SD Card.

WSL Information

For information on installing WSL and a Distro on Windows see Install WSL. You can see the available distros with this command (either Cmd prompt or Powershell): wsl --list --online. I recommend using Debian, since it's the most like RasPiOS, it's well-supported, and it's stable.