Error Mounting Ecryptfs - 5 Input/output Error
Provider Disabling wp-cron php Script in WordPress Accessing a website through an ssh tunnel Home » ecryptfs and Input/output error Post navigation← Setting up minicpanFedora Upgrade - Fedora 17 to Fedora 18 → ecryptfs and Input/output error Posted on March 17, 2013 by MichaelJuly 8, 2014 Facebook0Google+0Twitter0LinkedIn0Pinterest0I set up ecryptfs to test it and see how well it worked. These are the steps that I took to set it up. I am using Fedora so I used yum to install ecryptf. You should use whatever your particular Linux distribution uses to install software.# yum install ecryptfs-utils.x86_64There are certainly different ways to backup the target directory. But, the key point is, you must back it up and then restore it to the encrypted directory.# move /home/mystuffdir /home/mystuffdir.old # mkdir /home/mystuffdir # chown mystuffguy:mystuffguy /home/mystuffdirAs root:# mount -t ecryptfs /home/mystuff /home/mystuffdir Select key type to use for newly created files: 1) openssl 2) passphrase 3) pkcs11-helper 4) tspi Selection: 2 Passphrase: <= input a good passphrase Select cipher: 1) aes: blocksize = 16; min keysize = 16; max keysize = 32 2) blowfish: blocksize = 8; min keysize = 16; max keysize = 56 3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24 4) twofish: blocksize = 16; min keysize = 16; max keysize = 32 5) cast6: blocksize = 16; min keysize = 16; max keysize = 32 6) cast5: blocksize = 8; min keysize = 5; max keysize = 16 Selection [aes]: Select key bytes: 1) 16 2) 32 3) 24 Selection [16]: Enable plaintext passthrough (y/n) [n]: Enable filename encryption (y/n) [n]: y <= I encrypt everything including file names Filename Encryption Key (FNEK) Signature [abcdef12345678]: <=Enter Attempting to mount with the following options: ecryptfs_unlink_sigs ecryptfs_fnek_sig=abcdef12345678 ecryptfs_key_bytes=16 ecryptfs_cipher=aes ecryptfs_sig=abcdef12345678 Mounted eCryptfsverify:# mount/home/mystuffdir on /home/mystuffdir type ecryptfs (rw,relatime,ecryptfs_fnek_sig=abcdef12345678 , ecryptfs_sig=abcdef12345678,ecryptfs_cipher=aes,ecryptfs_key_bytes=16, ecryptfs_unlink_sigs)Now while the encrypted directory is mounted you have to restore the original files. If you try to restore to the directory while it is not mounted, and then you mount it with encryption accessing the files will result in an Input/output error.I used cpio to restore. considering I used a move method to back it up I could certainly use the mv command to move it back. This would be faster. But I'll use a copy met
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody https://www.zebulak.com/2013/03/ecryptfs-inputoutput-error/ can ask a question Anybody can answer The best answers are voted up and rise to the top eCryptfs: Input/output error up vote 2 down vote favorite My home directory is encrypted using ecryptfs. I have recently started getting I/O errors when I try to access some files on that file system: aix@aix:~/.evolution/mail/imap/acct/folders/INBOX$ cat 130395.HEADER cat: 130395.HEADER: Input/output error /var/log/messages has the http://askubuntu.com/questions/65248/ecryptfs-input-output-error following to say: Oct 11 11:05:38 aix kernel: [138537.991670] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO Two questions: How do I fix this? How do I prevent this happening in the future? I'm using Ubuntu 10.10. disk ecryptfs share|improve this question edited Jun 25 '12 at 23:15 James♦ 31k43133224 asked Oct 11 '11 at 10:10 NPE 12617 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote I am exepriencing the same issue, and I found this thread: https://bugs.launchpad.net/ecryptfs/+bug/509180?comments=all Especially interesting is the fact that corrupted RAM could cause to disk issues for the encrypted areas: https://bugs.launchpad.net/ecryptfs/+bug/509180?comments=all Haven't gotten around to check if it works for me tho. share|improve this answer answered Oct 27 '11 at 11:51 Gustavo Zaera Holo 311 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Na
F15 "Error mounting eCryptfs: [-5] Input/output error" on different disks Messages sorted by: [ date ] https://lists.fedoraproject.org/pipermail/devel/2011-June/152939.html [ thread ] [ subject ] [ author ] On 6/17/11 6:28 AM, Michael Schwendt wrote: > On Thu, 16 Jun 2011 21:45:01 +0200, MP https://bugs.launchpad.net/bugs/1245790 wrote: > >> W dniu 16 czerwca 2011 21:43 użytkownik Eric Sandeen napisał: >>> On 6/16/11 2:37 PM, Michał Piotrowski wrote: >>>> Hi, >>>> error mounting >>>> Do anyone noticed any problems with mounting eCryptfs recently on F15? >>>> It seems to me unlikely that I have an I/O errors on few disks. >>>> Especially if only eCryptfs reports them. >>>> >>> >>> Anything in dmesg? >> >> Nothing unusual >> >>> >>> -Eric >>> > error mounting ecryptfs > In /var/log/messages: > > Jun 17 13:24:46 localhost mount.ecryptfs: Failed to write to the mount table likely a result of /etc/mtab pointing to /proc/mounts now Can you file an ecryptfs-utils bug for that? I don't know how it'll be fixed but it looks like an issue. -Eric > > Got that when running ecryptfs.mount for the first time on this machine: > > [...] > Not adding sig to user sig cache file; continuing with mount. > Error mounting eCryptfs: [-5] Input/output error > Check your system logs; visit
Importance Assigned to Milestone eCryptfs Edit New Undecided Unassigned Edit You need to log in to change this bug's status. Affecting: eCryptfs Filed here by: sumesh Kumar When: 2013-10-29 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance New Undecided Assigned to Nobody Me Comment on this change (optional) Email me about changes to this bug report Also affects project (?) Also affects distribution/package Nominate for series Bug Description Hi , i was tying to mount ecryptfs with tspi in linux mint when i m mounting getting following error Error attempting to evaluate mount options: [-5] Input/output error here is my command : sumesh ~ # mount -t ecryptfs /secret /secret Select key type to use for newly created files: 1) openssl 2) tspi 3) passphrase Selection: 2 tspi_uuid: 8fff4bc92180face67cd5c215b6b486f Error attempting to evaluate mount options: [-5] Input/output error Check your system logs for details on why this happened. Try updating your ecryptfs-utils package, and/or submit a bug report on https://bugs.launchpad.net/ecryptfs Add tags Tag help See full activity log To post a comment you must log in. Report a bug This report contains Public information Edit Everyone can see this information. Mark as duplicate Convert to a question Link a related branch Link to CVE You are not directly subscribed to this bug's notifications. Subscribing... Edit bug mail Other bug subscribers Subscribe someone else • Take the tour • Read the guide © 2004-2016 CanonicalLtd. • Terms of use • Contact Launchpad Support • Blog • Careers • System status • r18232 (Get the code!)