How to unmount an ecryptfs .Private directory mounted at /tmp?











up vote
1
down vote

favorite












Say that I want to view the contents of an encrypted home directory, I can simply use "sudo ecryptfs-recover-private " and it will mount an unencrypted copy at /tmp. That's all fine and good, but how do I unmount it from /tmp? The /tmp directory gets cleared at every startup I believe, but what if I want to remove the /tmp ecryptfs directory without rebooting? I can't just delete the folder because it's read-only.



Is there some way to unmount the directory, or is restarting the only option?










share|improve this question


























    up vote
    1
    down vote

    favorite












    Say that I want to view the contents of an encrypted home directory, I can simply use "sudo ecryptfs-recover-private " and it will mount an unencrypted copy at /tmp. That's all fine and good, but how do I unmount it from /tmp? The /tmp directory gets cleared at every startup I believe, but what if I want to remove the /tmp ecryptfs directory without rebooting? I can't just delete the folder because it's read-only.



    Is there some way to unmount the directory, or is restarting the only option?










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Say that I want to view the contents of an encrypted home directory, I can simply use "sudo ecryptfs-recover-private " and it will mount an unencrypted copy at /tmp. That's all fine and good, but how do I unmount it from /tmp? The /tmp directory gets cleared at every startup I believe, but what if I want to remove the /tmp ecryptfs directory without rebooting? I can't just delete the folder because it's read-only.



      Is there some way to unmount the directory, or is restarting the only option?










      share|improve this question













      Say that I want to view the contents of an encrypted home directory, I can simply use "sudo ecryptfs-recover-private " and it will mount an unencrypted copy at /tmp. That's all fine and good, but how do I unmount it from /tmp? The /tmp directory gets cleared at every startup I believe, but what if I want to remove the /tmp ecryptfs directory without rebooting? I can't just delete the folder because it's read-only.



      Is there some way to unmount the directory, or is restarting the only option?







      mount encryption home-directory ecryptfs tmp






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 13 '17 at 13:53









      Mixx

      1483726




      1483726






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Even if you had remounted the directory as read-write, you still wouldn't want to delete the directory, or you would be erasing the files in your home directory.



          I believe what you're looking for is the either the ecryptfs-umount-private or unmount.ecryptfs_private command. Be sure to read the warning in the synopsis for that second command.






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f914783%2fhow-to-unmount-an-ecryptfs-private-directory-mounted-at-tmp%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Even if you had remounted the directory as read-write, you still wouldn't want to delete the directory, or you would be erasing the files in your home directory.



            I believe what you're looking for is the either the ecryptfs-umount-private or unmount.ecryptfs_private command. Be sure to read the warning in the synopsis for that second command.






            share|improve this answer

























              up vote
              0
              down vote













              Even if you had remounted the directory as read-write, you still wouldn't want to delete the directory, or you would be erasing the files in your home directory.



              I believe what you're looking for is the either the ecryptfs-umount-private or unmount.ecryptfs_private command. Be sure to read the warning in the synopsis for that second command.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                Even if you had remounted the directory as read-write, you still wouldn't want to delete the directory, or you would be erasing the files in your home directory.



                I believe what you're looking for is the either the ecryptfs-umount-private or unmount.ecryptfs_private command. Be sure to read the warning in the synopsis for that second command.






                share|improve this answer












                Even if you had remounted the directory as read-write, you still wouldn't want to delete the directory, or you would be erasing the files in your home directory.



                I believe what you're looking for is the either the ecryptfs-umount-private or unmount.ecryptfs_private command. Be sure to read the warning in the synopsis for that second command.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 22 '17 at 5:50









                b_laoshi

                2,472927




                2,472927






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f914783%2fhow-to-unmount-an-ecryptfs-private-directory-mounted-at-tmp%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    數位音樂下載

                    When can things happen in Etherscan, such as the picture below?

                    格利澤436b