I want to use an external SSD (NVMe) for backups with rsync. I want the backup to be encrypted. This is causing more problems than I expected.
I tried it several times with different setups. I formated the ssd with the Yast2-Partitioner. I tried ext4, btrfs und xfs. No problems.
I started the backup process with rsync. Sometimes, the process stops after a few seconds with “broken pipe” and a read-only device. Sometimes it stops when I look into the filesystem with dolphin (dolphin freezes). With ext4 the backups process was very slow. It stops very often for a few moments. I have read that this could be a problem with the journal (commit).
Just now, I tried a backup with ext4 (without encryption), same problem. When I look into a directory everything freeze again. rsync stops (without exit).
When reconnecting the ssd to the computer I am not able to mount the ssd again:
Beim Zugriff auf „953,8 GiB Wechselmedium“ ist ein Fehler aufgetreten, die Meldung lautet: Ein nicht genauer angegebener Fehler ist aufgetreten: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
I tried a different usb-cabel. Maybe the external m.2-body is defect?
I doubt that very much. rsync is just an application program that in the end only does read and write commands for which it uses the kernel. I assume it must be something “below” it. Like kernel or hardware (as you already tried to attack o the hardware level).
Sorry, I wrote “external SSD”. Is there another way to connect other than USB? Yes, it is the same way. I only start VMWare and connect the SSD to the Windows-VM.
It seems to have been a problem with this ugreen device. I ordered the same type again and had the same problems. With a different device (from a different manufacturer), I no longer have any problems.