LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-04-2016, 03:34 AM   #1
Buvaneshkumar
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
Error while making LUKS Encrypted partition


I am trying to make an encrypted partition in Red Hat Linux 7. I am proceeded by following way

fdisk /dev/vdb
n ->
p -> +150M
w
Now, /dev/vdb1 partition is created.
Making encrypted partition

cryptsetup luksFormat /dev/vdb1
:YES
Enterpassphrase:
After entering password i got following error

device-mapper: reload ioctl on failed: Invalid argument
Failed to setup dm-crypt key mapping for device /dev/vdb1
check that kernel supports aes-xts-plain64 cipher
 
Old 01-05-2016, 08:47 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
The kernel might be missing modules but I'm not sure.
I looked up the error you were getting and it leads to this thread.

https://dev.openwrt.org/ticket/7727

A member named Nyko had the same error message that you did and managed to get things working in this Arch Linux link. HTH
http://archlinuxarm.org/forum/viewtopic.php?f=55&t=1761

-::-I don't have experience with Encryption so hang in there. I'm sure that there are members here that can help you and join in.-::-

https://access.redhat.com/documentat...ncryption.html

Encryption Guide:
https://access.redhat.com/documentat...ion_Guide.html
 
Old 01-27-2016, 09:03 PM   #3
MrTux
Member
 
Registered: Dec 2015
Posts: 131

Rep: Reputation: Disabled
It seems as if your kernel does not support default encryption


cat /proc/crypto

to see and make sure you use available encryptions to avoid it.

try using -c with the available encryptions and -s to set the key size

example: sudo cryptsetup luksFormat -c aes-xts-plain -s 512
 
Old 01-29-2016, 05:12 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
What is the output of:
Code:
uname -r
https://bbs.archlinux.org/viewtopic.php?id=179496

Last edited by Ztcoracat; 01-29-2016 at 06:02 PM.
 
  


Reply

Tags
encrypted partition



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while making LUKS Encrypted partition Buvaneshkumar Linux - Newbie 1 01-04-2016 08:06 AM
[SOLVED] 14.1: Problems with luks encrypted / partition l0rddarkf0rce Slackware 4 11-17-2013 04:15 AM
changing a LUKS encrypted partition's key Cultist Slackware 1 03-20-2012 12:13 PM
Recover encrypted LUKS partition itinlopez Linux - General 3 11-30-2008 02:20 AM
mount luks encrypted partition with kdm mattydee Slackware 2 01-28-2008 12:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration