Click here to Skip to main content
Click here to Skip to main content

Tagged as

Go to top

Mounting a Windows share/shared folder on FreeBSD/FreeNAS

, 15 Jan 2011
Rate this:
Please Sign up or sign in to vote.
Mounting a Windows share/shared folder on FreeBSD/FreeNAS
This was driving me up the wall for some time.
 
One of my clients commissioned me to create a new NAS and move all the contents of the shared folders to the NAS.
 
All done with the wonderful help of FreeNAS (I suggest you read John Simmons' articles on FreeNAS).
 
I figured the easiest thing for me to do was to initiate the copy from the FreeNAS console.
 
A standard mount can be done with:
 
$ mount_smbfs //[username]@[servername][:port]/[share] /[local mount name and path]
 
But this was failing and it was obvious that the reason was because of the domain. Didn't cross my mind to RTFM, so man mount_smbfs and lo and behold! An answer!
 
The correct way of mounting a DOMAIN share from the CLI is to add the -W [Workgroup] switch.
 
$ mount_smbfs -W [domain name] //[username]@[servername][:port]/[share] /[local mount name and path]
 
(W not w. *nix is case sensitive)
 
A working example:
 
$ mount_smbfs -W mydomain.com //mim@MyServer/SharedFolder /mnt/OldWindowsShare
 
I was asked for my password and then voila!
 
The universe was at balance once more Smile | :)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Mustafa Ismail Mustafa
Intergraph
Canada Canada
A Systems Engineer, a Software Engineer, a Consultant and an Entrepreneur as well as a Barbeque aficionado.
 
Currently, working as a Senior Applications Consultant at Intergraph, where I have to worry about customer data security, storage sizing, I/O & network streamlining as well as mobile networks interfacing.
 
Married and the proud father of two boys, my family is the center of my happy universe Smile | :)
Follow on   Twitter

Comments and Discussions

 
QuestionFirst time failed PinmemberMember 1108979717-Sep-14 6:16 
QuestionRe: Mounting a Windows share/shared folder on FreeBSD/FreeNAS Pinmemberwtfguy.net16-Dec-12 16:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web03 | 2.8.140921.1 | Last Updated 16 Jan 2011
Article Copyright 2011 by Mustafa Ismail Mustafa
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid