# Enable encrypt and stable\_inodes feature flag for ext4 file system Source: [https://docs.qualcomm.com/doc/80-88500-2/topic/57_Enable_encrypt_and_stable_inodes_feature_flag_for_ext4_file_system.html](https://docs.qualcomm.com/doc/80-88500-2/topic/57_Enable_encrypt_and_stable_inodes_feature_flag_for_ext4_file_system.html) For ext4, enable the `encrypt` and `stable_inodes` feature flags for the file system on which encryption is to be used. To enable the feature flag, perform the following steps: 1. Ensure that the file system uses page-sized blocks: tune2fs -l /dev/device | grep 'Block size'Copy to clipboard Block size: 4096Copy to clipboard getconf PAGE_SIZECopy to clipboard 4096Copy to clipboard Note: Do not proceed further if the values differ because the file system does not support the encryption. 2. Run the following command to enable the encrypt and stable\_inodes feature on the file system: tune2fs -O encrypt,stable_inodes /dev/deviceCopy to clipboard **Parent Topic:** [File-based encryption (Linux Ubuntu)](https://docs.qualcomm.com/doc/80-88500-2/topic/56_File_based_encryption.html) Last Published: Aug 18, 2023 [Previous Topic File-based encryption (Linux Ubuntu)](https://docs.qualcomm.com/bundle/publicresource/80-88500-2/topics/56_File_based_encryption.md) [Next Topic Enable the fscrypt userspace tool](https://docs.qualcomm.com/bundle/publicresource/80-88500-2/topics/58_Enable_the_fscrypt_userspace_tool.md)