dbfc wrote:
The drive shows up as 2 disks with Target mode, which I guess is the Fusion problem. Should I ddrescue them separately? The Disk Drill program made a clone of the disks which are .dmg files, neither of which can be mounted. Should I try to ddrescue those files first?
I don't know how Disk Drill works so I cannot provide an answer there.
If you are seeing two drives and no Fusion Drive, then the Fusion Drive is split. I don't think there is any way to rejoin them and retain the data. This will greatly reduce the chances of recovering your data since the data can be spread across both drives, although most of it should reside on the failing hard drive.
FYI, ddrescue won't rescue individual files, but instead performs a low level block for block clone. It is only after you make a complete clone (or as much as possible) that you can then utilize other tools to attempt to access the data from the cloned drive.
If you are not removing the hard drive and the Fusion Drive is split (that is you don't see that third item), then you just need to clone the failing hard drive itself. However, if the Fusion Drive is visible, then that is what you want to clone.
Which format should I use for the drive to clone the data to if using Linux?
The destination drive can have any file system or no file system or partition. ddrescue will clone the source drive making the destination drive an exact image of the source (at least for the portions of the source drive that can still be read & accessed).
Technically you can save the clone into a raw image file onto the destination drive, but then you would need yet another drive to transfer that image so that macOS & your data recovery software can read it (there is a chance you can do so from the mounted raw image file, but with macOS & macOS software this is not guaranteed to work...with Linux yes, but macOS not always). While having a copy of the cloned image in a raw image file can be handy so that you can start over, I doubt it will matter here. I will be surprised if you can clone enough of the failing drive to even attempt to recover any files with a data recovery app especially since it appears the Fusion Drive is split.
And lastly, is there any advantage pulling the disk out, rather than accessing it via Target disk mode, which shouldn't involve macOS as it isn't loaded on the source machine. I have a USB SATA adapter, though I'm not sure how reliable those things are.
Theoretically you should be able to do it through Target Disk Mode.
I guess I will have to replace the drive at some stage anyway, but it gets messy with this model of iMac with the glued on screen, and I haven't yet got a replacement drive.
You can try installing macOS to an external USB3 SSD & use the iMac by booting from the external SSD so you don't have to open the iMac to replace the internal drive. However, some hard drive failures can cause performance issues even when booting from external media.
In other words, were you using Target disk mode with your unsatisfactory attempts on Macs.
I may have tried it once a very long time ago, but I don't recall now. I have always had access to a Linux system so I have always just removed the failing hard drives as it just simplified the process & room it took. Plus either the system was going to be scrapped or was going to receive a replacement drive anyway. Sometimes I would boot the Mac with the failing hard drive from my bootable external Linux drive and clone it that way....again, it is a simpler setup involving one computer.
I never tried to clone a Fusion Drive or recover data from a split Fusion Drive. From reading this forum, people seem to have trouble getting data from a split Fusion Drive even when the hard drive does not have a severe failure. There is a good chance when you use Disk Drill that you will need to perform a deep scan....if so, you will likely end up with hundreds of thousands of files with no names. While they may be separated into file types (documents, pictures, music, video, etc.), they will be mixed in with all the temp & cache files making it very difficult to tell which ones are your actual files and which are just junk. Same thing would happen even with a professional data recovery service.
Good luck.