About Linux FAQ

Browse More FAQs:

Mount NFS filesystem in two different directories on same system

Posted by Vivek Gite [Last updated: November 7, 2007]

Q. How do I mount NFS filesystem twice in two different dirs on same Linux client?

NFS Server : nfsserver:/data

Mount to dirs /home/data and /backup

A. You will not able to do that. However mount command has bind option to remount part of the file hierarchy somewhere else.

Procedure

First mount to /home/data
# mount -t nfs4 nfsserver:/data /home/data
Now bind /home/data to /backup
# mount --bind /home/data /backup
# ls /backup /home/data

Read man page of mount command for more information:
$ man mount

E-mail this to a friend      Printable version

Related Other Helpful FAQs:

Discussion on This FAQ

  1. manpreet singh Says:

    hello , i want to help for linux commands and working in linux so plz regarding me some helping notes or documents through i m doing mastering thanks for your goodness.

  2. Wederik Says:

    Mr Singh,
    Try IBM DeveloperWorks LPI Tutorials. An absolute must in my opinion.

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , ,

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.