Garbled file names in the root filesystem

Hello,

Requirements:

I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the the Release Notes and Errata

OpenMandriva Lx version:

ROME

Desktop environment (KDE, LXQT…):

KDE

Description of the issue (screenshots if relevant):

Just noticed today (because I don’t cd to my root directory often) a whole bunch of garbled files in my root filesystem. I have no idea how they got there or what’s generating them:

-rw-------   1 root root    0 May 12 09:37 ' '$'\267\333\020'
-rw-------   1 root root    0 May  2 08:54 ' '$'\347\363\020'
-rw-------   1 root root    0 Apr 24 08:58 ' '$'\347\243\024'
-rw-------   1 root root    0 Apr 21 09:17 ' '$'\247\363\025'
-rw-------   1 root root    0 May  2 15:10 ' '$'\307\347\032'
-rw-------   1 root root    0 May  6 09:48 ' '$'\227\302\036'
-rw-------   1 root root    0 May 10 17:44 ' '$'\367\221\t'
-rw-------   1 root root    0 Apr 23 10:35 ' '$'\227\325\v'
-rw-------   1 root root    0 Apr 28 08:51 ' '$'\207\363'\'''
-rw-------   1 root root    0 May  1 09:40 ' '$'\247\232''('
-rw-------   1 root root    0 May 14 09:40 ' '$'\347\212'','
-rw-------   1 root root    0 May 27 08:16 ' '$'\207\343''-'
-rw-------   1 root root    0 May 21 09:33 ' '$'\207\342'':'
-rw-------   1 root root    0 Apr 22 10:47 ' '$'\367\371'':'
-rw-------   1 root root    0 Apr 23 09:19 ' '$'\347\207'';'
-rw-------   1 root root    0 May 27 08:16 ' '$'\247\335''>'
-rw-------   1 root root    0 Apr 23 10:35 ' '$'\367\346''>'
-rw-------   1 root root    0 May 15 09:33 ' '$'\327\314''@'
-rw-------   1 root root    0 May 14 22:00 ' '$'\267\004''?'
-rw-------   1 root root    0 May  2 08:54 ' '$'\347\022\030'
-rw-------   1 root root    0 Apr 19 08:01 ' '$'\307\030\030'
-rw-------   1 root root    0 Apr 30 08:50 ' '$'\307\033''-'
-rw-------   1 root root    0 Apr 23 09:19 ' '$'\247\037\030'
-rw-------   1 root root    0 May 16 10:53 ' '$'\367\t\f'
-rw-------   1 root root    0 May 10 17:43 ' '$'\207\v\016'
-rw-------   1 root root    0 Apr 30 16:32 ' '$'\247\v'')'
-rw-------   1 root root    0 May 27 08:16 ' '$'\227\r''+'
-rw-------   1 root root    0 Apr 23 10:35 ' '$'\367''#,'
-rw-------   1 root root    0 May 22 09:51 ' '$'\207''-'$'\n'
-rw-------   1 root root    0 Apr 22 09:19 ' '$'\327''.'$'\a'
-rw-------   1 root root    0 Apr 19 08:01 ' '$'\347'';'\'''
-rw-------   1 root root    0 May  2 08:54 ' '$'\207''\'$'\024'
-rw-------   1 root root    0 May 20 09:00 ' '$'\a\243\030'
-rw-------   1 root root    0 Apr 21 09:29 ' '$'\a\242\036'
-rw-------   1 root root    0 Apr 30 16:32 ' '$'\a\205\r'
-rw-------   1 root root    0 May 23 09:43 ' '$'\a\273'','
-rw-------   1 root root    0 May 10 17:43 ' '$'\a''&'$'\a'
-rw-------   1 root root    0 Apr 30 08:49 ' '$'\027\325\020'
-rw-------   1 root root    0 Apr 23 10:35 ' '$'\027\270\036'
-rw-------   1 root root    0 Apr 21 11:49 ' '$'\027\222'';'
-rw-------   1 root root    0 Apr 21 11:49 ' '$'\027\032\032'
-rw-------   1 root root    0 May 13 09:25 ' '$'\027''('$'\037'
-rw-------   1 root root    0 May 15 09:33 ' '\'''$'\344\a'
-rw-------   1 root root    0 May  5 10:01 ' '\'''$'\261\034'
-rw-------   1 root root    0 May 19 09:33 ' '\'''$'\253\f'
-rw-------   1 root root    0 May 13 09:25 ' '\'''$'\253\r'
-rw-------   1 root root    0 Apr 28 08:51 ' '\'''$'\271''!'
-rw-------   1 root root    0 May  5 10:01 ' '\'''$'\244'')'
-rw-------   1 root root    0 Apr 22 10:47 ' ׇ<'
-rw-------   1 root root    0 Apr 21 11:46 ' '$'\367\252''$'
-rw-------   1 root root    0 May 16 10:53 ' '$'\267''2'$'\020'
-rw-------   1 root root    0 May  6 09:48 ' '$'\a\036''2'
-rw-------   1 root root    0 Apr 22 09:19 ' '$'\247\370''3'
-rw-------   1 root root    0 Apr 24 08:58 ' '$'\227\242''3'
-rw-------   1 root root    0 May  6 09:48 ' '$'\347''-4'
-rw-------   1 root root    0 May 23 09:43 ' '$'\227''-4'
-rw-------   1 root root    0 May 16 10:53 ' '$'\367''4'$'\036'
-rw-------   1 root root    0 May 22 09:51 ' '$'\227''4'$'\r'
-rw-------   1 root root    0 May  2 15:10 ' '$'\227''@5'
-rw-------   1 root root    0 Apr 22 09:19 ' '\''5('
-rw-------   1 root root    0 May 21 09:33 " '.6"
-rw-------   1 root root    0 May 22 09:52 ' '$'\027\a''7'
-rw-------   1 root root    0 May 14 22:00 ' 7'$'\376\016'
-rw-------   1 root root    0 May 14 09:50 ' 7'$'\337\025'
-rw-------   1 root root    0 May 14 09:50 ' 7'$'\265\v'
-rw-------   1 root root    0 May 10 17:43 ' 7'$'\270''#'
-rw-------   1 root root    0 May  2 08:54 ' 7'$'\363''%'
-rw-------   1 root root    0 May 14 22:00 ' 7'$'\366''<'
-rw-------   1 root root    0 Apr 28 08:51 ' 7%'$'\036'
-rw-------   1 root root    0 Apr 21 09:18 ' 7A%'
-rw-------   1 root root    0 May 24 08:27 " 7q'"
-rw-------   1 root root    0 May 15 09:33 ' 7U'$'\036'
-rw-------   1 root root    0 Apr 21 11:49 ' 7x'$'\027'
-rw-------   1 root root    0 May 20 09:01 ' '$'\307\334''8'
-rw-------   1 root root    0 Apr 24 08:58 ' '$'\347''+8'
-rw-------   1 root root    0 Apr 21 11:45 ' '$'\347\236''9'
-rw-------   1 root root    0 May 27 08:16 ' '$'\347\320''A'
-rw-------   1 root root    0 Apr 19 08:01 ' '$'\307''A'$'\020'
lrwxrwxrwx   1 root root    7 Jun 26  2022  bin -> usr/bin/
dr-xr-xr-x   4 root root 4.0K Apr 21 09:22  boot/
-rw-------   1 root root    0 Apr 21 11:45 ' '$'\027''C;'
-rw-------   1 root root 2.0K Apr 17 10:22  crypto_keyfile.bin
-rw-------   1 root root    0 May 14 09:39 ' '$'\327''D'$'\016'
drwxr-xr-x  23 root root 4.8K May 27 10:52  dev/
-rw-------   1 root root    0 May 14 09:39 ' '$'\307''E'\'''
drwxr-xr-x 142 root root  12K May 27 08:18  etc/
-rw-------   1 root root    0 Apr 30 16:32 ' g'$'\302\n'
-rw-------   1 root root    0 May 13 09:25 ' g'$'\253''!'
-rw-------   1 root root    0 May 12 09:37 ' g'$'\003\037'
-rw-------   1 root root    0 Apr 23 09:19 ' G'$'\207\034'
-rw-------   1 root root    0 May 12 09:37 ' G'$'\324''('
-rw-------   1 root root    0 Apr 23 09:19 ' G'$'\304'':'
-rw-------   1 root root    0 Apr 22 10:47 ' G&'$'\022'
-rw-------   1 root root    0 May  1 09:40 ' G\'$'\r'
-rw-------   1 root root    0 May 21 09:33 ' G_'$'\026'
-rw-------   1 root root    0 Apr 22 09:19 ' ǧ'$'\026'
-rw-------   1 root root    0 May 20 09:00 ' g'$'\240''4'
-rw-------   1 root root    0 May 19 09:32 ' g8"'
-rw-------   1 root root    0 May 19 09:33 ' gL'$'\n'
-rw-------   1 root root    0 May  6 09:48 ' Gw'$'\020'
drwxr-xr-x   3 root root 4.0K Apr 17 10:22  home/
-rw-------   1 root root    0 Apr 24 08:58 ' '$'\367''i'$'\034'
-rw-------   1 root root    0 May 12 09:37 ' '$'\327''I@'
-rw-------   1 root root    0 May 23 09:43 ' Ǐ%'
drwxr-xr-x   2 root root 4.0K Jun 26  2022  initrd/
-rw-------   1 root root    0 May 16 10:53 ' '$'\227''l%'
lrwxrwxrwx   1 root root    7 Jun 26  2022  lib -> usr/lib/
lrwxrwxrwx   1 root root    9 Jun 26  2022  lib64 -> usr/lib64/
lrwxrwxrwx   1 root root   10 Jun 26  2022  libx32 -> usr/libx32/
drwx------   2 root root  16K Apr 17 10:19  lost+found/
-rw-------   1 root root    0 May 24 08:27 ' '$'\207''m&'
-rw-------   1 root root    0 May 24 08:28 ' '$'\a''m'$'\t'
-rw-------   1 root root    0 Apr 21 11:46 ' '$'\207''M'$'\a'
-rw-------   1 root root    0 Apr 30 08:49 ' '$'\027''M@'
drwxr-xr-x   2 root root 4.0K Jun 26  2022  media/
drwxr-xr-x   2 root root 4.0K Jun 26  2022  mnt/
-rw-------   1 root root    0 Apr 21 09:29 ' '$'\227''o'$'\023'
-rw-------   1 root root    0 Apr 22 10:47 ' '$'\207''o'\'''
drwxr-xr-x  11 root root 4.0K Apr 21 18:19  opt/
dr-xr-xr-x 571 root root    0 May 27 08:16  proc/
-rw-------   1 root root    0 Apr 21 09:18 ' '$'\307''R'$'\032'
dr-xr-x---  17 root root 4.0K May 14 12:35  root/
drwxr-xr-x  46 root root 1.1K May 27 08:24  run/
lrwxrwxrwx   1 root root    7 Jun 26  2022  sbin -> usr/bin/
drwxr-xr-x   2 root root 4.0K Mar 22  2022  srv/
dr-xr-xr-x  12 root root    0 May 27 08:16  sys/
drwxrwxrwt  42 root root 1.1K May 27 12:50  tmp/
drwxr-xr-x  16 root root 4.0K Apr 17 10:52  usr/
drwxr-xr-x  17 root root 4.0K Apr 17 11:15  var/
-rw-------   1 root root    0 May  2 15:10 ' w'$'\210\005'
-rw-------   1 root root    0 May 14 09:50 ' w'$'\230\a'
-rw-------   1 root root    0 Apr 21 09:29 ' w'$'\344\b'
-rw-------   1 root root    0 Apr 21 09:18 ' w'$'\365''!'
-rw-------   1 root root    0 May 22 09:52 ' w%'$'\017'
-rw-------   1 root root    0 May 20 09:01 ' W'$'\233\033'
-rw-------   1 root root    0 May 19 09:32 ' W'$'\336''('
-rw-------   1 root root    0 May 14 22:00 ' W'$'\330'')'
-rw-------   1 root root    0 May  5 10:01 ' W'$'\001''*'
-rw-------   1 root root    0 May 14 09:39 ' W'$'\006\v'
-rw-------   1 root root    0 May 13 09:25 ' W'$'\177\016'
-rw-------   1 root root    0 Apr 21 09:29 ' W0'$'\025'
-rw-------   1 root root    0 May 14 09:50 ' W+1'
-rw-------   1 root root    0 Apr 30 08:50 ' W1*'
-rw-------   1 root root    0 Apr 19 08:01 ' W'$'\355''4'
-rw-------   1 root root    0 May  5 10:01 ' '$'\207''w5'
-rw-------   1 root root    0 Apr 28 08:51 ' wF"'
-rw-------   1 root root    0 May 15 09:33 ' WH'$'\035'
-rw-------   1 root root    0 May 23 09:43 ' WI'$'\034'
-rw-------   1 root root    0 May 24 08:27 ' Wt'$'\034'
-rw-------   1 root root    0 May  2 15:10 ' '$'\307''X'$'\020'
-rw-------   1 root root    0 Apr 30 16:32 " 'YC"

Relevant informations (hardware involved, software version, logs or output…):

I installed ROME on this system about a month ago now. Encrypted system (required for work) with swap/hibernate and only efi, swap and / partitions:

Anybody know what’s going on here?

Can you walk us through the options you chose for encryption when you installed OMLx?

Certainly! I chose Erase Disk, Swap with Hibernate, and Encrypt System. I gave Calamares a password and that was it. Very easy.

I have noticed (in a VM) that after the 6.0 Rock release, the bug with having to enter the password twice (once pre-Grub, once post-Grub) is fixed. My system, however, still has that requirement. I have no idea if this is related, though. If there’s a way to fix it so I only have to enter the password post-Grub, that would be ideal, as this machine has a HIDPI screen, which makes it super-hard to see the prompt for the password.

You can try/verify the following fix:

I am not certain if the upstream with the fix was added or not. We are also discussing LUKS2. The last time it was enabled, it broke grub2 completely so we definitely need people willing to test that independently:

But after doing some search sleuthing, it appears this may be intended behavior and you might have to manually decrypt:

https://linux.die.net/man/8/cryptsetup

I would suggest doing some more research to verify. The source of the information was this Stack post:

https://superuser.com/questions/1179046/passing-luks-passphrase-to-unlock-encrypted-rootfs-with-script-instead-of-passin

Thank you, @zeroability !

It took me a couple days to research some of this and do some experiments. In my scenario, I’m only doing disk encryption because my company makes me. :slight_smile: They have a default Linux you can use based on Fedora, and when that’s installed, Grub just comes up, and you’re not asked for a password until after it attempts to boot the OS.

This tells me it must be acceptable to have an unencrypted /boot partition. I was able to verify this in a VM with the OM Calamares installer if I chose these options:

- 500MB /boot (no encryption) ext4
- 300MB /boot/efi (no encryption) fat32
- 8192MB linuxswap (no encryption) linuxswap
- / and /home (encryption) ext4 

If I install with that partition scheme, I mimic the behavior I get on my company’s Fedora. I’m asked to decrypt AFTER Grub, in the graphical Plymouth screen. This is really what I want, because a) Grub decryption takes forever, and b) the machine they gave me has a HIDPI screen, and I can barely see the decryption request from Grub.

My next question is, can I convert my existing installation to this, or do I have to reinstall (which would likely solve the garbled file names problem I originally posted about)? My guess is no, because the automatic partitioning has an encrypted / and an unencrypted /boot/efi, so I’m guessing Grub needs to decrypt / before it can get to /boot/efi. But I’m not sure, and I’m not sure how to go about testing this.

1 Like

This guidance may be helpful:

https://wiki.archlinux.org/title/Removing_system_encryption#Decrypting_LUKS1_devices_in-place

I would suggest reading the entire article as there may be other things you will have to do. This is new territory for me as I do not encrypt my PC’s.