tjjh89017 / partclone-nbd

Direct mount partclone image via nbdkit
GNU Lesser General Public License v2.1
1 stars 1 forks source link

Missing details on how to run the command #1

Open lionep opened 2 years ago

lionep commented 2 years ago

Hello,

Thanks for your project, it looks promising.
I've succesfully compiled it and launched it, run the nbdkit command, but I don't know what to use as your file parameter :

nbdkit \
 -fv \    # Foreground + verbose
 -r \      # Read only
 --filter=./libnbdkit-partlcone-filter.so \    # Load of the nbd partclone filter
 file \ # ???
 ../../sda2.ext4-ptcl-img  # Partclone image file

If someone try to achieve the same thing, here is what I've done before :

apt-get update; apt-get install nbdkit nbd-client nbdkit-plugin-dev cmake build-essential

and after the nbdkit command, in an other shell

modprobe nbd
nbdclient localhost /dev/nbd0
mount /dev/nbd0 /mnt # Failing
tjjh89017 commented 2 years ago

I'm sorry. This program is still incomplete. There are some incorrect offset calculators. I'm still looking for some time to dig deeper to check the partclone image format. So far, I'm trying to get a proper way to skip CRC bit and offset.

If you want to send me some patches, feel free to do it.

tjjh89017 commented 2 years ago

file \ # ??? this part is nbdkit plugin "file" please refer this docs. https://libguestfs.org/nbdkit-file-plugin.1.html

lionep commented 2 years ago

I'm sorry. This program is still incomplete. There are some incorrect offset calculators. I'm still looking for some time to dig deeper to check the partclone image format. So far, I'm trying to get a proper way to skip CRC bit and offset.

If you want to send me some patches, feel free to do it.

Thanks for the info, I’m afraid that fs related development is way too low level for my skills.

tjjh89017 commented 2 years ago

I will try to do it. When it is done, I will notify you for this. Thanks a lot