Aloha everyone. I'm working on a Mac Mini that might have missing data files. If this was a Windows machine I would use ddrescue to create a sector-by-sector copy of the drive before making any changes. Since this is a Mac, I'm kind of wandering in the wilderness and hoping one of you kind folks can help me.
First, is ddrescue a good tool to use for making a complete copy of the hard drive on a Mac? If not, feel free to suggest a better tool
Assuming ddrescue is a good tool, then the next question is what command to use on Mac to locate the drives to point ddrescue at? (I always image a complete drive and not partitions). I've found the 'diskutil list' command. My output for the 'source' drive looks like this:
Harrys-Air:~ harryz$ diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 121.3 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 121.0 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +121.0 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 40.8 GB disk1s1
2: APFS Volume Preboot 44.8 MB disk1s2
3: APFS Volume Recovery 510.4 MB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
What I'm unsure about is do I use /dev/disk0 or /dev/disk1 as my 'source' disk?
Mahalo,
Harry Z
First, is ddrescue a good tool to use for making a complete copy of the hard drive on a Mac? If not, feel free to suggest a better tool
Assuming ddrescue is a good tool, then the next question is what command to use on Mac to locate the drives to point ddrescue at? (I always image a complete drive and not partitions). I've found the 'diskutil list' command. My output for the 'source' drive looks like this:
Harrys-Air:~ harryz$ diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 121.3 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 121.0 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +121.0 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 40.8 GB disk1s1
2: APFS Volume Preboot 44.8 MB disk1s2
3: APFS Volume Recovery 510.4 MB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
What I'm unsure about is do I use /dev/disk0 or /dev/disk1 as my 'source' disk?
Mahalo,
Harry Z