Chosen Solution
So I got a second hand macbook pro. I tried to reinstall macos, but it says that its locked
People said that i should go to disk utility and unlock the locked disk there But the locked disk wasn’t there
And even if its there, i don’t know the password too. And I can contact the owner anymore
You’ll need to visit an Apple Store with a copy of the sales receipt for them to unlock your system. Update (02/24/2018) How to set a firmware password on your Mac
@tindc from this old thread it sounds like you just need to Go to Disk Utility –> Erase Disk –> Select Erase with Journaling. locked hard drive can’t reinstall Lion OSX @danj also suggested in this solution to create a separate bootable thumb drive to reinstall OS X from, erase the disk using Disk Utility, and that apparently solve the issue.
Try this: Restart , Hold down CTRL+OPTN+R it should get into internet recovery, Circling globe and it will end up in disk utility page. Click on disk utility and erase the hdd from internal only once done go back and go to reinstall Osx sierra.
I also had an issue with a locked disc when I was in recovery mode. I ended up installing High Serria on a thumb drive, rebooting the mac holding down command, and selected the thumb drive to boot from. From there I was able to erase the mac’s hard drive with JOURNALED selected. Exit disc utility and installed High Serria. It’s installing now. I’ll message again if there are any problems.
I have a similar problem, the drive is locked, I can unlock it and run first aid but when I reboot drive is locked again.
1.) Open the terminal from the reset mode. 2.) Type this command in: diskutil list and hit enter. 3.) If there are no errors, type this command: diskutil unmount force /dev/disk0s2 and hit enter 4.) You will now be able to look at all of the actions through Disk Repair (erase/partition) 5.) Select Partition and create a new partition (select OSX Journaled) 6.) Hit continue and if it works then you can go to download your operating system and your disk will see two disks. Select the disk that is no longer locked.
IMac disk locked, macOS cannot be reinstalled, disk erase not functioning and the only solution is for you to say take the device to an Apple Store to unlock, Oh my God, that means apple does not a solution to what it has built, If a person will encounter such a problem then it has to be taken to Apple Store? to unlock it. This is crazy. So Apple should come out to tell us that us in Africa and places with no Apple Store are not supposed to use apple devices. This is nonsense
Go to recovery > utilities > terminal Type in “diskutil list” and find the disk i.e. disk7s1 Then type “diskutil apfs unlockVolume /dev/disk7s1” Put in your password and it should say unlock and mounted APFS volume. Not you can reinstall OSX or repair disk.