PDA

View Full Version : Persistence enabled, writes go to temporary overlay partition anyway



norf
2022-04-17, 13:41
I've set up the 2022.1 live system on an USB stick and enabled the persistent partition as explained in https://www.kali.org/docs/usb/usb-persistence/.

After restarting with persistence, the partition seems to be mapped correctly:



└─$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 1.4M 1.6G 1% /run
/dev/sda1 3.5G 3.5G 0 100% /run/live/persistence/sda1
/dev/loop0 3.0G 3.0G 0 100% /run/live/rootfs/filesystem.squashfs
tmpfs 7.8G 99M 7.7G 2% /run/live/overlay
overlay 7.8G 99M 7.7G 2% /
/dev/sda3 54G 292K 51G 1% /run/live/persistence/sda3
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.8G 28K 7.8G 1% /tmp
tmpfs 1.6G 80K 1.6G 1% /run/user/1000


Nevertheless all new data/files are still written to the overlay partition and lost after the next reboot.

How can I get rid of the overlay partition?