Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

cryptsetup luksOpen reload ioctl on drive failed

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
baldr333
n00b
n00b
Posts: 14
Joined: Wed May 19, 2021 4:49 pm
Location: Quebec

cryptsetup luksOpen reload ioctl on drive failed

  • Quote

Post by baldr333 » Sun May 26, 2024 12:06 am

Kernel 6.7.6 with openrc

Trying to mount a luks encrypted usb and failing, the drive works fine on other machines

Code: Select all

sudo cryptsetup luksOpen /dev/sdb1 drive
output is:

Code: Select all

device-mapper: reload ioctl on drive (253:0) failed: Invalid argument
from dmesg:

Code: Select all

[ 6610.130723] device-mapper: table: 253:0: crypt: unknown target type
[ 6610.130726] device-mapper: ioctl: error adding target to table
luksDump from a luksFormat test file: https://bpa.st/G4XQ

Kernel config: https://dpaste.com/7HH8BR8UK

At this point I have no clue what could be causing this
played around extensively in the kernel and tried enabling the kernel use flag on cryptsetup but it did not do anything.
Wondering if the fact I do not have an initramfs on this machine could be the issue ?
Any clue in figuring this out will be much appreciated
Top
user
Apprentice
Apprentice
Posts: 245
Joined: Sun Feb 08, 2004 4:57 pm

  • Quote

Post by user » Mon May 27, 2024 8:39 pm

Hi baldr333,
kernel config looks good.
cryptsetup missing argon2 support?

Code: Select all

# equery u sys-fs/cryptsetup
Top
baldr333
n00b
n00b
Posts: 14
Joined: Wed May 19, 2021 4:49 pm
Location: Quebec

  • Quote

Post by baldr333 » Tue May 28, 2024 11:40 pm

Hi,

Seem's like the argon2 flag was already set.

I tried enabling the Kernel useflag instead of the openssl one ,which was the default crypto backend,
but this time I get:

Code: Select all

Cannot initialize crypto backend.
Device /dev/sdb1 is not a valid LUKS device.
Going to have to read more on this to try and figure it out, I have already read the dm-crypt wiki pages quite a few time but still can't figure out exactly what the problem is
Top
The Main Man
Veteran
Veteran
Posts: 1173
Joined: Thu Nov 27, 2014 11:25 pm
Location: /run/user/1000

  • Quote

Post by The Main Man » Wed May 29, 2024 11:11 am

It's not initramfs, I don't have it either and it works.
Top
baldr333
n00b
n00b
Posts: 14
Joined: Wed May 19, 2021 4:49 pm
Location: Quebec

  • Quote

Post by baldr333 » Sun Jun 16, 2024 1:03 am

Switched to the distribution Kernel and that solved my problem
Top
Post Reply

5 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic