Command to use to try to repair a mac disk

fsck_hfs -y /dev/rdisk1s9

The device name might change. I got this name from the disk utility program. As far as I can tell, the disk utility program runs this same command, but in the event that I ever can’t get to the disk utility program, this is the command line to use.