This is a script to extract troubleshooting information (logs, etc.) from OT-2 SD card images. It operates on full SD card images, like the kind created by dd if=/dev/diskN of=sd.img.
This is probably only useful on macOS. On Linux, just loop-mount the partitions directly. On Windows, WSL might be easier.
Although I am an Opentrons employee, this is not an official Opentrons product, and it's not supported or endorsed by them.
-
Install Docker.
-
Clone this repo.
-
cdinto this repo and run:docker build . -t ot2-sd-extract
-
Create an empty directory somewhere.
-
Place your SD card image inside it. It must end in
.img. -
Run:
docker run -v /path-to-your-data:/data \ --privileged \ --pull=never \ ot2-sd-extractReplace
/path-to-your-datawith the absolute path to the directory that you created, containingsd.img.--privilegedlets the container mount filesystems. Unfortunately, it also gives it privileged access to your machine.--pull=nevermitigates that a little bit by making sure you're running the thing that you just built withdocker build, instead of some other random thing from the Internet. -
If everything worked, you'll see a bunch of directories like
1/,2/, and so on inside your data directory. Each one corresponds to a partition that the script was able to mount. They will contain any interesting files that the script could find.Note that the OT-2 has two root partitions: an active and a standby, for atomic updates. So some of the files will appear twice and have different contents.