Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Configure a network mapping at start up


    I need my linux OS to map a local folder to a windows share at start up. I am able to to achieve this once the server has started by using the following command:

    # mount -t cifs //ntserver/download -o username=myName,password=myPassword /mnt/ntserver

    This works fine, but on reboot I think that the mapping dissapears. Is there a file i need to edit and what would be the sytax required? Sorry i am new to Linux . I am running a Red Hat flavour of Linux,

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Add an appropiate line to /etc/fstab.
    This is easy, but has one downside: The CIFS *needs* to be available at booting.

    A more elegant way is to add a autofs configuration to the same effect.
    This will not only make sure, that booting succeeds, but only mounts the CIFShare, if it is really needed (and unmounts it afterwards)

    This documentation is for nfs, but can easily be adopted for cifs
    12.3.2.*autofs Configuration
    You must always face the curtain with a bow.

Posting Permissions

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