# Validate dm-verity

Source: [https://docs.qualcomm.com/doc/80-88500-3/topic/115_Validate_dm_verity.html](https://docs.qualcomm.com/doc/80-88500-3/topic/115_Validate_dm_verity.html)

To validate the `dm-verity`, do the following,

1. Check whether the kernel command line contains `dm-0`.

        adb shellCopy to clipboard

        cat /proc/cmdlineCopy to clipboard
2. Check whether the system is mounted on `dm-0` as read only.

        mount
        /dev/dm-0 on / type ext4 (ro,relatime,data=ordered)Copy to clipboard
3. Validate the remount. The system remains as read only.

        mount -o remount,rw /
        touch file.txt
        The above should fail
        touch system/file.txt
        The above should failCopy to clipboard
4. Check the serial/dmesg logs for the following messages.

        device-mapper: init: attempting early device configuration.
        device-mapper: android-verity: Signature verification success
        device-mapper: init: dm-0 is readyCopy to clipboard

**Parent Topic:** [Configure security settings](https://docs.qualcomm.com/doc/80-88500-3/topic/113_Configure_security_settings.html)

Last Published: Sep 26, 2023

[Previous Topic
Configure security settings](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/113_Configure_security_settings.md) [Next Topic
Disable dm-verity](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/116_Disable_dm_verity.md)