Reputation: 355
I'm trying to copy a file from one folder to another folder. I'm getting an error message saying the destination folder is a Read-only file system. I initially thought that changing the file permissions would alleviate the issue, but it did not. What can I do to copy files from one folder to another? Here is the command I used:
cp sourceFolder/someFile.txt /destFolder
Error message:
cp: /destFolder: Read-only file system
Upvotes: 4
Views: 32788
Reputation: 355
MacOS Catalina has System Integrity Protection or SIP. This needs to be disabled to cp files. To do this I restarted in recovery mode, entered csrutil disable
into the terminal. Restarted and mounted the file system as write with sudo mount -uw /
. Then restarted in recovery mode again and csrutil enable
in terminal and restarted.
Upvotes: 6