Results 1 to 7 of 7

Thread: Samba fail to start

  1. #1

    Samba fail to start

    First, I know, I dont have logs available right now and it will be much less easy to help me without but I start this post anyway and will post logs after.
    Now the facts.
    Samba dont works at all on my Asus wl500g Deluxe !
    My firmware is oleg latest firmware.
    First I tried to activate samba following www.macsat.com samba tutorial but it didnt worked with an error like "cant get hostname by address".
    So I tried to activate asus "samba demo mode" wich fail also ( didnt found the logs ).
    At last I installed samba v3 with ipkg and this time I have the nmbd deamon running but not the smbd deaemon.
    I tried to debug and I see nothing obviously wrong in the messages while smbd starting until the last message "Bad system call" and then smbd dies.
    Someone has and idea ?

  2. #2
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    You do not have any disk mounted on /tmp/harddisk.

  3. #3
    Quote Originally Posted by oleo
    You do not have any disk mounted on /tmp/harddisk.
    Well, I have to check that but is this mandatory and why ?
    In the smb.conf I set the share to be located in /opt/stick while the usb key is mounted on /opt.

  4. #4
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    macsat tutorial is somewhat obsolete. Just edit /etc/smb.conf and add /etc/smb.conf line into /usr/local/.files

    This will work with your startup script or with demo mode.

    Mandatory? No. How do you mount /opt? with post-boot ?

  5. #5
    Yes, /opt is mounted in post-boot.
    But it's not a mount pbm since when I start the daemon manually after boot ( /opt mounted ) it's the same problem. And with debug I can see that smbd read the right smb.conf file.
    Anyway you provided some usefull suggestion about .files and smb.conf location ( wich is for now in /opt/etc/samba ).

  6. #6

    Log

    Here's the log ( end of the log ) :

    Builtin modules:
    pdb_smbpasswd pdb_tdbsam pdb_guest rpc_lsa rpc_reg rpc_lsa_ds rpc_wks rpc_net rpc_dfs rpc_srv rpc_spoolss rpc_samr idmap_tdb auth_rhosts auth_sam auth_unix auth_winbind auth_server auth_domain auth_builtin
    lp_load: refreshing parameters
    Initialising global parameters
    params.cm_process() - Processing configuration file "/opt/etc/samba/smb.conf"
    Processing section "[global]"
    doing parameter workgroup = BOMBE
    doing parameter netbios name = wl500g
    handle_netbios_name: set global_myname to: WL500G
    doing parameter guest account = nobody
    doing parameter security = share
    doing parameter browseable = yes
    doing parameter guest ok = yes
    doing parameter printcap name = /opt/etc/printcap
    doing parameter interfaces = 192.168.1.1/255.255.255.0
    doing parameter guest only = no
    doing parameter log file = /opt/var/log/smbd.log
    doing parameter log level = 1
    doing parameter max log size = 100
    doing parameter encrypt passwords = yes
    doing parameter dns proxy = yes
    Processing section "[stick]"
    add_a_service: Creating snum = 0 for stick
    doing parameter path = /opt/share/stick
    doing parameter writeable = yes
    doing parameter browseable = yes
    pm_process() returned Yes
    lp_servicenumber: couldn't find homes
    add_a_service: Creating snum = 1 for IPC$
    adding IPC service
    add_a_service: Creating snum = 2 for ADMIN$
    adding IPC service
    Attempting to register new charset UCS-2LE
    Registered charset UCS-2LE
    Attempting to register new charset UTF-16LE
    Registered charset UTF-16LE
    Attempting to register new charset UCS-2BE
    Registered charset UCS-2BE
    Attempting to register new charset UTF-16BE
    Registered charset UTF-16BE
    Attempting to register new charset UTF8
    Registered charset UTF8
    Attempting to register new charset UTF-8
    Registered charset UTF-8
    Attempting to register new charset ASCII
    Registered charset ASCII
    Attempting to register new charset 646
    Registered charset 646
    Attempting to register new charset ISO-8859-1
    Registered charset ISO-8859-1
    Attempting to register new charset UCS2-HEX
    Registered charset UCS2-HEX
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    Substituting charset 'ASCII' for LOCALE
    lp_servicenumber: couldn't find printers
    reloading printcap cache
    reload status: ok
    reloading printcap cache
    reload status: ok
    lp_servicenumber: couldn't find printers
    lp_servicenumber: couldn't find printers
    lp_file_list_changed()
    file /opt/etc/samba/smb.conf -> /opt/etc/samba/smb.conf last mod_time: Thu May 25 22:57:27 2006

    added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
    Netbios name list:-
    my_netbios_names[0]="WL500G"
    Bad system call
    [root@wl500g init.d]$


    The printcap file was created with just touch /opt/etc/printcap since there is no printer and samba fail to start if the file is not present.

  7. #7

    printcap ?

    I will try to add a printer so I should get a valid printcap file.
    Or can I tell samba that there is no printer so no need to check printcap ?
    I suspect a library ( Bad system call ) or a printcap problem.
    Anyone any clue ?
    Last edited by mururoa; 29-05-2006 at 10:05.

Similar Threads

  1. Microsoft MN700 hack project
    By 3chansen in forum WL-500g/WL-500gx Tutorials
    Replies: 238
    Last Post: 02-09-2009, 03:33
  2. let samba start on boot
    By MHz in forum WL-500g Q&A
    Replies: 5
    Last Post: 29-05-2006, 09:47
  3. Quick how-to: Running Samba and a webserver from a USB stick
    By SuperB in forum WL-500g/WL-500gx Tutorials
    Replies: 0
    Last Post: 17-04-2006, 13:32
  4. [oleg 1.9.2.7-7c] Samba won't work
    By shoot in forum WL-500g Custom Development
    Replies: 3
    Last Post: 02-04-2006, 16:58
  5. Replies: 0
    Last Post: 15-12-2005, 21:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •