Mounting a smb share as a local folder on Fedora 9 accessing a Windows Server
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Mounting a smb share as a local folder on Fedora 9 accessing a Windows Server
I have managed to connect to the Windows server in the office and the shared folders I want are now available through the 'Places' menu. I can access the files through nautilus.
We want to use this setup for remote FPGA development so another computer can compile the system image and I download the image via JTAG on my fedora box. The problem I am having is the command line utility to download the image does not like the remote location 'smb://cmpyname/development/'. Is it possible for me to mount the samba share as a folder in the /mnt directory so it can be accessed as if it was local? Something to do with CIFS?
Thanks,
Austin.
Last edited by AustinMarton; 11-15-2009 at 10:13 PM.
The location "smb://cmpyname/development/" is specific to your desktop environment and file manager, it is not a real location on the system and as such software on your system will not be natively aware of it. It's only function is really just to browse remote shares.
To mount it locally you would do the same as any other device or filesystem, use the "mount" command.
A command might look like:
Code:
mount -t smbfs //cmpyname/development/ /mnt/development
Yes. You use cifs as the filetype. (smbfs is obsolete and might not be supported in your kernel) You can either mount it manually or add an entry in /etc/fstab. You may still want to mount it manually even using an /etc/fstab entry, in case the share isn't available when you boot.
Here is a general example:
//host/share /mnt/share cifs rw,uid=<yourusername>,gid=<yourgroup>,fmask=0117,dmask=0007,noauto,cred=/home/<yourusername>/.credentials
Create a .credentials file in your home directory and add two or three lines:
username=<your user name>
password=<your password>
domain=<domain name>
The third entry is only necessary if you use Active directory or NT style domains.
You don't want the credentials in the fstab file because it is world readable. So using a credentials file restricts who can read it. Use a full pathname to the file, as the ~ shortcut is understood by the shell and not the mount command.
The noauto option prevents the system from trying to mount it when you boot up. If that host is down, booting will fail with automounting.
There is a man page for "mount.cifs" which will describe other option you may want to use.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.