ECryptfs in Arch Linux not running with an error, “ERROR: Cannot get ecryptfs version, ecryptfs kernel...





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I was following the ECryptfs Arch Linux setup instructions, and ran into this problem:



root@alarm:~# ecryptfs-setup-private --nopwcheck --noautomount 
ERROR: Cannot get ecryptfs version, ecryptfs kernel module not loaded?


This is on a newly created Arch Linux machine:



root@alarm:~# uname -a
Linux alarm 4.2.0-1-ARCH #1 PREEMPT Wed Sep 2 07:00:18 MDT 2015 armv5tel GNU/Linux


I subsequently tried building and installing ecryptfs-utils from source, but I get the same error.



I also tried manually creating a secret directory according to the Arch Linux ECryptfs wiki, but I get this error:



root@alarm:~# mount.ecryptfs_private secret
mount: No such device


And when I try mounting without any of the utils scripts, I get this:



root@alarm:~# mount.ecryptfs /root/.secret /root/secret
Unable to get the version number of the kernel
module. Please make sure that you have the eCryptfs
kernel module loaded, you have sysfs mounted, and
the sysfs mount point is in /etc/mtab. This is
necessary so that the mount helper knows which
kernel options are supported.

Make sure that your system is set up to auto-load
your filesystem kernel module on mount.

Enabling passphrase-mode only for now.

Unable to find a list of options to parse, defaulting to interactive mount
Select key type to use for newly created files:
1) passphrase
2) openssl
Selection: 1
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]:
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









share|improve this question

























  • Did you try something as simple as rebooting the system and trying that ecryptfs-setup-private --nopwcheck --noautomount command one more time?

    – JakeGould
    Sep 5 '15 at 1:31






  • 1





    yep, same error

    – cronburg
    Sep 5 '15 at 1:37











  • What about running modprobe ecryptfs as explained here so the ecryptfs is loaded in the kernel? That is the core issue here. It seems that part of the setup is not handled automatically. Also, checkout the discussion on this Arch Linux forum.

    – JakeGould
    Sep 5 '15 at 1:41













  • It says module not found. And the file /lib/modules/$(uname -r)/kernel/fs/ecryptfs/ecryptfs.ko doesn't exist even after building and installing from source.

    – cronburg
    Sep 5 '15 at 1:47











  • Welp, there you go. Somehow you don’t have the module built or loaded.

    – JakeGould
    Sep 5 '15 at 1:48


















0















I was following the ECryptfs Arch Linux setup instructions, and ran into this problem:



root@alarm:~# ecryptfs-setup-private --nopwcheck --noautomount 
ERROR: Cannot get ecryptfs version, ecryptfs kernel module not loaded?


This is on a newly created Arch Linux machine:



root@alarm:~# uname -a
Linux alarm 4.2.0-1-ARCH #1 PREEMPT Wed Sep 2 07:00:18 MDT 2015 armv5tel GNU/Linux


I subsequently tried building and installing ecryptfs-utils from source, but I get the same error.



I also tried manually creating a secret directory according to the Arch Linux ECryptfs wiki, but I get this error:



root@alarm:~# mount.ecryptfs_private secret
mount: No such device


And when I try mounting without any of the utils scripts, I get this:



root@alarm:~# mount.ecryptfs /root/.secret /root/secret
Unable to get the version number of the kernel
module. Please make sure that you have the eCryptfs
kernel module loaded, you have sysfs mounted, and
the sysfs mount point is in /etc/mtab. This is
necessary so that the mount helper knows which
kernel options are supported.

Make sure that your system is set up to auto-load
your filesystem kernel module on mount.

Enabling passphrase-mode only for now.

Unable to find a list of options to parse, defaulting to interactive mount
Select key type to use for newly created files:
1) passphrase
2) openssl
Selection: 1
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]:
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









share|improve this question

























  • Did you try something as simple as rebooting the system and trying that ecryptfs-setup-private --nopwcheck --noautomount command one more time?

    – JakeGould
    Sep 5 '15 at 1:31






  • 1





    yep, same error

    – cronburg
    Sep 5 '15 at 1:37











  • What about running modprobe ecryptfs as explained here so the ecryptfs is loaded in the kernel? That is the core issue here. It seems that part of the setup is not handled automatically. Also, checkout the discussion on this Arch Linux forum.

    – JakeGould
    Sep 5 '15 at 1:41













  • It says module not found. And the file /lib/modules/$(uname -r)/kernel/fs/ecryptfs/ecryptfs.ko doesn't exist even after building and installing from source.

    – cronburg
    Sep 5 '15 at 1:47











  • Welp, there you go. Somehow you don’t have the module built or loaded.

    – JakeGould
    Sep 5 '15 at 1:48














0












0








0








I was following the ECryptfs Arch Linux setup instructions, and ran into this problem:



root@alarm:~# ecryptfs-setup-private --nopwcheck --noautomount 
ERROR: Cannot get ecryptfs version, ecryptfs kernel module not loaded?


This is on a newly created Arch Linux machine:



root@alarm:~# uname -a
Linux alarm 4.2.0-1-ARCH #1 PREEMPT Wed Sep 2 07:00:18 MDT 2015 armv5tel GNU/Linux


I subsequently tried building and installing ecryptfs-utils from source, but I get the same error.



I also tried manually creating a secret directory according to the Arch Linux ECryptfs wiki, but I get this error:



root@alarm:~# mount.ecryptfs_private secret
mount: No such device


And when I try mounting without any of the utils scripts, I get this:



root@alarm:~# mount.ecryptfs /root/.secret /root/secret
Unable to get the version number of the kernel
module. Please make sure that you have the eCryptfs
kernel module loaded, you have sysfs mounted, and
the sysfs mount point is in /etc/mtab. This is
necessary so that the mount helper knows which
kernel options are supported.

Make sure that your system is set up to auto-load
your filesystem kernel module on mount.

Enabling passphrase-mode only for now.

Unable to find a list of options to parse, defaulting to interactive mount
Select key type to use for newly created files:
1) passphrase
2) openssl
Selection: 1
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]:
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









share|improve this question
















I was following the ECryptfs Arch Linux setup instructions, and ran into this problem:



root@alarm:~# ecryptfs-setup-private --nopwcheck --noautomount 
ERROR: Cannot get ecryptfs version, ecryptfs kernel module not loaded?


This is on a newly created Arch Linux machine:



root@alarm:~# uname -a
Linux alarm 4.2.0-1-ARCH #1 PREEMPT Wed Sep 2 07:00:18 MDT 2015 armv5tel GNU/Linux


I subsequently tried building and installing ecryptfs-utils from source, but I get the same error.



I also tried manually creating a secret directory according to the Arch Linux ECryptfs wiki, but I get this error:



root@alarm:~# mount.ecryptfs_private secret
mount: No such device


And when I try mounting without any of the utils scripts, I get this:



root@alarm:~# mount.ecryptfs /root/.secret /root/secret
Unable to get the version number of the kernel
module. Please make sure that you have the eCryptfs
kernel module loaded, you have sysfs mounted, and
the sysfs mount point is in /etc/mtab. This is
necessary so that the mount helper knows which
kernel options are supported.

Make sure that your system is set up to auto-load
your filesystem kernel module on mount.

Enabling passphrase-mode only for now.

Unable to find a list of options to parse, defaulting to interactive mount
Select key type to use for newly created files:
1) passphrase
2) openssl
Selection: 1
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]:
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






linux arch-linux ecryptfs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 5 '15 at 1:30









JakeGould

32.9k10100142




32.9k10100142










asked Sep 5 '15 at 1:25









cronburgcronburg

427413




427413













  • Did you try something as simple as rebooting the system and trying that ecryptfs-setup-private --nopwcheck --noautomount command one more time?

    – JakeGould
    Sep 5 '15 at 1:31






  • 1





    yep, same error

    – cronburg
    Sep 5 '15 at 1:37











  • What about running modprobe ecryptfs as explained here so the ecryptfs is loaded in the kernel? That is the core issue here. It seems that part of the setup is not handled automatically. Also, checkout the discussion on this Arch Linux forum.

    – JakeGould
    Sep 5 '15 at 1:41













  • It says module not found. And the file /lib/modules/$(uname -r)/kernel/fs/ecryptfs/ecryptfs.ko doesn't exist even after building and installing from source.

    – cronburg
    Sep 5 '15 at 1:47











  • Welp, there you go. Somehow you don’t have the module built or loaded.

    – JakeGould
    Sep 5 '15 at 1:48



















  • Did you try something as simple as rebooting the system and trying that ecryptfs-setup-private --nopwcheck --noautomount command one more time?

    – JakeGould
    Sep 5 '15 at 1:31






  • 1





    yep, same error

    – cronburg
    Sep 5 '15 at 1:37











  • What about running modprobe ecryptfs as explained here so the ecryptfs is loaded in the kernel? That is the core issue here. It seems that part of the setup is not handled automatically. Also, checkout the discussion on this Arch Linux forum.

    – JakeGould
    Sep 5 '15 at 1:41













  • It says module not found. And the file /lib/modules/$(uname -r)/kernel/fs/ecryptfs/ecryptfs.ko doesn't exist even after building and installing from source.

    – cronburg
    Sep 5 '15 at 1:47











  • Welp, there you go. Somehow you don’t have the module built or loaded.

    – JakeGould
    Sep 5 '15 at 1:48

















Did you try something as simple as rebooting the system and trying that ecryptfs-setup-private --nopwcheck --noautomount command one more time?

– JakeGould
Sep 5 '15 at 1:31





Did you try something as simple as rebooting the system and trying that ecryptfs-setup-private --nopwcheck --noautomount command one more time?

– JakeGould
Sep 5 '15 at 1:31




1




1





yep, same error

– cronburg
Sep 5 '15 at 1:37





yep, same error

– cronburg
Sep 5 '15 at 1:37













What about running modprobe ecryptfs as explained here so the ecryptfs is loaded in the kernel? That is the core issue here. It seems that part of the setup is not handled automatically. Also, checkout the discussion on this Arch Linux forum.

– JakeGould
Sep 5 '15 at 1:41







What about running modprobe ecryptfs as explained here so the ecryptfs is loaded in the kernel? That is the core issue here. It seems that part of the setup is not handled automatically. Also, checkout the discussion on this Arch Linux forum.

– JakeGould
Sep 5 '15 at 1:41















It says module not found. And the file /lib/modules/$(uname -r)/kernel/fs/ecryptfs/ecryptfs.ko doesn't exist even after building and installing from source.

– cronburg
Sep 5 '15 at 1:47





It says module not found. And the file /lib/modules/$(uname -r)/kernel/fs/ecryptfs/ecryptfs.ko doesn't exist even after building and installing from source.

– cronburg
Sep 5 '15 at 1:47













Welp, there you go. Somehow you don’t have the module built or loaded.

– JakeGould
Sep 5 '15 at 1:48





Welp, there you go. Somehow you don’t have the module built or loaded.

– JakeGould
Sep 5 '15 at 1:48










1 Answer
1






active

oldest

votes


















0














Old thread, but I wanted to post the solution for future reference.



You only need to run the ecrpyptfsd commad before any other ecryptfs programs. This will load the necessary modules for the other commands to work.






share|improve this answer



















  • 3





    Didn't work for me. modprobe ecryptfs did, though.

    – Turion
    Jul 1 '18 at 13:40














Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f968541%2fecryptfs-in-arch-linux-not-running-with-an-error-error-cannot-get-ecryptfs-ve%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Old thread, but I wanted to post the solution for future reference.



You only need to run the ecrpyptfsd commad before any other ecryptfs programs. This will load the necessary modules for the other commands to work.






share|improve this answer



















  • 3





    Didn't work for me. modprobe ecryptfs did, though.

    – Turion
    Jul 1 '18 at 13:40


















0














Old thread, but I wanted to post the solution for future reference.



You only need to run the ecrpyptfsd commad before any other ecryptfs programs. This will load the necessary modules for the other commands to work.






share|improve this answer



















  • 3





    Didn't work for me. modprobe ecryptfs did, though.

    – Turion
    Jul 1 '18 at 13:40
















0












0








0







Old thread, but I wanted to post the solution for future reference.



You only need to run the ecrpyptfsd commad before any other ecryptfs programs. This will load the necessary modules for the other commands to work.






share|improve this answer













Old thread, but I wanted to post the solution for future reference.



You only need to run the ecrpyptfsd commad before any other ecryptfs programs. This will load the necessary modules for the other commands to work.







share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 27 '17 at 21:11









Ocab19Ocab19

1011




1011








  • 3





    Didn't work for me. modprobe ecryptfs did, though.

    – Turion
    Jul 1 '18 at 13:40
















  • 3





    Didn't work for me. modprobe ecryptfs did, though.

    – Turion
    Jul 1 '18 at 13:40










3




3





Didn't work for me. modprobe ecryptfs did, though.

– Turion
Jul 1 '18 at 13:40







Didn't work for me. modprobe ecryptfs did, though.

– Turion
Jul 1 '18 at 13:40




















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f968541%2fecryptfs-in-arch-linux-not-running-with-an-error-error-cannot-get-ecryptfs-ve%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Terni

A new problem with tex4ht and tikz

Sun Ra