Comment

Comment by discreditable

This is doing it the hard way. Make the image a loop device:

   losetup /dev/loop0 /path/to/your/image.img
Now you can use /dev/loop0 like it's a normal disk. If you're not seeing your partitions (/dev/loop0p1, etc.):

    partprobe /dev/loop0
When you're done, detach the loop device:

    losetup -d /dev/loop0
I use this trick to transparently compress ddrescue images with brtfs: https://brashear.me/blog/2017/11/14/how-to-create-a-compress...

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton