I’m trying to recover the password of an old iMac with a little trick I’ve learned. To do that, I need to access recovery mode, which doesn’t work for some reason. I know the shortcut is cmd + R. I’ve also tried Shift + cmd + R but that didn’t work either. So I went into single user mode to access the files, which worked. I have an external hard drive that is formatted as Mac OS Extended (Journaled) to put the files I’m looking for on the iMac into the drive. I copied them and I went to my computer to access it. But now my drive isn’t mounting!
When I did the copy I ran the command
cp <file> /dev/disk1s2. When I try to mount it on the other computer to see the files, I tried mounting it through the command line with
diskutil mountDisk /dev/disk2 and
diskutil mount /dev/disk2s2. Both commands gave me an error saying that the disk failed to mount. I also tried mounting it through Disk Utility but nothing happens.
I need those files because it contains the password of the computer. How am I going to see the files? I’ve also tried going into another user account and copying the files but that user needs
sudo to access them and that user isn’t part of the
/etc/sudoers file. In Single User mode, I tried to add the other user to the file but everything is read-only even though I ran
/sbin/mount -uw. I think if someone told me how to fix the read-only issue in Single User mode, I would be able to create a new admin account by running
rm /var/db/.AppleSetupDone The user account I’m trying to recover is the admin account of the computer so that’s why I think that would work.