[GoFlex Net] Running Samba Problems!

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[GoFlex Net] Running Samba Problems!

Postby ronson » Fri Apr 20, 2012 6:59 am

Hi there!

I installed Archlinux on my newly purchased GoFlex Net and the installation went all fine.
Now I wanted to share the SATA Disc to my Network with Samba.

I folowed the Samba Installation Instructions from archlinuxarm and I got it installed and configured also the samba config file.

Firstly I want to know how to configure my GoFlex Net to start samba on boot up ? Do I need to put smbd and nmbd as services into the rc.conf ? Or does samba start auto-magically without this entry in the rc.conf?

Second and so said my main problem is that I am now stuck because samba (smbd and nmbd) won't start. Neither at the bootup process nor if I start it manually. I tested the smb.conf and this is what I get:

$this->bbcode_second_pass_code('', '[root@portal ~]# testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[port]"
Loaded services file OK.
ERROR: pid directory /var/run/samba does not exist
Server role: ROLE_STANDALONE
')

I checked if the PID files were present in /var/run/samba and there were NOT. Even the Folder named "samba" was not in /var/run/ . So I created it manually and startet smbd and nmbd again and then it WORKED! ...

Why smbd and nmbd do not create the samba Folder in "/var/run/" at start ? If they would I wouldn't have problems at all. Now I need to know how to solve this and would be really happy if you could help me.

Does Samba have to less rights to create the samba folder in /var/run/ ?

Thank you in advance! :)
ronson
 
Posts: 11
Joined: Mon Apr 09, 2012 2:21 pm

Re: [GoFlex Net] Running Samba Problems!

Postby tomcheng76 » Fri Apr 20, 2012 8:31 am

checkout the awesome samba on alarm guide ;)
http://archlinuxarm.org/support/guides/ ... ions/samba
tomcheng76
 
Posts: 130
Joined: Mon Dec 13, 2010 11:24 am

Re: [GoFlex Net] Running Samba Problems!

Postby ronson » Fri Apr 20, 2012 7:55 pm

Thanks for the help but as I mentioned in my initial post I installed samba following the guide you linked...

EDIT:

Never mind. I resolved the problem.

smbd and nmbd do not create the samba folder for the pid files neither the pid files. The script named "samba" in /etc/rc.d/ contains the commands which create the samba folder for the pid files and the pid files itself.

Running this script launches samba without any problems. So what I needed to do next was to put samba into the Daemons field of the rc.conf file!

Thats it.. It works now how it should and this is NOT written in the samba tutorial!
ronson
 
Posts: 11
Joined: Mon Apr 09, 2012 2:21 pm

Re: [GoFlex Net] Running Samba Problems!

Postby TheWalt » Fri Apr 20, 2012 9:41 pm

So you obviously missed this part of the tutorial. Glad you figured it out on your own, chalk it up to a good learning experience. :D

Starting the Server
To start Samba, run: rc.d [start|stop|restart] samba
To start Samba on boot, edit /etc/rc.conf, scroll down to the end of the file and add "samba" to the list of DAEMONS.
TheWalt
 
Posts: 23
Joined: Fri Feb 17, 2012 12:22 am

Re: [GoFlex Net] Running Samba Problems!

Postby ronson » Sat Apr 21, 2012 6:12 am

Oh!.. I really missed the part in the Tutorial where it is described how to start/stop/restart the server...
I need new glasses! :roll:

Man thats really embarrassing! :)

But ive learned something by studying nearly the whole smb.conf man page!
ronson
 
Posts: 11
Joined: Mon Apr 09, 2012 2:21 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 6 guests