This shows you the differences between two versions of the page.
— | docu:csheet:sysadm:disks:mount_gz_image [2023/04/25 22:48] (current) – created admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== Mount a .gz compressed image file using nbdkit and nbd-client (read-only) ==== | ||
+ | <code bash> | ||
+ | # create the server that decompresses the file live | ||
+ | nbdkit -i 127.0.0.1 / | ||
+ | # connect to the server and create a device interface on /dev/nbd0 | ||
+ | nbd-client 127.0.0.1 10809 /dev/nbd0 | ||
+ | |||
+ | # once finished, you can clean-up everything by: | ||
+ | nbd-client --disconnect /dev/nbd0 | ||
+ | pkill nbdkit | ||
+ | </ | ||
+ | |||
+ | Source: https:// |