Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2901

General Questions • Re: [Software] df shows drives as /dev/dm-3 etc

$
0
0
Checking an encrypted VM confirms my recollection. Run ls -l /dev/mapper and ls -l /dev/dm*. You'll see the former are merely symlinks to the latter. I would argue dm-0, etc. are the "real" folders. In other words, you're worrying about a non-issue. There's nothing to fix. FWIW, df reports /dev/mapper on two VMs (fully updated), so that's puzzling, but still not important.

For comparison, here's what I see with those two commands, plus a few others, in one of the VMs. For clarity, I've removed references to a couple of shared folders (which aren't in /dev/mapper or /dev/dm* anyway).

Code:

pbear@fde-data:~$ ls -l /dev/dm*brw-rw---- 1 root disk 253, 0 Jan 25 15:49 /dev/dm-0brw-rw---- 1 root disk 253, 1 Jan 25 15:49 /dev/dm-1pbear@fde-data:~$ ls -l /dev/mappertotal 0crw------- 1 root root 10, 236 Jan 25 15:48 controllrwxrwxrwx 1 root root       7 Jan 25 15:49 sda4_crypt -> ../dm-0lrwxrwxrwx 1 root root       7 Jan 25 15:49 sda5_crypt -> ../dm-1pbear@fde-data:~$ df -hT -x tmpfsFilesystem             Type      Size  Used Avail Use% Mounted onudev                   devtmpfs  2.8G     0  2.8G   0% /dev/dev/mapper/sda4_crypt ext4       35G   13G   20G  40% //dev/sda3              ext4      974M  295M  613M  33% /boot/dev/sda2              vfat      197M  5.9M  192M   3% /boot/efi/dev/mapper/sda5_crypt ext4       24G   24K   23G   1% /datapbear@fde-data:~$ inxi -SpSystem:  Host: fde-data Kernel: 6.1.0-30-amd64 arch: x86_64 bits: 64    Desktop: Cinnamon v: 5.6.8 Distro: Debian GNU/Linux 12 (bookworm)Partition:  ID-1: / size: 34.14 GiB used: 12.64 GiB (37.0%) fs: ext4 dev: /dev/dm-0  ID-2: /boot size: 973.4 MiB used: 294.1 MiB (30.2%) fs: ext4    dev: /dev/sda3  ID-3: /boot/efi size: 196.9 MiB used: 5.8 MiB (3.0%) fs: vfat    dev: /dev/sda2  ID-4: /data size: 23.24 GiB used: 24 KiB (0.0%) fs: ext4 dev: /dev/dm-1

Statistics: Posted by pbear — 2025-01-26 00:00



Viewing all articles
Browse latest Browse all 2901

Trending Articles