Read-only file system

Hi!

I am a reletively new Mac user. I want to install a software but I get a constant error that I can't wrap my head around. It says write permission in not allowed. However, I went to the /usr/local/bin and shifted gave all users to read-write but the problem persists. Any help would be really appreciated. This is holding me back from a major assignment.


I am attaching pictures for references:

MacBook Pro 13″, 10.15

Posted on Jul 31, 2020 6:48 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 31, 2020 8:03 PM

It appears as though you are attempting to create a directory at the root level of that Mac's hard disk drive, which is off-limits in recent macOS versions.


/OpenFoam is not where you think it is. If you want to create that folder within /usr/local/bin/ then provide that fully qualified pathname:


/usr/local/bin/OpenFoam


Try using that in your curl command.


There was no need to change permissions the way you did. /usr/local/bin is writeable. Everyone should be Read only. Your User Account should be Read & Write and from your screenshot, it's completely missing. I recommend undoing whatever you did to change that folder's permissions.

Similar questions

3 replies
Question marked as Top-ranking reply

Jul 31, 2020 8:03 PM in response to gishouk

It appears as though you are attempting to create a directory at the root level of that Mac's hard disk drive, which is off-limits in recent macOS versions.


/OpenFoam is not where you think it is. If you want to create that folder within /usr/local/bin/ then provide that fully qualified pathname:


/usr/local/bin/OpenFoam


Try using that in your curl command.


There was no need to change permissions the way you did. /usr/local/bin is writeable. Everyone should be Read only. Your User Account should be Read & Write and from your screenshot, it's completely missing. I recommend undoing whatever you did to change that folder's permissions.

Aug 1, 2020 5:31 AM in response to gishouk

The command I am using should create a directory automatically. I don't have to create that directory myself.


That is correct, but creating directories at the root level of a Mac's startup disk is prohibited.


I also tried to give a different path like /users/goharshoukat/opt but that too throws the same exception: /user resides on a read-only file system.


That is correct. /user does not exist and cannot be created in recent macOS versions.


Consult the documentation for OpenFoam.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Read-only file system

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.