How to auto-mount HDD within encrypted /home partition/directory?How do I auto-mount internal HDD partitions...

Please help me identify this plane

Old black and white movie: glowing black rocks slowly turn you into stone upon touch

Initialize an array of doubles at compile time

Can I ask a publisher for a paper that I need for reviewing

Comma Code - Ch. 4 Automate the Boring Stuff

Strange math syntax in old basic listing

GFCI Outlet in Bathroom, Lights not working

Unorthodox way of solving Einstein field equations

What is a simple, physical situation where complex numbers emerge naturally?

How can a single Member of the House block a Congressional bill?

Is there a practical difference between different types of Berachos?

What's the most polite way to tell a manager "shut up and let me work"?

Asking bank to reduce APR instead of increasing credit limit

Does any lore text explain why the planes of Acheron, Gehenna, and Carceri are the alignment they are?

Sucuri detects malware on wordpress but I can't find the malicious code

How can Iron Man's suit withstand this?

Why use water tanks from a retired Space Shuttle?

Opposite of "Squeaky wheel gets the grease"

Get value of the passed argument to script importing variables from another script

When leasing/renting out an owned property, is there a standard ratio between monthly rent and the mortgage?

Word for a small burst of laughter that can't be held back

How can I offer a test ride while selling a bike?

What's the correct term for a waitress in the Middle Ages?

PhD student with mental health issues and bad performance



How to auto-mount HDD within encrypted /home partition/directory?


How do I auto-mount internal HDD partitions to dynamic mount points?Pamd not mounting ecryptfs disk anymore since upgradefstab mount drive as my /homeUser needs dedicated external hard drive mounted to their home folderAuto mounting external hard drive not workingecryptfs mounting failure from kernel 4.7 onwardsHow to stop auto mounting of devices in Ubuntu?I mounted a ZFS dataset within an ecryptfs directory and now cannot see the contents or change the mountpoint“ecryptfs-mount-private” returns “fopen: No such file or directory”Add (already created) partition for /home after OS installationAlternative to autofs to mount CIFS folders in user home folders in multi-user environment






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















My machine has a secondary (NTFS-formatted) internal hard disk drive containing most of my personal files and data. I wish to auto-mount this drive under my user HOME. However, during installation of Ubuntu (17.10), I chose to create a separate /home partition and apply the default (ecryptfs) encryption. This appears to be preventing the HDD from auto-mounting as desired from the entry I've created in fstab. However, the drive happily auto-mounts to un-encrpyted directories.



How can I achieve auto-mounting of the secondary hard drive under /home/<username>/?



I believe auto-mounting with fstab occurs during boot, while /home isn't decrypyted until user login. Perhaps the relevant fstab entry could be automatically checked after login? Perhaps I could create a small post-login script to automatically run the mount command - but I believe this would require a sudo password prompt (or maybe I should try the AutoFS tool). Or, since ecryptfs is a stacked filesystem, perhaps I could change the mount point be in the lower, encrypted layer which, if I understand correctly, is under /user/<username>/.Private? Since this layer is persistent, it exists through boot - but I can't imagine what would happen from attempting to mount an un-encrypted NTFS filesystem there.










share|improve this question














bumped to the homepage by Community 55 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    0















    My machine has a secondary (NTFS-formatted) internal hard disk drive containing most of my personal files and data. I wish to auto-mount this drive under my user HOME. However, during installation of Ubuntu (17.10), I chose to create a separate /home partition and apply the default (ecryptfs) encryption. This appears to be preventing the HDD from auto-mounting as desired from the entry I've created in fstab. However, the drive happily auto-mounts to un-encrpyted directories.



    How can I achieve auto-mounting of the secondary hard drive under /home/<username>/?



    I believe auto-mounting with fstab occurs during boot, while /home isn't decrypyted until user login. Perhaps the relevant fstab entry could be automatically checked after login? Perhaps I could create a small post-login script to automatically run the mount command - but I believe this would require a sudo password prompt (or maybe I should try the AutoFS tool). Or, since ecryptfs is a stacked filesystem, perhaps I could change the mount point be in the lower, encrypted layer which, if I understand correctly, is under /user/<username>/.Private? Since this layer is persistent, it exists through boot - but I can't imagine what would happen from attempting to mount an un-encrypted NTFS filesystem there.










    share|improve this question














    bumped to the homepage by Community 55 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      My machine has a secondary (NTFS-formatted) internal hard disk drive containing most of my personal files and data. I wish to auto-mount this drive under my user HOME. However, during installation of Ubuntu (17.10), I chose to create a separate /home partition and apply the default (ecryptfs) encryption. This appears to be preventing the HDD from auto-mounting as desired from the entry I've created in fstab. However, the drive happily auto-mounts to un-encrpyted directories.



      How can I achieve auto-mounting of the secondary hard drive under /home/<username>/?



      I believe auto-mounting with fstab occurs during boot, while /home isn't decrypyted until user login. Perhaps the relevant fstab entry could be automatically checked after login? Perhaps I could create a small post-login script to automatically run the mount command - but I believe this would require a sudo password prompt (or maybe I should try the AutoFS tool). Or, since ecryptfs is a stacked filesystem, perhaps I could change the mount point be in the lower, encrypted layer which, if I understand correctly, is under /user/<username>/.Private? Since this layer is persistent, it exists through boot - but I can't imagine what would happen from attempting to mount an un-encrypted NTFS filesystem there.










      share|improve this question














      My machine has a secondary (NTFS-formatted) internal hard disk drive containing most of my personal files and data. I wish to auto-mount this drive under my user HOME. However, during installation of Ubuntu (17.10), I chose to create a separate /home partition and apply the default (ecryptfs) encryption. This appears to be preventing the HDD from auto-mounting as desired from the entry I've created in fstab. However, the drive happily auto-mounts to un-encrpyted directories.



      How can I achieve auto-mounting of the secondary hard drive under /home/<username>/?



      I believe auto-mounting with fstab occurs during boot, while /home isn't decrypyted until user login. Perhaps the relevant fstab entry could be automatically checked after login? Perhaps I could create a small post-login script to automatically run the mount command - but I believe this would require a sudo password prompt (or maybe I should try the AutoFS tool). Or, since ecryptfs is a stacked filesystem, perhaps I could change the mount point be in the lower, encrypted layer which, if I understand correctly, is under /user/<username>/.Private? Since this layer is persistent, it exists through boot - but I can't imagine what would happen from attempting to mount an un-encrypted NTFS filesystem there.







      ubuntu mount home automounting ecryptfs






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 27 '17 at 2:26







      user267628












      bumped to the homepage by Community 55 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 55 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Assuming that this is a personal system. Mount the drive external to your home folder and use a symbolic link to join the drive to your home folder.



          ln -s <target> <localname>


          so if the drive is mounted at



          /mnt/ntfsdrive


          and you want it in your home folder as ndfsdrive,



          ln -s /mnt/ntfsdrive /home/<username>/ntfsdrive


          If this is not a personal or physically secured system, then other security considerations come into play.






          share|improve this answer
























          • Thanks. I should have mentioned I am already aware of the symlink solution and am not against it - but I am interested to learn of any mount-based solutions.

            – user267628
            Dec 27 '17 at 6:23












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f413201%2fhow-to-auto-mount-hdd-within-encrypted-home-partition-directory%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









          0














          Assuming that this is a personal system. Mount the drive external to your home folder and use a symbolic link to join the drive to your home folder.



          ln -s <target> <localname>


          so if the drive is mounted at



          /mnt/ntfsdrive


          and you want it in your home folder as ndfsdrive,



          ln -s /mnt/ntfsdrive /home/<username>/ntfsdrive


          If this is not a personal or physically secured system, then other security considerations come into play.






          share|improve this answer
























          • Thanks. I should have mentioned I am already aware of the symlink solution and am not against it - but I am interested to learn of any mount-based solutions.

            – user267628
            Dec 27 '17 at 6:23
















          0














          Assuming that this is a personal system. Mount the drive external to your home folder and use a symbolic link to join the drive to your home folder.



          ln -s <target> <localname>


          so if the drive is mounted at



          /mnt/ntfsdrive


          and you want it in your home folder as ndfsdrive,



          ln -s /mnt/ntfsdrive /home/<username>/ntfsdrive


          If this is not a personal or physically secured system, then other security considerations come into play.






          share|improve this answer
























          • Thanks. I should have mentioned I am already aware of the symlink solution and am not against it - but I am interested to learn of any mount-based solutions.

            – user267628
            Dec 27 '17 at 6:23














          0












          0








          0







          Assuming that this is a personal system. Mount the drive external to your home folder and use a symbolic link to join the drive to your home folder.



          ln -s <target> <localname>


          so if the drive is mounted at



          /mnt/ntfsdrive


          and you want it in your home folder as ndfsdrive,



          ln -s /mnt/ntfsdrive /home/<username>/ntfsdrive


          If this is not a personal or physically secured system, then other security considerations come into play.






          share|improve this answer













          Assuming that this is a personal system. Mount the drive external to your home folder and use a symbolic link to join the drive to your home folder.



          ln -s <target> <localname>


          so if the drive is mounted at



          /mnt/ntfsdrive


          and you want it in your home folder as ndfsdrive,



          ln -s /mnt/ntfsdrive /home/<username>/ntfsdrive


          If this is not a personal or physically secured system, then other security considerations come into play.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 27 '17 at 2:47









          JohnJohn

          509212




          509212













          • Thanks. I should have mentioned I am already aware of the symlink solution and am not against it - but I am interested to learn of any mount-based solutions.

            – user267628
            Dec 27 '17 at 6:23



















          • Thanks. I should have mentioned I am already aware of the symlink solution and am not against it - but I am interested to learn of any mount-based solutions.

            – user267628
            Dec 27 '17 at 6:23

















          Thanks. I should have mentioned I am already aware of the symlink solution and am not against it - but I am interested to learn of any mount-based solutions.

          – user267628
          Dec 27 '17 at 6:23





          Thanks. I should have mentioned I am already aware of the symlink solution and am not against it - but I am interested to learn of any mount-based solutions.

          – user267628
          Dec 27 '17 at 6:23


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f413201%2fhow-to-auto-mount-hdd-within-encrypted-home-partition-directory%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...