Error attempting to evaluate mount options: [-22] Invalid argument

Bug #1768007 reported by Soumya Boral on 2018-04-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eCryptfs
Undecided
Unassigned

Bug Description

While trying to re-mount a directory I am getting the following output

Command :

mount -t ecryptfs /home/pi/r_process/gauge_code /home/pi/r_process/gauge_code

Output :

Error attempting to evaluate mount options: [-22] Invalid argument
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

However if I try to mount any other directory, then there is no problem.

From sys logs I am getting this

Apr 30 07:58:48 raspberrypi ntpd[871]: Listen normally on 43 eth0 192.168.99.89 UDP 123
Apr 30 07:58:48 raspberrypi ntpd[871]: peers refreshed
Apr 30 07:58:51 raspberrypi dhcpcd[827]: eth0: no IPv6 Routers available
Apr 30 07:59:01 raspberrypi CRON[17496]: (root) CMD (find /root -mmin +240 -type f -name "*.txt" \-exec rm -f {} \;)
Apr 30 07:59:01 raspberrypi CRON[17497]: (root) CMD ( /bin/bash -c 'timeout --signal=SIGINT 5s /usr/src/run/hcitool lescan; sleep 10; timeout --signal=SIGINT 5s /usr/src/run/hcitool lescan; sleep 10;timeout --signal=SIGINT 5s /usr/src/run/hcitool lescan; sleep 10;timeout --signal=SIGINT 5s /usr/src/run/hcitool lescan; sleep 10;' >/dev/null 2>&1)
Apr 30 07:59:01 raspberrypi CRON[17504]: (root) CMD (find /home/pi -mmin +360 -type f -name "*.csv" \-exec rm -f {} \;)
Apr 30 07:59:41 raspberrypi mount.ecryptfs: Error initializing key module [/usr/lib/arm-linux-gnueabihf/ecryptfs/libecryptfs_key_mod_gpg.so]; rc = [-22]
Apr 30 07:59:41 raspberrypi mount.ecryptfs: tf_pass_file: Cannot find [passwd] directive

Soumya Boral (boral) on 2018-04-30
description: updated
Tyler Hicks (tyhicks) wrote :

Hello - are you using the GPG support in eCryptfs? It looks like you have a bad version of the GPG module built and installed at /usr/lib/arm-linux-gnueabihf/ecryptfs/libecryptfs_key_mod_gpg.so. Do you know how that file got there? If you manually built and installed it, you may want to make a backup of the file (perhaps to your home directory), remove it from the location in /usr/lib/arm-linux-gnueabihf/ecryptfs/, and try again.

Changed in ecryptfs:
status: New → Incomplete
Soumya Boral (boral) wrote :

I haven't intentionally installed gpg support.

Have deleted /usr/lib/arm-linux-gnueabihf/ecryptfs/libecryptfs_key_mod_gpg.so

After trying again, I am getting this :

mount.ecryptfs: tf_pass_file: Cannot find [passwd] directive

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers