← Back to team overview

ecryptfs team mailing list archive

[Bug 454800] Re: Wierd mount behvaiour giving Input/output error

 

** Also affects: ecryptfs-utils (Ubuntu)
   Importance: Undecided
       Status: New

-- 
Wierd mount behvaiour giving Input/output error
https://bugs.launchpad.net/bugs/454800
You received this bug notification because you are a member of eCryptfs,
which is subscribed to ecryptfs-utils in ubuntu.

Status in eCryptfs - Enterprise Cryptographic Filesystem: New
Status in “ecryptfs-utils” package in Ubuntu: New

Bug description:
This only occured when I upgraded to release 81.

Basically this is my /etc/fstab

/srv/backup/originals /srv/rsync/data/originals ecryptfs r,key=passphrase:passfile=/root/ecryptfs_password,ecryptfs_sig=7ad5e0064d20e6c9,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_passthrough=no,ecryptfs_enable_filename_crypto=no,ecryptfs_unlink_sigs,ecryptfs_encrypted_view 0 0
/srv/backup/originals /srv/backup/originals ecryptfs rw,key=passphrase:passfile=/root/ecryptfs_password,ecryptfs_sig=7ad5e0064d20e6c9,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_passthrough=no,ecryptfs_enable_filename_crypto=no,ecryptfs_unlink_sigs 0 0

When I try to access either the encrypted or unecrypted view vI get
me@ubuntu-nas:/srv$ echo "hello world\n" > rsync/data/originals/hello.txt
-bash: rsync/data/originals/hello.txt: Input/output error
me@ubuntu-nas:/srv$ echo "hello world\n" > backup/originals/hello.txt
-bash: backup/originals/hello.txt: Input/output error

me@ubuntu-nas:/srv$ less rsync/data/originals/documents/codes/code.txt 
rsync/data/originals/documents/codes/code.txt: Input/output error
me@ubuntu-nas:/srv$ less backup/originals/documents/codes/code.txt 
backup/originals/documents/codes/code.txt: Input/output error

Now this is the weird bit
If I 
me@ubuntu-nas:/srv$ sudo umount /srv/backup/originals
me@ubuntu-nas:/srv$ sudo umount /srv/backup/originals

It works as expected the encrypted view is encrypted, the normal view is decrypted, and file creation works properly.

me@ubuntu-nas:/srv$ sudo mount -a
Attempting to mount with the following options:
  ecryptfs_unlink_sigs
  ecryptfs_encrypted_view
  ecryptfs_key_bytes=16
  ecryptfs_cipher=aes
  ecryptfs_sig=7ad5e0064d20e6c9
Mounted eCryptfs
Attempting to mount with the following options:
  ecryptfs_unlink_sigs
  ecryptfs_key_bytes=16
  ecryptfs_cipher=aes
  ecryptfs_sig=7ad5e0064d20e6c9
Mounted eCryptfs

Breaks it again.