LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Linux-Client Windows-Server automounting issue(s) (https://www.linuxquestions.org/questions/linux-networking-3/linux-client-windows-server-automounting-issue-s-912941/)

RamPant_CaR 11-11-2011 12:03 AM

Linux-Client Windows-Server automounting issue(s)
 
I am currently using virtual-box running an already configured windows XP server and a Fedora client. I am trying to get the client to automount the shared folder (which is name SharedDocs) from the server.
  1. I have installed autofs and disabled firewall
  2. I have manually mounted the file using:
mount cifs //192.168.1.1/Shared Docs /shares


My problem is I don't know the best way to automount the folder on the boot.

I have chkconfig autofs on, so its always running.

I can ping the both machines. I have added entries into auto.master as well as auto.share.

I have tried adding an entry to fstab as well.



My problem is I don't know how to automount the drive, I don't think my entries into the mount files were correct. My question is, what is the best way to make this happen?

Server IP: 192.168.1.3 (windows)
Client IP: 192.168.1.92 (Fedora)

Folder to share on Windows server: SharedDocs
Desired mount pt: /shares

windows user: admin (pass=adminpw)
client user: root

any help or advice is much appreciated. And please don't send me the link to some page on tldp or something else. I know what I am supposed to do, I am just having trouble making it all work.

-Rampant

Doc CPU 11-11-2011 03:50 AM

Hi there,

Quote:

Originally Posted by RamPant_CaR (Post 4521243)
I am currently using virtual-box running an already configured windows XP server and a Fedora client. I am trying to get the client to automount the shared folder (which is name SharedDocs) from the server.

in some of your examples below the name is "Shared Docs" with a blank in between. Which spelling is correct?
Since many configuration files (e.g. those of autofs and fstab) use whitespace as field delimiters, spaces in file or directory names can be troublesome. Try enclosing the names in quotes. Or better even: Try avoiding spaces in file names altogether.

Quote:

Originally Posted by RamPant_CaR (Post 4521243)
My problem is I don't know the best way to automount the folder on the boot.

If the server machine is guaranteed to be available whenever the client machine boots, you can assign a static mapping in fstab. If not, I'd rather suggest you stay with autofs.

[X] Doc CPU


All times are GMT -5. The time now is 06:00 PM.