Thread: Automount other harddrives with encrypted home directory
update: problem has been fixed.
solution: opsecshellshock pointed out should try auto-mounting things somewhere else /home/user directory. did (in /media/data, etc. ), , created symbolic links there home. (link /media/data /home/user/data).
don't know how effect when start encrypting specific directories on data drive, since of not needed booting or desktop-startup, should not problem.
original problem:
having problem auto-mounting data harddrives while using encrypted home directory on partition/drive.
installed kubuntu 11.10 on system, , first time used "encrypt home directory" feature. (default settings. no changes made me.) operating system installed on /dev/sda1. home in /home/bob.
after install process, edited /etc/fstab automatically mount other data drives (into folders in home directory convenience), such /dev/sda3. example /etc/fstab:
however kubuntu auto-mount on boot-up or after login through kdm!code:/dev/sda3 /home/bob/sata ext4 auto,defaults 0 0
need find way make kubuntu/ubuntu mount drives immediately, either on start-up (since these not files need secured), or after login through kdm before kde starts load user profile. use symbolic links various configuration files used kde, , if drive not ready (mounted) before kde starts load user profile after login, of preferences broken.
of preference files linked data drive home directory. (for example, .bashrc , .vimrc).
here /etc/fstab looks like:code:$ ls -la lrwxrwxrwx 1 bob bob 40 2011-10-18 21:24 .bashrc -> /home/bob/sata/linux/conf/.bashrc lrwxrwxrwx 1 bob bob 28 2011-10-17 19:43 documents -> /home/bob/sata/documents
that all.code:proc /proc proc nodev,noexec,nosuid 0 0 uuid=<long number root partition> / ext4 errors=remount-ro 0 1 /dev/mapper/cryptswap1 none swap sw 0 0 # /dev/sda2 swap /dev/sda3 /home/bob/sata ext4 auto,defaults 0 0
after login , run 'mount' command no arguments, here output:
code:.... /dev/sda3 on /home/bob/sata type ext4 (rw,commit=600) .... /home/bob/.private on /home/bob type ecryptfs (ecryptfs_check_dev_ruid,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs,ecryptfs_sig=<long number>, ecryptfs_fnek_sig=<long number>)
though mount claims /dev/sda3 mounted, there nothing there (and therefore none of symbolic links resolving correctly.) *actually* mounts after manually run mount command arguments 'mount -t ext4 /dev/....'.
suggestions getting non-secure drives auto-mount on startup or after login through kdm (but before kde loads user profile)?
update: added more fstab , mount command info.
it seems me if home directory encrypted, , @ same time mount points located, you're going run trouble in mount points indecipherable until after session has begun (and home has been decrypted). i'd more worried if worked around.
run same problem if switch mount point other drives /mount/drivename? not suggesting permanent fix, isolate problem occurring.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Security [kubuntu] Automount other harddrives with encrypted home directory
Ubuntu
Comments
Post a Comment