Do you have a question? Post it now! No Registration Necessary
- Adrian Matoga
February 6, 2009, 10:24 am

Hi,
I've been trying to launch device-mapper with crypt target on Artila
M501 with 2.6.14 but with no success.
Kernel drivers seem to compile and install correctly, devmap_mknod.sh
creates /dev/mapper/control, but dmsetup (both 1.01.05 and 1.02.28)
doesn't work:
# insmod dm-mod.ko
device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-
snipped-for-privacy@redhat.com
# devmap_mknod.sh
Creating /dev/mapper/control character device with major:10 minor:63.
# insmod dm-crypt.ko
# dmsetup targets
v0.0.0
# echo 0 `blockdev --getsize /dev/sda` crypt aes-plain
0123456789abcdef0123456789abcdef 0 /dev/sda 0 | dmsetup create vol
# ls /dev/mapper
control vol
# mke2fs /dev/mapper/vol
mke2fs 1.25 (20-Sep-2001)
mke2fs: No such device or address while trying to determine filesystem
size
# dmsetup ls
No devices found
# dmsetup info
No devices found
# dmsetup info vol
Name: vol
State: ACTIVE
/dev/mapper/vol: open failed: No such device or address
Tables present: None
Open count: 0
Event number: 0
Major, minor: 0, 0
Number of targets: 0
I've tried loading and using other targets, but they also doesn't work
or even show in `dmsetup targets` output.
TIA for any ideas how to make it working.
Regards,
Adrian Matoga
I've been trying to launch device-mapper with crypt target on Artila
M501 with 2.6.14 but with no success.
Kernel drivers seem to compile and install correctly, devmap_mknod.sh
creates /dev/mapper/control, but dmsetup (both 1.01.05 and 1.02.28)
doesn't work:
# insmod dm-mod.ko
device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-
snipped-for-privacy@redhat.com
# devmap_mknod.sh
Creating /dev/mapper/control character device with major:10 minor:63.
# insmod dm-crypt.ko
# dmsetup targets
v0.0.0
# echo 0 `blockdev --getsize /dev/sda` crypt aes-plain
0123456789abcdef0123456789abcdef 0 /dev/sda 0 | dmsetup create vol
# ls /dev/mapper
control vol
# mke2fs /dev/mapper/vol
mke2fs 1.25 (20-Sep-2001)
mke2fs: No such device or address while trying to determine filesystem
size
# dmsetup ls
No devices found
# dmsetup info
No devices found
# dmsetup info vol
Name: vol
State: ACTIVE
/dev/mapper/vol: open failed: No such device or address
Tables present: None
Open count: 0
Event number: 0
Major, minor: 0, 0
Number of targets: 0
I've tried loading and using other targets, but they also doesn't work
or even show in `dmsetup targets` output.
TIA for any ideas how to make it working.
Regards,
Adrian Matoga
Site Timeline
- » Compact flash endurance diagnostics
- — Next thread in » Embedded Linux
-
- » Draft paper submission deadline extended: HPCNCS-09
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » smd perchè magnetici?
- — The site's Newest Thread. Posted in » Electronics Hobby (Italian)
-