Re: device-mapper: reload ioctl ... failed: No such file or directory
Milan Broz <[email protected]> Sun, 3 Nov 2024 00:34:38 +0100
| Newsgroups | dev.linux.lists.cryptsetup |
|---|---|
| Message-ID | <[email protected]> |
On 11/2/24 11:53 PM, David J Iannucci wrote: > On Wed, Oct 30, 2024, at 01:10, Milan Broz wrote: ... >> I expect that you have device-mapper udev rules properly installed. > > I'm not sure - how can I check this? This is a fairly bare-bones Gentoo > install and I'm not a big expert on everything that I should be, so that > might have slipped through the cracks. > > But...! I just found something... it seems I am running a systemd-udevd, > which would not have been my choice... I have taken steps to keep > systemd completely off my machine, so this is a surprise. Will consult > Gentoo forums about this. It is ok, udev is part of systemd project now, but can run without system (I have it on my testing non-systemd Gentoo too - it is expected.) >> Is there anything in syslog? > > This is what comes out in /var/log/messages: > > Nov 2 16:31:36 linux kernel: loop0: detected capacity change from 0 to 209715200 > Nov 2 16:31:36 linux kernel: device-mapper: table: 254:0: crypt: Error allocating crypto tfm > Nov 2 16:31:36 linux kernel: device-mapper: ioctl: error adding target to table Ok, *this* is the issue. Some kernel module is perhaps missing or misconfigured. According to log, aes-xts-plain64 should be your image cipher. Do you have aes, xts (and ecb, which xts internally use) kernel crypto modules compiled and available? Does "cryptsetup benchmark --cipher aes-xts" work? If so, please send me tcryptDump "cryptsetup tcryptDump <your image>". > p.s. I note that simple reply on this list goes only to the sender > rather than back to the list, which is maybe the way the list > prefers it? Though in my experience most tech lists like to keep > this kind of discussion on the list so that more eyes are on > things, and solutions are documented, but if that's not the case > here, kindly let me know and I'll use simple reply to individuals > from now on. Yes, please always copy reply to list (unless it contain some private info). This is default config for maillist server, just use reply to all. Milan