To Repair the volumes and disks via command line there are a few easy to use commands:
Open the Terminal App.
- Volumes
- Verify volumes
- check all volumes: diskutil verifyvolume /
- check a specific volume: diskutil verifyvolume /volumes/[volume name] example diskutil verifyvolume /volumes/macos
- repair disks
- repair all volumes: diskutil repairvolume /
- repair a specific volume: diskutil repairvolume /volumes/[volume name] example diskutil repairvolume /volumes/macos
- Verify volumes
- Disks
- Verify the disks
- check all disks: diskutil verifydisk /
- check a specific disk: diskutil verifydisk /dev/[disk number] example diskutil verifydisk /dev/disk0
- Repair disks
- repair all disks: diskutil repairdisk /
- repair a specific disk: diskutil repairdisk /dev/[disk number] example diskutil repairdisk /dev/disk0
- Verify the disks
With these simple commands you can check the health status of your volumes and disks and if needed repair them.
These commands also work in the recovery mode.
But you have to use sudo in front of it to get access to the disks or volumes