raspberrypi-ui / piclone

Utility to back up Pi to an SD card reader
263 stars 62 forks source link

[feature request] piclone on a loopback device (on a file created on a HDD) #7

Open golfromeo-fr opened 8 years ago

golfromeo-fr commented 8 years ago

it would be interesting to be able to use piclone on a loopback device

http://tldp.org/HOWTO/Cryptoloop-HOWTO/loopdevice-setup.html => instead of a real device, a file created on top of a filesystem, mounted as a loopback device

interesting for a board with a HDD attached (USB or SATA)

what is needed is to display the available /dev/loop? in the destination folder

Let's see what I can do to help here. => proposal see #8

I mean creating an empty file of approx 32GB (if SDcard or eMMC is of 32GB) dd if=/dev/zero of=SAVE20160616.bin bs=100M count=330 sudo losetup /dev/loop0 SAVE20160616.bin

then it is easy to 7zip the file SAVE20160616.bin (and/or MD5sum)

E3V3A commented 8 years ago

This is a cool PR, why hasn't it been merged?

jtmoderate876 commented 6 years ago

I would really like to see a way to clone to an (reduced size) image file (on an attached USB, a NAS, etc. rather than just a hard copy overwriting a full sd or other drive). Perhaps this feature request is similar or accomplishes the same thing?

jtmoderate876 commented 6 years ago

+1