Home > Questions

What to do when can't update os and cant repair disk?

I'm running Big Sur 11.6.1 on a 16-inch MacBook Pro and saw that 11.6.5 was available. When I tried to run the update I got the error 'Failed to prepare the software update. Please try again.' I tried Safe Mode, and Disk Utility but still failed to fix it. Finally, I erased the Recovery partition and reinstall Big Sur and it ran fine. I then used Migration Assistant to restore from a Time Machine backup which reverted the OS from 11.6.5 back to 11.6.1. I decided to upgrade to Monterey or the Big Sur 11.6.5 but failed like what happened at the beginning. It looks like whatever is corrupting the disk is saved in the Time Machine backup and I tried Single User Mode to repair my Mac. But I get no opportunity to run fsck in Singer User Mode, could anyone tell me how to run fsck correctly?

Best Answered by

iBoysoft author Anna Yuan

Anna Yuan

Answered on Wednesday, May 31, 2023

Just like you've mentioned, you can try the fsck command in Single User Mode to check and repair your Mac's internal disk. Maybe you don't give any command when booting into Single User Mode so it quickly goes to the normal login screen and you have no opportunity to run fsck.

Now, do the following step-by-step to run fsck to repair your Macintosh HD drive:

Step 1: Start or restart your Mac, hold down the Command + S key combinations together to boot into Mac Single User Mode.

Step 2: Some white text will scroll by quickly. When it stops, you'll see a command prompt at the bottom of the screen that says root#.

Step 3: Type the following command and then press the Enter key:

/sbin/fsck -fy

This runs fsck with the -f flag, which forces it to check journaled file systems like HFS+, as well as the '-y' flag, which automatically says 'yes' to any prompts that fsck may encounter.  

Then, your MacBook will run a diagnostic on your internal drive, and attempt to repair any damage it finds.

If 'FILE SYSTEM WAS MODIFIED' appears on the screen, it means one or more problems have been found and repaired. Since additional issues may exist after a repair is made, you should rerun fsck until you see the message: The volume (name of your volume )appears to be OK. This means your hard disk has no problems now. 

Step 4: Simply type 'reboot' and then press Return to restart your Mac after finishing fsck repairing.

Try to update your macOS to see if the "Failed to prepare the software update. Please try again" problem still exists. If not, congratulations! you can update your Mac to the latest macOS version. If still, your Mac won't update to Ventura, Monterey, or Big Sur, try to erase your Mac and reinstall macOS as you've already done. But this time, after reinstalling macOS, don't restore your Mac using TimeMachine backups.

 

People Also Ask

Read More Questions

Read More Advice From iBoysoft's Computer Experts

update apple id settings stuck mac

Mac Update Apple ID Settings Stuck/Not Working/Keeps Popping Up?

There is an available update for Apple ID setting, but it is stuck, the notification keeps popping up or won't go away. Read this post to learn how to fix update Apple ID settings not working on Mac.

News Tips

Fix An error occurred while installing the selected updates

[Ventura Updated]'An error occurred while installing the selected updates.'

Getting 'An error occurred while installing the selected updates.' on Mac when installing macOS Ventura, Monterey, Big Sur? This post offers the solutions.

How to Tips

Mac Recovery Mode not working

Mac Recovery Mode Not Working, What to Do? (Full 2022 Guide)

About how to fix the Mac recovery mode not working issue. And help you restore your Mac or reinstall macOS when Mac won't boot into recovery mode.

Mac Data Recovery Tips