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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With