Update to 6.2.6-1 - Several files and folders from Desktop are gone

Hi!

I updated a TW KDE yesterday to 6.2.6-1 with zypper dup and rebooted.

As with all my TW machines since kernel 6.2 the desktop icons were completly mixed up (some machines: all in left columns, some machines the icons are moved 1 position downward for each column). But on this machine several files and folders on the Desktop are gone now, not in trash, no idea where to start looking for them.

The install is on a Samsung 870 EVO SSD in good health condition with some 11000h uptime and not much written to.

I’m a little lost on this. TW has extended “bad hair days” these weeks… :frowning:

First time I opened an upgrade to Plasma 5.27.3 the desktop icons I’d rather make go away entirely were glued to the secondary display. :stuck_out_tongue: I have no use for desktop icons but haven’t found any way to make them disappear short of deleting the directories they represent.

But I have lost data by this update. I have two browsers starting with shortcuts on the Desktop the binaries in folders on the Desktop. The shortcut did nothing after reboot some 36h ago, as the folders with the binaries are gone now.

Moreover, I had some media files on the Desktop, which are gone now, too. Again: I have lost data by zypper dup and then reboot. That’s not normal, even for the standards of TW…

Here some snippets from journalctl |grep /home/username/Desktop BEFORE this zypper dup, showing that the browsers were started in the past on Desktop

Feb 06 12:57:09 Dell6TW1121 systemd[1669]: Started /home/username/Desktop/firefox_folder/firefox
...
Mar 12 12:05:10 Dell6TW1121 dbus-daemon[11050]: [session uid=1000 pid=11050] Activating via systemd: service name='org.gtk.vfs.Metadata' unit='gvfs-metadata.service' requested by ':1.58' (uid=1000 pid=12089 comm="/home/username/Desktop/palemoon/palemoon")
Mar 20 16:49:59 Dell6TW1121 dbus-daemon[2477]: [session uid=1000 pid=2477] Activating via systemd: service name='org.gtk.vfs.Metadata' unit='gvfs-metadata.service' requested by ':1.71' (uid=1000 pid=12388 comm="/home/username/Desktop/palemoon/palemoon")
...

And here after this zypper dup

Mar 24 10:15:35 Dell6TW1121 plasmashell[2749]: kf.kio.gui: "Could not find the program '/home/username/Desktop/firefox_folder/firefox'"
Mar 24 10:16:27 Dell6TW1121 plasmashell[2749]: kf.kio.gui: "Could not find the program '/home/username/Desktop/firefox_folder/firefox'"
Mar 24 10:39:23 Dell6TW1121 plasmashell[2749]: kf.kio.gui: "Could not find the program '/home/username/Desktop/palemoon/palemoon'"

Here the smart info for the only drive in this notebook, file system is ext4 with a dedicated partition for /home:

smartctl -a /dev/sda
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.2.6-1-default] (SUSE RPM)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Samsung based SSDs
Device Model:     Samsung SSD 870 EVO 250GB
Serial Number:    ++++++
LU WWN Device Id: 5 002538 ++++++
Firmware Version: SVT01B6Q
User Capacity:    250,059,350,016 bytes [250 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
TRIM Command:     Available, deterministic, zeroed
Device is:        In smartctl database 7.3/5319
ATA Version is:   ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Sat Mar 25 10:51:58 2023 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever 
                                        been run.
Total time to complete Offline 
data collection:                (    0) seconds.
Offline data collection
capabilities:                    (0x53) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        No Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine 
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  85) minutes.
SCT capabilities:              (0x003d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   097   097   000    Old_age   Always       -       11749
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       37
177 Wear_Leveling_Count     0x0013   099   099   000    Pre-fail  Always       -       4
179 Used_Rsvd_Blk_Cnt_Tot   0x0013   100   100   010    Pre-fail  Always       -       0
181 Program_Fail_Cnt_Total  0x0032   100   100   010    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   100   100   010    Old_age   Always       -       0
183 Runtime_Bad_Block       0x0013   100   100   010    Pre-fail  Always       -       0
187 Uncorrectable_Error_Cnt 0x0032   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0032   067   044   000    Old_age   Always       -       33
195 ECC_Error_Rate          0x001a   200   200   000    Old_age   Always       -       0
199 CRC_Error_Count         0x003e   100   100   000    Old_age   Always       -       0
235 POR_Recovery_Count      0x0012   099   099   000    Old_age   Always       -       12
241 Total_LBAs_Written      0x0032   099   099   000    Old_age   Always       -       1333308040

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     11741         -
# 2  Short offline       Completed without error       00%     11717         -
# 3  Short offline       Completed without error       00%     11693         -
# 4  Short offline       Completed without error       00%     11669         -
# 5  Short offline       Completed without error       00%     11645         -
# 6  Short offline       Completed without error       00%     11621         -
# 7  Short offline       Completed without error       00%     11597         -
# 8  Short offline       Completed without error       00%     11573         -
# 9  Short offline       Completed without error       00%     11549         -
#10  Short offline       Completed without error       00%     11525         -
#11  Short offline       Completed without error       00%     11501         -
#12  Short offline       Completed without error       00%     11477         -
#13  Short offline       Completed without error       00%     11453         -
#14  Short offline       Completed without error       00%     11429         -
#15  Short offline       Completed without error       00%     11405         -
#16  Short offline       Completed without error       00%     11381         -
#17  Short offline       Completed without error       00%     11357         -
#18  Short offline       Completed without error       00%     11333         -
#19  Short offline       Completed without error       00%     11309         -
#20  Short offline       Completed without error       00%     11285         -
#21  Short offline       Completed without error       00%     11261         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
  256        0    65535  Read_scanning was never started
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

I removed the SSD from the machine and connected it with a USB-SATA adapter to another TW install. Tried some recovery tools, without success:

 extundelete /dev/sdd1 --journal
No action specified; implying --superblock.
NOTICE: Extended attributes are not restored.
Journal Super Block:
Signature: 0xc03b3998
Block type: Superblock version 2
Sequence Number: 0
Journal block size: 4096
Number of journal blocks: 262144
Journal block where the journal actually starts: 1
Sequence number of first transaction: 681212
Journal block of first transaction: 0
Error number: 0
Compatible Features: 0
Incompatible features: 19
Read only compatible features: 0
Journal UUID: 0x21b75e6e7c3e498f9e222f6c693aa82b
Number of file systems using journal: 1
Location of superblock copy: 0
Max journal blocks per transaction: 0
Max file system blocks per transaction: 0
IDs of all file systems using the journal:
1. 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00

extundelete /dev/sdd1 --restore-directory username/Desktop/palemoon
NOTICE: Extended attributes are not restored.
Loading filesystem metadata ... 1600 groups loaded.
Loading journal descriptors ... 0 descriptors loaded.
extundelete: Extent block checksum does not match extent block while finding inode for palemoon
extundelete: Extent block checksum does not match extent block while finding inode for palemoon
Failed to restore file username/Desktop/palemoon
Could not find correct inode number past inode 1048973.
Try altering the filename to one of the entries listed below.
File name                                       | Inode number | Deleted status
extundelete: Operation not permitted while restoring directory.
extundelete: Operation not permitted when trying to examine filesystem

and

ext4magic /dev/sdd1 -a $(date -d "-50hours" +%s) -f username/Desktop -l
Filesystem in use: /dev/sdd1

Using  internal Journal at Inode 8
Activ Time after  : Thu Mar 23 10:07:00 2023
Activ Time before : Sat Mar 25 12:07:00 2023
Warning: error-NR 2133571363 can not found file: /
Error: Inode not found for "username/Desktop"
Check the valid PATHNAME "username/Desktop" and the BEFORE option "Sat Mar 25 12:07:00 2023

Samsung Magician tool reports 636 GB written and Health Condition as “good” for the drive…

have you tried to ether:

  1. plug your drive into a different linux box to see if the files are just not detected by TW for what ever reason,
  2. restore the files from a previous snapshot or backup
  3. looked in your lost+found folder
  4. or use a specialised tool to scan your ssd for files that may have been deleted or forgotten about?
    sorry aout your data, it can be a real bummer when you loose bunch of files, especially if you dont back them up before restoring.
  1. Makes no difference, files and folders a gone. Some custom folders in /home still there, but files inside gone.

  2. I want to know, why these files/folders are gone in the first place.

  3. Nothing in there

  4. See above, no files to recover. This journalctl logs every sh*t, but not when files get deleted? I cant’ believe that. But as a matter of fact, the files/folders were there the evening I started zypper dup, only thing I did afterwards was a reboot, next morning I did first login and the Desktop was half-empty the rest of the icons re-arranged as described above.

You do know that all desktop stuff is in your home directory???

So a reinstall should not touch home unless you told it to.

Have you check lost and found folder??

Only true if it is on a separate file system.

(And restoring from backup after installation is of course always a possibility).

That is fine then, but the general phrase of “home” worried me. There are more people reading such statements on these forums then just the OP and you and I and they could take it for granted.

I replaced the SSD with a fresh one and installed TW from the scratch. The old SSD is now attached to a different TW machine via USB-SATA adapter. I did

fdisk -l

...
Disk /dev/sdd: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk model: SSD 870 EVO 250G
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: 02396863-9D7F-480A-8857-C97C1F3DA4A6

Device        Start       End   Sectors  Size Type
/dev/sdd1  68966400 488396799 419430400  200G Linux filesystem
/dev/sdd2      2048     18431     16384    8M BIOS boot
/dev/sdd3     18432  64772095  64753664 30.9G Linux filesystem
/dev/sdd4  64772096  68966399   4194304    2G Linux swap

Partition table entries are not in disk order.

And as /home is on dev/sdd1:

 fsck.ext4 -n /dev/sdd1
e2fsck 1.46.5 (30-Dec-2021)
/dev/sdd1: clean, 4859/13107200 files, 10232927/52428800 blocks

I really don’t get what’s going on here…

# cd lost+found/
# ls -al
total 20
drwx------ 2 root root 16384 Nov 20  2021 .
dr-xr-xr-x 4 root root  4096 Nov 20  2021 ..

…and in addition:

df -h
...
/dev/sdd1       196G   35G  151G  19% /run/media/username/21b75e6e-7c3e-498f-9e22-2f6c2ba83a69
/dev/sdd3        31G  9.1G   20G  32% /run/media/username/77161b3d-87b2-417a-81d4-2a27411ec386

…with dev/sdd3 the / of the TW install…

And on this / partition:

cd lost+found 
ls -al
total 20
drwx------  2 root root 16384 Jul 13  2022 .
drwxr-xr-x 18 root root  4096 Jan 21 17:01 ..