Skip to contentSkip to conversation

Where did /dev/dm-X go?

DISCUSSION W. Michael Petullo 2 participants 3 messages Nov 26, 2006 – Nov 28, 2006 Device mapper

lore
Share & tools
lore
#0 lore raw

I have been using the dm-crypt interface to perform disk encryption. For example, I helped add dm-crypt/LUKS support to HAL[1].

Recently, I have found the cryptsetup no longer creates /dev/dm-X. Instead, the only device node created by the utility is /dev/mapper/Y (both were created previously.) I am using an up to date Fedora Core 6.

I am trying to figure out what user-space tool/library was responsible for creating /dev/dm-X and why this device node is no longer created when I create a dm-crypt device. Could anyone point me in the right direction?

The following bugs are related to this lack of /dev/dm-X device nodes because these programs rely on these nodes to determine a dm-crypt device's backing device:

Red Hat Bug 216538: Lack of /dev/dm-? breaks hal's encrypted/LUKS volume support Red Hat Bug 124789: Add encrypted root filesystem support to mkinitrd

[1] http://www.redhat.com/magazine/012oct05/features/hal/

Signature · 3 lines
Mike

:wq
#1 lore raw
Quoted 10 lines · W. Michael Petullo

I have been using the dm-crypt interface to perform disk encryption. For example, I helped add dm-crypt/LUKS support to HAL[1].

Recently, I have found the cryptsetup no longer creates /dev/dm-X. Instead, the only device node created by the utility is /dev/mapper/Y (both were created previously.) I am using an up to date Fedora Core 6.

I am trying to figure out what user-space tool/library was responsible for creating /dev/dm-X and why this device node is no longer created when I create a dm-crypt device. Could anyone point me in the right direction?

you probably have an udev rule that ignores dm-[0-9] L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \
#2 lore raw
Quoted 8 lines · Luca Berra
Quoted 7 lines · W. Michael Petullo

I have been using the dm-crypt interface to perform disk encryption. For example, I helped add dm-crypt/LUKS support to HAL[1].

Recently, I have found the cryptsetup no longer creates /dev/dm-X. Instead, the only device node created by the utility is /dev/mapper/Y (both were created previously.) I am using an up to date Fedora Core 6.

Quoted 6 lines
Quoted 3 lines

I am trying to figure out what user-space tool/library was responsible for creating /dev/dm-X and why this device node is no longer created when I create a dm-crypt device. Could anyone point me in the right direction?

you probably have an udev rule that ignores dm-[0-9] L.

btw, i read the code for blockdev_get_luks_uuid

sscanf? on the device file?

this is ridiculus what is sysfs for?

L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \