using Linux device mapper
Northstar is an container runtime for Linux targetting embedded systems
Low level bindings for devicemapper
allows you to mount image files while passing bad sectors
It's like FUSE but for the block layer
Try searching with DuckDuckGo or on crates.io.