I have a Macbook Air 2013 with a faulty SSD. I got a generic NVMe SSD drive of the same size (256GB) and an adapter, which I installed. The SSD drive is not new, but it was wiped clean of whatever was there before (in Linux, using nvme format -s1 <device>).
When I boot the device using option-command-R, the Big Sur installer starts loading. I go into Disk Utility, I do "View - show all devices", I select my SSD drive and I proceed to format it to APFS, using guid partition map. It then starts doing that. It shows:
Unmounting Volumes
Switching disk02s to APFS
Creating APFS container
Creating new APFS container disk21
Preparing to add APFS volume to APFS Container disk21
Creating APFS volume
After some 15 seconds, the screen flashes white and the computer reboots. The drive seems to be formatted to APFS but there's something wrong with it, as when I proceed to install Big Sur, after a while it flash-reboots as before.
What can I do to successfully install macOS in this drive?
When I boot the device using option-command-R, the Big Sur installer starts loading. I go into Disk Utility, I do "View - show all devices", I select my SSD drive and I proceed to format it to APFS, using guid partition map. It then starts doing that. It shows:
Unmounting Volumes
Switching disk02s to APFS
Creating APFS container
Creating new APFS container disk21
Preparing to add APFS volume to APFS Container disk21
Creating APFS volume
After some 15 seconds, the screen flashes white and the computer reboots. The drive seems to be formatted to APFS but there's something wrong with it, as when I proceed to install Big Sur, after a while it flash-reboots as before.
What can I do to successfully install macOS in this drive?