Results 1 to 2 of 2
Hi,
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 ...
- 07-13-2011 #1Just Joined!
- Join Date
- Jul 2011
- Posts
- 1
Configure a network mapping at start up
Hi,
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,
thanks
- 07-13-2011 #2
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.


Reply With Quote