Hi Sebastian1237,
It appears that you improperly erased your Mac. Let me explain:
macOS Catalina and macOS Big Sur (you're running Big Sur) use two volumes to store data: the System volume (Macintosh HD, contains macOS), and the Data volume (Macintosh HD - Data, contains your apps and data). These two volumes are linked together in a volume group.
When you erase your Mac, both volumes will appear in Disk Utility. However, if you only erase one volume, the other one remains untouched and becomes unlinked from the volume that you just erased. I'm guessing that you erased "Macintosh HD", but left "Macintosh HD - Data" alone, which contained the previous owner's data. When you ran the macOS installer on the freshly erased "Macintosh HD", it linked that volume with a new data volume and installed macOS. The old data volume was left behind, and that's why you're now seeing the prompt to unlock the old data volume.
If you want to erase your Mac in Disk Utility, the correct procedure is to select either "Macintosh HD" or "Macintosh HD - Data", click Erase, then select Erase Volume Group. This erases and deletes the linked data volume, and then erases the system volume so that you can reinstall macOS.
Alternatively, to ensure that all macOS volumes get erased, you could select View -> Show All Devices in Disk Utility, and then erase the APFS Container. Doing that automatically deletes all volumes in the container, then makes a fresh new one.
But anyways, on to the solution for your issue. You'll need to identify the old data volume in Disk Utility and delete it. Follow the below steps to do this:
- In macOS, open Disk Utility. It's located in Applications -> Utilities.
- You'll see two entries named "Macintosh HD - Data". Select one of them, then check the Mount Point:
- If you selected the real legitimate Data volume, the Mount Point will be "/System/Volumes/Data". Also, the (-) button above "Volume" will be greyed out for safety.
- If you selected the old data volume, the Mount Point will be different than above. The (-) button above "Volume" will NOT be greyed out.
- Select the old data volume and click the (-) button above "Volume". Click Delete to confirm.
- Once that's done, the old owner's data will be deleted, and you should no longer see the password prompt.
Also, to answer your question at the end: No, the old owner's data will not transfer. That only happens if you explicitly approve it in Setup Assistant or Migration Assistant.
Hope this helps!