The first thing you should do is make sure your remote control program is running properly at startup. I’m using TeamViewer so I just added it to the main user’s startup items. If you’re using VNC on your mac you probably don’t have to do anything special once it’s enabled.
The problem with Disk Repair (fsck) is that it needs to be run in single user mode, but you won’t have a GUI to work with on the remote side so the system needs to reboot, run fsck automatically, then reboot back to your normal GUI.
Run terminal.app or SSH into the remote system
sudo su –
Enter your password, then issue these commands:
Add this block of text to the end of the file:
singleuser=`sysctl -n kern.singleuser`
if [[ $singleuser -eq 1 ]]; then
echo Not in single user mode
Save /etc/bashrc (:wq!), then
The remote system will reboot in single user mode, run fsck, then reboot back to normal mode. Run Disk Verify again on the running system, and it should be problem-free if the fsck did it’s job!
You should now go back and edit /etc/bashrc and remove the block we added, so that if you need to boot into single user mode for some other reason in the future it will give you a prompt and not just run fsck and reboot on you.