User Tools

Site Tools


Mount a .gz compressed image file using nbdkit and nbd-client (read-only)

# create the server that decompresses the file live
nbdkit -i /usr/lib/(your-machine-arch)/nbdkit/plugins/ file=test.img.gz
# connect to the server and create a device interface on /dev/nbd0
nbd-client 10809 /dev/nbd0
# once finished, you can clean-up everything by:
nbd-client --disconnect /dev/nbd0
pkill nbdkit


docu/csheet/sysadm/disks/mount_gz_image.txt · Last modified: 2023/04/25 22:48 by admin