Find the answer to your Linux question:
Results 1 to 3 of 3
Hi guys, We currently have a NFS shared Directory mounted as read-only on our server. This directory contains multiple sub-directories and files. It being read-only is a requirement. Now, we ...
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Posts
    2

    Mount NFS directory as read-only except for 1 sub-directory

    Hi guys,

    We currently have a NFS shared Directory mounted as read-only on our server. This directory contains multiple sub-directories and files. It being read-only is a requirement.

    Now, we need a directory underneath to be read-write. Is there a graceful way to make that happen? Like a special mount option to use?

    Basically objective is:

    /u01 is mounted as read-only and has 3 directories: dir1, dir2, dir3
    dir3 has 2 sub-directories - sub1,sub2

    /u01/dir3/sub2 needs to be read-write, while all other are read-only. Whats the best, most graceful way to do this?

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    452
    welcome to the forum

    have you tried using /etc/exports on the server

    /u01 workstation (r)
    /u01/dir3/sub2 workstation (rw)

    then mounting as usual on the workstation?
    the sun is new every day (heraclitus)

  3. #3
    Just Joined!
    Join Date
    Jul 2009
    Posts
    2
    Hi. The above solution does not work - /u01/dir3/sub2 is still read-only.

    As a workaround, you can mount /u01/dir3/sub2 as read-write using /u01/dir3/sub2as the mount-point (after mounting /u01), but this is still a "two mount" solution, something were avoiding.

    P.S. the workaround worked from an OS propective, but Oracle Apps still cant write to it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...