how do I mount nfs per system persistent and share as windows share

Evan Less 0 Reputation points
2025-03-13T19:44:44.7866667+00:00

I'd like to share an NFS share writable to SMB clients. I need to mount an NFS3 folder persistently to get re-shared to windows client via standard "net share".

Windows Server Networking Network connectivity and file sharing
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daisy Zhou 31,776 Reputation points Microsoft External Staff
    2025-03-17T01:28:37.9766667+00:00

    Hello Evan Less,

    Thank you for posting in Q&A forum.

    To mount an NFS share persistently and re-share it as a Windows share, you can follow these steps:

    1. Mount NFS Share Persistently:

    • Open Command Prompt as an administrator.

    • Create a directory where you want to mount the NFS share, e.g., C:\NFS_Share.

    • Use the mount command to mount the NFS share:

    • mount -o anon \<NFS_Server_IP><NFS_Share> C:\NFS_Share

    • To make the mount persistent, add the mount command to the Startup folder or create a scheduled task that runs at startup.

    2. Share the Mounted NFS Folder via SMB:

    • Open Command Prompt as an administrator.

    • Use the net share command to share the mounted NFS folder:

    • net share NFS_Share=C:\NFS_Share /grant:everyone,full

    • This will create a Windows share named NFS_Share that is writable to SMB clients.

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.