UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Encryption

    Scheduled Pinned Locked Moved Unsolved Oneplus Nord N10
    7 Posts 5 Posters 336 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • M Online
        mark1250
        last edited by

        I'm setting up a Oneplus Nord N10 with Ubuntu Touch, and I wanted to encrypt my home partition.

        I'm running 24.04-1.x Daily

        I went into Settings > Security & Privacy > Encryption

        It ends up: Error Encryption failed. Please try again later.

        In the journal I get:

        [ERROR] fscrypt encrypt: kernel is too old to support v2 encryption policies\n\nv2 encryption policies are only supported by kernel version 5.4 and later.\nEither use a newer kernel, or change policy_version to 1 in /etc/fscrypt.conf.\n"
        

        The kernel is 4.19 so there is no version 2 available.

        I tried to edit /etc/fscrypt.conf but it is readonly. The file permissions are root:root 666 and it is not marked as immutable. I'm puzzled why root can't edit the file.

        Any solution to allow encryption?

        Thanks.

        Mark

        P MrT10001M 2 Replies Last reply Reply Quote 0
        • P Offline
          projectmoon @mark1250
          last edited by

          @mark1250 filesystem as a whole is read only. It is possible to mount as rw. That will allow you to edit the file. Don't know if it will allow encryption though.

          M 1 Reply Last reply Reply Quote 0
          • M Online
            mark1250 @projectmoon
            last edited by

            @projectmoon
            Thanks. I had thought all /etc was mounted rw. I see that is not the case.

            I mounted the filesystem rw and edited the file. It did allow the encryption. BUT, I think that may have broke the installation. While encrypting, it crashed the OS. Now after a reboot, I enter my password and it keeps asking me to setup the phone, like a fresh install.

            DON'T do what I just did unless you want to loose data!

            So I'm going to reinstall with a wipe.

            L 1 Reply Last reply Reply Quote 0
            • L Offline
              lk108 @mark1250
              last edited by

              @mark1250 Did you have a lot of data in your home directory, like almost 50% usage or more?

              M 1 Reply Last reply Reply Quote 0
              • M Online
                mark1250 @lk108
                last edited by

                @lk108 No, I just got Ubuntu Touch on this phone so it wasnt a space issue.

                Maybe the porter knows why the fscrypt was set to v2. And was for a good reason

                1 Reply Last reply Reply Quote 0
                • fredldotmeF Online
                  fredldotme
                  last edited by

                  Kernel 4.19 has an opportunity to receive fscrypt v2 support by backporting it as per docs: https://docs.ubports.com/en/latest/porting/configure_test_fix/Fscrypt.html

                  You can ask your port maintainer to do that.

                  For a list of my contributions to Ubuntu Touch visit: https://fredl.me

                  If you have enjoyed my work on Ubuntu Touch over the years, please donate to my causes:

                  • PayPal: https://paypal.me/beidl
                  • Liberapay: https://liberapay.com/fredldotme
                  1 Reply Last reply Reply Quote 0
                  • MrT10001M Offline
                    MrT10001 @mark1250
                    last edited by

                    @mark1250 Only a few devices have encryption at the moment, I think it may be coming to the N10 soon.

                    Xiaomi Redmi Note 7.... And more...
                    I have too many devices...

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post