Using a SUSE server, what’s the best method/tool available to mount existing shared directories?
I have defined shares on a Window 2008 server and am attempting to configure the SUSE server.
Using a SUSE server, what’s the best method/tool available to mount existing shared directories?
I have defined shares on a Window 2008 server and am attempting to configure the SUSE server.
For file sharing between Unix/Linux and MS systems use SAMBA/
A good guide is at:openSUSE SuSE Linux HOWTOs and Tutorials by Swerdna.
FWIW: If the shares are on the win2008 server and you want to look at them from a Suse computer, then the Suse computer become the client machine for those transactions.
To “map” or “mount” a windows share, you would use a CIFS mount. It can be a temporary mount created by a command in a terminal/console window or it can be a permanent mount created by putting a line of code in the file fstab (the code is executed each time the machine boots).
FFI see this tutorial: Samba: HowTo Mount a CIFS Network Share [AKA Map Network Drive] in openSUSE 11 plus FAQs
Thanks for you help. The tutorials really helped.
One follow-up question.
Mounting CIFS share works through the command line but when a try to add the share via fstab,conf, it’s not working.
Here’s the code:
//192.168.1.44/data /home/data cifs username=admin,password=*******,_netdev,uid=client_user,gid=users 0 0
I don’t see any error messages during the boot process. Where do I find the “boot” log?
Thanks
I think it is under /var/log/boot.msg
Another thing to try is to run (as root by doing su - )
mount -a
Which will try to mount all filesystems from fstab and should show any error
If the mount works from the CLI but not from boot-time via fstab, it’s often a flaw with the timing of the network coming on line in relation to the attempt to mount. If the mount is attempted before the network is on line, it will fail.
Have a look at my subsection: A permanent mount fails at boot time
Often, if setting the cifs helper daemon doesn’t do the trick, you can fix it quickly with the workaround file “after.local”.
Sorry, to restart the thread, but I have a similar problem. I added my share in the cifstab and everything is running well. But to get it running I have to start cifs in Yast/runelevel editor. “Mount -a” doesn’t help.
Try this (just a left-field idea):
Cretae a file called after.local and place it in the directory /etc/init.d and make this the contents:
#! /bin/sh
/etc/init.d/cifs start
Reboot and see if it works
PS if that doesn’t work, try this as the contents:
#! /bin/sh
/etc/init.d/cifs restart