# Persist partition

The BSP software components use the persist partition defined for the UFS or eMMC to store persistent data across reboots.

Note

The files under the persist partition are supposed to remain intact, even after reboots and OTA updates.
Therefore, erasing or wiping the entire partition to delete files isn’t recommended.

## Persist mount point

The `/var/persist` directory is a mount point for a file system created on the persist partition.
The `var-persist-mount_1.0.bb` recipe is responsible for installing the
`var-persist.mount` systemd unit to `local-fs.target`.

At boot up, the `var-persist.mount` systemd unit creates `/var/persist`
path and mounts `/dev/disk/by-partlabel/persist` on `/var/persist`.
To display the persist mount point, run the mount command as follows:

sh-5.1# mount | grep persist
    /dev/sda4 on /var/persist type ext4 (rw,relatime,rootcontext=system_u:object_r:qcom_persist_t:s0,seclabel,stripe=128)
    Copy to clipboard

## Resize persist partition

The persist partition is autoresized by `resize-partition@persist.service` ,
which is installed by the `qcom-resize-partitions.bb` recipe. The `resize-partition`
service runs at device boot to expand the filesystemd to the maximum
available size in the partition.

Last Published: Jul 02, 2025

[Previous Topic
Configure](https://docs.qualcomm.com/bundle/publicresource/80-70020-27/topics/configure_properties.md) [Next Topic
Create secondary virtual machine](https://docs.qualcomm.com/bundle/publicresource/80-70020-27/topics/create_secondary_virtual_machine.md)