> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Persist 分区

板级支持包（BSP）软件组件使用为通用闪存存储（UFS）或嵌入式多媒体卡（eMMC）定义的 persist 分区来存储跨重启的持久数据。

**注意**

persist 分区下的文件应保持完整，即使在重启和 OTA 更新之后也是如此。因此，不建议通过擦除或清空整个分区来删除文件。

## **Persist 挂载点**

`/var/lib/tee` 目录是在 persist 分区上创建的文件系统的挂载点。`recipes-bsp/partition/mount-tee-partition_1.0.bb` 配方负责将 `var-lib-tee.mount` systemd 单元安装到 `local-fs.target`。

启动时，`var-lib-tee.mount` systemd 单元会创建 `/var/lib/tee` 路径，并将 `/dev/disk/by-partlabel/persist` 挂载到 `/var/lib/tee`。

要验证 systemd 挂载单元状态，请运行：

```bash theme={null}
systemctl status var-lib-tee.mount
```

要显示 persist 挂载点，请运行：

```text theme={null}
mount | grep "/var/lib/tee"
```

预期输出：

```text theme={null}
/dev/sdfX on /var/lib/tee type ext4 (rw,relatime,stripe=128)
```

## **后续步骤**

* 有关分区布局和 Ptool 工作流程，请参阅[在 Qualcomm Linux 中管理分区](./manage-partitions-in-qualcomm-linux)。
* 有关持久目录的 OTA 更新行为，请参阅[使用 capsule 和 OSTree 机制更新 Qualcomm Linux 上的固件和操作系统](./update-firmware-and-os-on-qualcomm-linux-using-capsule-and-os-tree-mechanisms)。
