When running from the Hardy "Live CD", an error still occurs as follows when 
doing "dmsetup ls", even if "sudo" is used:

[EMAIL PROTECTED]:~$ sudo dmsetup ls
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.02.20 (2007-06-15)(compat) and kernel driver 
Command failed

A workaround is to do "sudo modprobe dm_mod" to load the device-mapper
module, then the result is as follows:

[EMAIL PROTECTED]:~$ sudo modprobe dm_mod
[EMAIL PROTECTED]:~$ sudo dmsetup ls
No devices found
[EMAIL PROTECTED]:~$ sudo modprobe -r dm_mod

Similarly, attempting to use "cryptsetup" without first loading dm_mod, the 
error is confusing.
For example, if you want to use block device /dev/sdX4 with dm-crypt 
(http://www.saout.de/misc/dm-crypt/):

[EMAIL PROTECTED]:~$ sudo apt-get -y install cryptsetup
[EMAIL PROTECTED]:~$ sudo cryptsetup create volume1 /dev/sdX4
Command failed: Incompatible libdevmapper 1.02.20 (2007-06-15)(compat) and 
kernel driver 

Whereas when device-mapper is loaded, the user is prompted for the
passphrase, as expected:

[EMAIL PROTECTED]:~$ sudo modprobe dm_mod
[EMAIL PROTECTED]:~$ sudo cryptsetup create volume1 /dev/sdX4
Enter passphrase: 

Anyways, those are just a couple of other ways the same issue can present 
itself to the user,
that might be handy to mention (as launchpad is of course widely indexed).

-- 
dmsetup: boneheaded errors when invoked with insufficient privileges
https://bugs.launchpad.net/bugs/164184
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to