'df' command displays LUKS devices as /dm-*, rather than the more convenient /dev/mapper/luks-UUID device symlink

Solution In Progress - Updated -

Issue

The 'df' command shows LUKS device paths as /dev/dm-* instead of the actual mounted device name.

Here is an example of this:

$ mount | grep '/storage'
/dev/mapper/luks-39d9ee77-96ce-427d-8184-ead4f7d61d33 on /storage type ext4 (rw,nosuid,nodev,relatime,seclabel)

$ blkid | grep luks-39d9ee77-96ce-427d-8184-ead4f7d61d33
/dev/mapper/luks-39d9ee77-96ce-427d-8184-ead4f7d61d33: UUID="33d68ca3-55dc-4772-902a-298c7b5bcdf6" BLOCK_SIZE="4096" TYPE="ext4"

$ df -h 2>/dev/null | grep 33d68ca3-55dc-4772-902a-298c7b5bcdf6
/dev/dm-11               988M  2.6M  919M   1% /storage

Environment

RHEL 7
RHEL 8

LUKS devices with device names of the format 'luks-UUID'

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content