title: Mount multiple directories using ecryptfs
body: <p>I am using ecryptyfs to store some sensitive data in my PC (Debian wheezy). The data is in a partition and the partition is mounted automatically on bootup using <code>/etc/fstab</code> I have setup <code>/root/.ecryptfsrc</code> with correct parameters. Contents of my <code>.ecryptfsrc</code> are as follows:</p>
  
  <pre><code>key=passphrase:passphrase_passwd_file=/mnt/usb/password.txt
  ecryptfs_sig=deadbeefdeadbeef
  ecryptfs_cipher=aes
  ecryptfs_key_bytes=16
  ecryptfs_passthrough=n
  ecryptfs_enable_filename_crypto=n
  </code></pre>
  
  <p>This partition is correctly getting mounted after a system reboot. So far fine.</p>
  
  <p>I also need to transport this sensitive data to remote place in a USB drive. So I want to format a usb drive with ext2 fs and mount it using ecryptfs. I also do not want to reuse the password and want to give an one time password to each USB drive when the ecryptfs is mounted.</p>
  
  <p>Formatting and mounting of ext2 partition works as expected. The command I used for mounting the new usb device using ecryptfs is as follows. the password is stored (temporarily) in <code>/root/usbpasswd.txt</code> :</p>
  
  <pre><code>mount  -t ecryptfs  \
  -o "rw,key=passphrase:passphrase_passwd_file=/root/usbpasswd.txt,\
  ecryptfs_unlink_sigs,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,\
  ecryptfs_passthrough=n,ecryptfs_enable_filename_crypto=y" \
  /mnt/usb2/ /mnt/usb2/
  </code></pre>
  
  <p>Instead of mounting the freshly formatted <code>/mnt/usb2</code> using password in file, I an prompted for <code>Passphrase File</code> as follows:</p>
  
  <pre><code>Passphrase File: /root/usbpasswd.txt
  Passphrase File: /mnt/usb/password.txt
  Passphrase File: /root/usbpasswd.txt
  Passphrase File: ^C
  </code></pre>
  
  <p>What could be wrong here?</p>
  
  <p>Thanks and regards,</p>