Mac OS X notes
When you try to restore data from a drive that is automatically mounted when you connect it, then unmount it with 'diskutil'. This situation can happen when you connect a drive with a valid file system. Maybe after an unwanted fresh formatting.
Just figure out the device name with 'mount'.
/dev/disk0s2 on / (hfs, local, journaled) devfs on /dev (devfs, local, nobrowse) map -hosts on /net (autofs, nosuid, automounted, nobrowse) map auto_home on /home (autofs, automounted, nobrowse) /dev/disk6s2 on /Volumes/Untitled (hfs, local, nodev, nosuid, journaled, noowners)The affected partition is '/dev/disk6s2 (/Volumes/Untitled)'.
Unmount the partition with 'sudo diskutil umount /dev/disk6s2'.
Now you are able to access the partition with Hfsprescue.
Example: sudo hfsprescue -s1 /dev/disk6s2
© 2017 by Elmar Hanlhofer