LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-24-2019, 03:26 PM   #1
slcklnx
Member
 
Registered: Jan 2019
Posts: 144

Rep: Reputation: Disabled
modules kernel


Hi, please tell me what you need to include in the Linux kernel to make kpartx work
Code:
kpartx -a -v Armbian_5.75_orangepi_win.img


/dev/mapper/control: open failed: no such device

failure to commnicate is available in the kernel
libdevmapper and kernel driver unknow version
device mapper prerequisites not met
[code]
I turned on
Code:
 --block devices [*]loopback device support
 
Old 05-24-2019, 06:57 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Something is wrong with device mapper. It looks like the version of the library used by kpartx is incompatible with the dm kernel module.

I doubt that you are reporting the precise error message. It has typos, and this sentence doesn’t make sense at all:
Code:
failure to commnicate is available in the kernel
Did you check the kernel message buffer?
 
1 members found this post helpful.
Old 05-25-2019, 03:46 AM   #3
slcklnx
Member
 
Registered: Jan 2019
Posts: 144

Original Poster
Rep: Reputation: Disabled
Yes, there are typos. The flash drive was not mounted to transfer the file with the output. I do not know why it is so. so I wrote by hand.

Code:
Enable the block layer                                       
  │ │    -*-   Block layer SG support v4                                 │ │  
  │ │    []   Block layer SG support v4 helper lib                       │ │  
  │ │    []   Block layer data integrity support                         │ │  
  │ │    []   Zoned block device support                                 │ │  
  │ │    []   Block device command line partition parser                 │ │  
  │ │    []   Enable support for block device writeback throttling       │ │  
  │ │    []   Multiqueue writeback throttling                            │ │  
  │ │    []   Block layer debugging information in debugfs               │ │  
  │ │    []   Logic for interfacing with Opal enabled SEDs               │ │  
  │ │          Partition Types  --->
please tell me what contacts here need to be enabled for kpartx to work?
 
Old 05-25-2019, 07:03 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by slcklnx View Post
please tell me what contacts here need to be enabled for kpartx to work?
I am not sure what needs to be compiled into the kernel to enable device mapper. Perhaps CONFIG_BLK_DEV_DM=m? The kernel module is named dm_mod:
Code:
$ modinfo dm_mod
filename:       /lib/modules/3.10.0-957.12.1.el7.x86_64/kernel/drivers/md/dm-mod.ko.xz
license:        GPL
author:         Joe Thornber <dm-devel@redhat.com>
description:    device-mapper driver
alias:          devname:mapper/control
alias:          char-major-10-236
retpoline:      Y
rhelversion:    7.6
srcversion:     BA7CED77E4803DA1F325BC6
depends:
intree:         Y
vermagic:       3.10.0-957.12.1.el7.x86_64 SMP mod_unload modversions
signer:         CentOS Linux kernel signing key
sig_key:        2C:7C:17:70:5C:86:D4:20:80:50:D3:F5:54:56:9A:7B:D3:BF:D1:BF
sig_hashalgo:   sha256
...
$ ls -l /dev/mapper/control
crw-------. 1 root root 10, 236 May 25 11:14 /dev/mapper/control
Also, check the kernel message buffer. I am sure it contains more interesting information.

Last edited by berndbausch; 05-25-2019 at 07:04 AM.
 
1 members found this post helpful.
  


Reply



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
[SOLVED] Slackware 14.2 Install mkinitrd ERROR: No /lib/modules/4.4.14-smp kernel modules tree found for kernel " 4.4.14-smp" laxware Slackware 4 01-04-2019 12:40 PM
new kernel (2.4.22 up from 2.4.20-6) - missing modules - use old modules? Simon Bridge Linux - Software 1 02-04-2004 05:52 AM
Kernel modules: why are some kernel modules zipped? hampel Slackware 3 06-30-2003 06:33 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:22 PM.

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