My Fedora system recently crashes with strange error messages, so I am worried that my ~5 years old SSD is failing.
Now I want to rescue my data from this SSD and reinstall Fedora from scratch on a new SSD.
I created a bootable Fedora USB flash drive and booted it without mounting the failing SSD. Now I want to rescue the data from this SSD onto an external 8TB HDD (~4TB free space). The SSD has a capacity of 1TB, but only ~250 GB are actually used.
I think ddrescue is a good option for that?
How can I use ddrescue? I want to get my data and the logfile in a new folder on the 8TB external HDD. I don’t want to overwrite any data.
I don’t know which file system my external HDD uses. I don’t know the filesystems used by the partitions of my failing SSD (on which Fedora is installed).
So in my case I can run
sudo ddrescue -n /dev/nvme0n1 /run/media/liveuser/Elements/Backup/backup.img /run/media/liveuser/Elements/Backup/log.log
if nvme0n1 is the SSD from which I want to save the data and /run/media/liveuser/Elements/Backup/
is the folder where I want to store the backup and the logfile?