If the creation failed, try the second technique described below to [[create a partition image using `ddrescue` on the command line|fsck#ddrescue]] instead.
If creating a partition image using the *Disks* utility fails, you can try this second technique using `ddrescue`, which can be more resilient to hardware failures.
The `ddrescue` utility tries to copy first the parts of the Persistent Storage that are not failing and skips over the parts that are failing. After that, you can run `ddrescue` again to try to copy the parts that failed the first time.
In the terminal, execute the following command. Replace <span class="command-placeholder">/dev/mapper/luks-xyz</span> with the device name found when [[identifying your *Persistent Storage* in the *Disks* utility|fsck#identify]].
If no bad areas were reported or if the same bad areas were reported after several executions of the `ddrescue` command, it means that all the data that could be rescued was copied to the partition image.