Cannot open writeable file or device node, nor read a symlink from a read only filesystem

Solution Verified - Updated -

Issue

  • Can't create folder/document in writeable directory when referenced via symlink
  • Unexpected shell behaviour with a read only filesystem
  • Cannot write to device nodes on a read only filesystem
  • Bind mount of files on read only filesystem does not work
  • Symbolic links on a read only NFS mount cannot be opened
  • Error: Read-only file system
  • EROFS when opening a file on a RO filesystem with O_CREAT|O_RDONLY
  • This particularly affects:
    • regular files
    • symlinks
    • device nodes
    • bind mounts

Environment

  • Red Hat Enterprise Linux 6.4
    • Kernels earlier than 2.6.32-358.10.1.el6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content