How to backup a live flash drive with persistence

Hi,
After having installed kali on a persistence flash drive a few programs and made settings and written a few scripts, I’d like to back it up in order to be able to restore it on a smaller flash drive.
I have made a few attempts cloning the persistence ( with partclone or with tar or with borg backing up and restoring all files ) and the live iso boots cloned on another flash drive but as soon I activate persistence in grub menu from which I select this flash drive, it begins booting and gets stuck, without persistence the “cloned” live iso boots.
The original flash drive boots flawlessly with persistence.
Is there a simple way to backup a live iso with persistence and restore it on another drive ?
Thanks for your help !

Did you encrypt your persistence partition? if you did, it can’t be read by the cloned version.

Hi,
No, I haven’t encrypted it.
When I set persistence in grub menu options, it boots and it lasts forever
It gets stuck in systemd

you generally can’t clone a drive to a smaller drive.

1 Like

I had resized the source partitions in order that they fit in the destination flash drive

And how did you do that, without damaging the data on that partition?

3 Likes

on the original flash drive, I used sudo resize2fs -M /dev/sda2 and the same for /dev/sda3 and it boots without issue with persistence
I have issues with the copy of that flash drive, that boots live but gets stalled during boot within systemd when persistence mode is chosen