Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-19-2014, 05:51 PM   #1
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 710
Blog Entries: 3

Rep: Reputation: 212Reputation: 212Reputation: 212
How to automount secondary disk inside ecryptfs home directory?


Recently installed linuxmint 17 to a machine here, with an encrypted home folder (ecryptfs). The machine is to be used for gaming mostly, and has a second harddrive containing the contents of what would usually be located at ~/.local/share/Steam

I tried adding an fstab entry for the disk,
UUID=6f97f71e-94dd-4b67-a71c-aa95036c1e18 /home/user/.local/share/Steam jfs rw,noatime 0 0
Although it fails to mount, because the home folder is encrypted using ecryptfs. How can i automount this jfs disk at boot time?

I have it setup this way, as an encrypted disk can cause slower read time (And fast loading in games is important!)
Old 06-19-2014, 06:13 PM   #2
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 710
Blog Entries: 3

Original Poster
Rep: Reputation: 212Reputation: 212Reputation: 212
Ah nevermind. I found a solution (might not be the best, but it seems to work).

Added ... rw,user,noatime ... to /etc/fstab, allowing users to mount the disk, then placed this in the ~/.bashrc

cat /proc/mounts | grep /home/user/.local/share/Steam > /dev/null
if [ ! $? -eq 0 ] ; then
        mount /dev/disk/by-uuid/6f97f71e-94dd-4b67-a71c-aa95036c1e18
Also needed to add exec to the options, otherwise steam won't launch anything...

Last edited by coralfang; 06-19-2014 at 06:24 PM.


debian, ecryptfs, mint, mount, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
autofs - mount a directory inside /home/username/ grahamb314 Linux - Software 4 07-08-2013 07:43 AM
[SOLVED] Automount other harddrives while encrypted home directory sadarax Linux - Security 5 11-06-2011 07:59 PM
Moving /home to secondary disk? arashi256 Linux - Newbie 5 07-13-2009 04:44 AM
Change Default Home Directory with LDAP and Automount greslore Linux - General 3 06-23-2009 03:32 PM
automount home directories with information from Active Directory (or NIS) alex r Linux - Software 5 08-30-2006 10:05 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration