Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jul 2011
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,
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 ConfigurationYou must always face the curtain with a bow.