Results 1 to 5 of 5

Thread: Ubuntu 16.04 NFS share post mounted but still Filesystem says read-only

  1. #1
    Join Date
    Aug 2021
    Beans
    3

    Ubuntu 16.04 NFS share post mounted but still Filesystem says read-only

    Hi All,

    I ve a device which is been build under Ubuntu 16.04, where NFS share is visible and post mounted the Filesystem says read-only even though the exported share has read-write permission from Netapp.

    Both the NFS services are in below state,

    nfs-server.service - active/exited
    nfs-client.target - - active/active


    Error message while touch a file in NFS share path.

    touch: cannot touch 'f1': Read-only file system

    Kindly advise to help.



  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    15,642
    Distro
    Kubuntu Development Release

    Re: Ubuntu 16.04 NFS share post mounted but still Filesystem says read-only

    16.04 is no longer supported. You need to upgrade to 20.04 or later.

    Try mounting the share from the command line with
    Code:
    sudo mount -vvv /mountpoint
    assuming the NFS share is defined in /etc/fstab. Otherwise
    Code:
    sudo mount -vvv server:/share /mountpoint
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    May 2010
    Beans
    1,892

    Re: Ubuntu 16.04 NFS share post mounted but still Filesystem says read-only

    Isn't Xenial end of life......not supported?

  4. #4
    Join Date
    Aug 2021
    Beans
    24

    Re: Ubuntu 16.04 NFS share post mounted but still Filesystem says read-only

    There are two NFS client / servers. You need to know if your using the Kernel ones or the software-installable ones. The kernel ones have the bug of freezing the PC if used incorrectly.

    I'm unsure how "things are done now". In the past linux used fstab (software nfs). (note i've altered the hostname and client address)

    # /etc/fstab
    127.0.0.1:/mnt/foo /mnt/foo nfs rw,addr=127.0.0.1 0 2
    127.0.0.2:/mnt/foo2 /mnt/foo2 nfs rw,addr=127.0.0.2 0 2

    so if you mount that it mount will see it and use the 'rw'. if you wanted 'ro' you'd have to "remount" it. as far as -vvv, idk. ask someone else on that. I'm not 100% sure nfs allows re-mounting. You might need the 'rw' before the nfs driver is asked to mount it. mount -o ro /mnt/foo

    in /etc/hosts.allow i would have to have "rpc.nfsd" listed if I used the inetd client, though I omit the full howto on that here, and i think "inetd" has been cancel cultured (gone). another way was to run the rpcd daemon (when not built-in to the kernel, which i suggested is safer)

    Remember I haven't done this recently - that was older linux ok?

  5. #5
    Join Date
    Aug 2021
    Beans
    24

    Re: Ubuntu 16.04 NFS share post mounted but still Filesystem says read-only

    I forgot to say that's a daemon question not "installation or upgrade". You should really post only installtion or upgrade questions in this thread.

Bookmarks

Posting Permissions

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