mkdir: cannot create directory '/dev/shm': Read-only file system

mkdir: cannot create directory ‘/dev/shm’: Read-only file system

Creating /dev/shm directory failed.
POSIX semaphores and POSIX shared memory will not work

mkdir: cannot create directory ‘/dev/mqueue’: Read-only file system

Creating /dev/mqueue directory failed.
POSIX message queues will not work

ln: failed to create symbolic link ‘/dev/stdin’: Read-only file system
ln: failed to create symbolic link ‘/dev/stdout’: Read-only file system
ln: failed to create symbolic link ‘/dev/stderr’: Read-only file system
ln: failed to create symbolic link ‘/dev/fd’: Read-only file system
ln: failed to create symbolic link ‘/etc/mtab’: Permission denied
‘C:\WINDOWS\system32\drivers\etc\hosts’ -> ‘/etc/hosts’
/usr/bin/cp: cannot create regular file ‘/etc/hosts’: Permission denied
‘C:\WINDOWS\system32\drivers\etc\protocol’ -> ‘/etc/protocols’
/usr/bin/cp: cannot create regular file ‘/etc/protocols’: Permission denied
‘C:\WINDOWS\system32\drivers\etc\services’ -> ‘/etc/services’
/usr/bin/cp: cannot create regular file ‘/etc/services’: Permission denied
‘C:\WINDOWS\system32\drivers\etc\networks’ -> ‘/etc/networks’
/usr/bin/cp: cannot create regular file ‘/etc/networks’: Permission denied
rm: cannot remove ‘/etc/post-install/01-devices.post’: Permission denied
rm: cannot remove ‘/etc/post-install/03-mtab.post’: Permission denied
rm: cannot remove ‘/etc/post-install/06-windows-files.post’: Permission denied
rm: cannot remove ‘/etc/post-install/99-post-install-cleanup.post’: Permission denied

Ace09@Naman MINGW64 ~/Desktop (master)

Maybe the problem is that you need to run the prompt command with administrator permission. Are you in a Virtual machine?

1 Like

Hello @namanrx 

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information.

As you’ll notice, your Topic is now in the Project Development Help & Advice board. No action is needed on your part; you can continue the conversation as normal here.

Let me know if you have any other questions or if I can help with anything else.

Greatly appreciated,

-MChevy422

where was it moved to?

I had the same issue.

Running as Administrator did not fix the problem.

My home drive is not mapped to C: but instead to a UNC network drive.

The Git Bash shortcut “Start in:” property is set to %HOMEDRIVE%%HOMEPATH% by default.

This caused the Git Bash executable to attempt to create it’s files on the UNC network drive; which doesn’t work.

Edit the Git Bash shortcut and set the “Start in:” property to C:\ (or other local drive) instead.

No need to start as Administrator.

4 Likes

@oldlearner75 You can continue the conversation here, it was moved to  this thread!

To the rest: did the kind answer from @laurenceamckay help you out? If so, please give him some kudos!

2 Likes

Fixed my issue. Thank you very much!