The SD Card Copier application allows the Raspbian system running on the SD card to clone itself to a usb storage (mostly another SD card), without the need to shutdown the system and remove the SD card to copy it. I would like to use the SD Card Copier application to clone the system to a virtual hard disk file on a network drive, instead to a usb storage.
I can successfully create a 8 GB image file on a network drive and then mount it as a loop device in
/media/pi/vhd) with the following commands
sudo mkdir /mnt/drive/ sudo mount -t cifs -o <options> //networkdrive/raspi/ /mnt/drive/ dd if=/dev/zero of=/mnt/drive/pi.img bs=1G seek=8 count=0 mkfs.ext4 /mnt/drive/pi.img sudo mount -o loop /mnt/drive/pi.img /mnt/vhd/
However the mount does not appear as a target for SD Card Copier. How could I make the virtual hard drive being a possible target for SD Card Copier ? It seems to me that drives are possible targets if and only if they show up in the ejection panel, so another way to ask the question would be how to make the virtual hard drive showing up in the ejection panel ?
Configuration is Raspbian Stretch on a Pi 3.