I was attempting to change the display options on my computer, and deleted the com.apple.WindowServer.plist file, rendering my Mac unbootable. Fortunately, I did not empty the Trash, so it is still in there. I've tried to restore the file to its proper directory, but since I can't log into the Mac normally, I wasn't sure what I should do.
I tried moving or copying it via a Linux live CD, but it came up with an error message stating that, "The directory is read only." I also booted my Mac into Single User Mode and tried moving it via the command line, but again, it wouldn't allow me to move or copy the file, stating that it was read only. Even when I tried to change the permissions with sudo and chmod, I get the "Unable to change permissions, directory is read only mode." If I can't change the permissions to move or copy the file, how am I to restore it?
I did consult this very helpful Macrumors thread: https://forums.macrumors.com/threads/616959/ but his solution was to use another Mac, put the afflicted Mac in Target Disk Mode, and move the file that way. But I don't have another Mac to use Target Disk Mode. Besides, if permissions are not an issue using another Mac via Disk Mode, why are they so in the Linux CD and in Single User Mode?
I tried moving or copying it via a Linux live CD, but it came up with an error message stating that, "The directory is read only." I also booted my Mac into Single User Mode and tried moving it via the command line, but again, it wouldn't allow me to move or copy the file, stating that it was read only. Even when I tried to change the permissions with sudo and chmod, I get the "Unable to change permissions, directory is read only mode." If I can't change the permissions to move or copy the file, how am I to restore it?
I did consult this very helpful Macrumors thread: https://forums.macrumors.com/threads/616959/ but his solution was to use another Mac, put the afflicted Mac in Target Disk Mode, and move the file that way. But I don't have another Mac to use Target Disk Mode. Besides, if permissions are not an issue using another Mac via Disk Mode, why are they so in the Linux CD and in Single User Mode?
Last edited: