LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

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


Hello.

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,
Code:
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, 07:13 PM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 718

Original Poster
Blog Entries: 3

Rep: Reputation: 224Reputation: 224Reputation: 224
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

Code:
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
fi
Also needed to add exec to the options, otherwise steam won't launch anything...

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


Reply

Tags
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 08:43 AM
[SOLVED] Automount other harddrives while encrypted home directory sadarax Linux - Security 5 11-06-2011 08:59 PM
Moving /home to secondary disk? arashi256 Linux - Newbie 5 07-13-2009 05:44 AM
Change Default Home Directory with LDAP and Automount greslore Linux - General 3 06-23-2009 04:32 PM
automount home directories with information from Active Directory (or NIS) alex r Linux - Software 5 08-30-2006 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:33 AM.

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