BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old November 28th, 2005, 11:07 PM
CyBerHigh CyBerHigh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 430 CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 46 m 57 sec
Reputation Power: 20
Send a message via AIM to CyBerHigh
Mounting smb on freebsd

So I have been trying to find a nice simple way to mount a few of my windows shares to my freebsd box. However this has proved to be the most difficult task I have attempted in freebsd. I am not complaining or anything, I just figured it would be fairly straight forward.

So I did some google searches and came across smbfs and such, use ports and installed it. I try to compile it into my kernel(first time with comping the kernel) and I get this error msg saying that my config file doesn't match the kernel, I even tryed to compile the GENERIC kernel and it doesn't work either with the same error msg. It says my config file is 600003 and I need 600004. I looked through the config file for anything that would allow it to determine what version it is for, and I came up with nothing.

I am using freebsd 6.0 -- stable I am updating my ports collection and all of my apps on the system. Any ideas on why I can't compile my kernel and a nice method of setting up an automounting password protected windows share?
__________________
My Site:
http://www.coryhardman.com

Reply With Quote
  #2  
Old December 1st, 2005, 12:02 AM
CyBerHigh CyBerHigh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 430 CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 46 m 57 sec
Reputation Power: 20
Send a message via AIM to CyBerHigh
Well I have sorta Fixed the problem with my kernel. I found out that I don't need recompile the kernel, I switched to FreeBSD 5.4 so now I a stable release and such. However I am still getting an error when trying to mount the share:

with this code:
Code:
mount_smbfs //cory@mainServer/files /mnt/files

I get this error:
Code:
mount_smbfs: can't get servers address: syserr = Operation time out


with this code :
Code:
mount_smbfs -I 192.168.0.122 //cory@mainserver/files /mnt/files


I get this error
Code:
mount_smbfs: unable to open connection: syserr = Operation time out


anyone with any ideas?

Last edited by CyBerHigh : December 1st, 2005 at 12:07 AM.

Reply With Quote
  #3  
Old December 1st, 2005, 08:24 PM
CyBerHigh CyBerHigh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 430 CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 46 m 57 sec
Reputation Power: 20
Send a message via AIM to CyBerHigh
Ok, I have found out the source of the errors.

The kernel one was because there seems to be an error with the 6.0 release and the kernel configure. Turns out that I don't even need to put the smb part into the kernel anyway. Since the 5.x release they have been included.

Now the reason that my command wasn't work is because the -I flag can't have an ip address used, it most be a hostname. So append a hostname to your /etc/hosts file and it is a simple fix. So this command below works:

Code:
# mount_smb -I sambaServer //user@blah/sharename /mnt/path

It turns out that what is used after the @ sign doesn't actually matter, just make sure it corisponds to your /etc/nsmb.conf file, if you are going to use that for easying configuration.

for the etc file you can append to it with this:
Code:
# echo "192.168.0.23            sambaServer" << /etc/hosts


You can modifie the /etc/nsmb.conf file so that you do not have to enter the password on every mount for normal servers. It is well documented.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Mounting smb on freebsd


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway