Log to JFFS2 or CIFS on Router

Discussion in 'Tomato Firmware' started by willi007, Mar 26, 2007.

  1. willi007

    willi007 LI Guru Member

    Hi, I am totaly new with linux, so I please need some help:
    I habe the WRT54GL with Tomato 1.06 -it is realy great! But the possible logfile of the router is not very big, so I want to save the logfile to the router himself - is it possible to save it to an JFFS2- or an CIFS-"disk" ? What is the different between this both?
    And what do I need for this? I thinks a script which will start with the router could manage this, but I have no idea how to write it. Can someone please help me an write such an script? Or is it possible to write the logfile to an webserver - and how...?
    Many thanks.

  2. digitalgeek

    digitalgeek Network Guru Member

    JFFS is the unused portion of NVRAM where the actual Tomato image resides.

    CIFS is an SMB fileshare from one of you clients drives.

    Unfortuantely from the gui it is not possible to put the logfile in either of these locations. There is no problem with the current log setup. You might have to use a custom script if you want you log in one of these locations.
  3. willi007

    willi007 LI Guru Member

    Thanks für the info.

    But does someone know a script that can write the log to one of these "drives"?

    I tried to make a cifs, but tomato said alwasy "mounting..." but nothing happens for a long time. So i unabled it again. Is this a bug of 1.06, that it is not possible to make a cifs? Loopback to NAT was enabled. Must I have another Setting?

    Or better: How can I enlarge the space where the logfile is saved now? With a script...?

    (You can answer in german)
  4. roadkill

    roadkill Super Moderator Staff Member Member

    CIFS client woks flawlessly in 1.06 check the log for error number..
    error -13 is access denied
    error -1 is no permissions
  5. willi007

    willi007 LI Guru Member

    Thanks for the answer.

    In my logfile is after clicking "safe":

    ...user.info mount-cifs[1293]: notice: Mounting...

    After 5 minutes i abort, and the in the log:

    cron.notice crond[90]: USER root pid 1308 cmd rcheck --cron #rcheck#
    Mar 28 22:30:07 josch user.warn kernel: nvram_commit(): init
    Mar 28 22:30:09 josch user.warn kernel: nvram_commit(): end
    Mar 28 22:30:10 josch user.err kernel: CIFS VFS: Error connecting to IPv4 socket. Aborting operation
    Mar 28 22:30:10 josch user.err kernel: CIFS VFS: cifs_mount failed w/return code = -512

    Sorry, i don´t understand what my router will tell me

    Can you please help me?
  6. roadkill

    roadkill Super Moderator Staff Member Member

    windows xp I guess :biggrin:
    turn off simple file sharing and create a user with a password for the router will authenticate to.
    also you need to write the path like this \\workstation ip\share name
  7. pharma

    pharma Network Guru Member

    Actually there's no need to create a new account - I use the "guest" account using the same name for the pw. (though the faq states it might not work)

    You also might want to look at the FAQ as it has a few topics/examples on CIFS mounts.

  8. willi007

    willi007 LI Guru Member

    Wow, now I understand. It ist a folder on my pc to which the router writes! I thougt that it is a virtual drive on the router.

    Many thanks!!!

    But a JFFS2-drive is virtual on the router - or? But: How can I write or read from the jffs2 drive? With xp-explorer or ftp? I tried both but nothing happens.

    And: It it possible to enlarge the space where the router writes the connecting logfile?
  9. roadkill

    roadkill Super Moderator Staff Member Member

    the share is mounted at the router in /cifs1 or /cifs2 depends what you configured.

    if you want to load some program onto the cifs dir which is mounted from the router simply copy the file to that directory that the router is using and you'll see it from the router.

    you don't need more space since you are now writing on your machine hard drive you are limited only by the amount of free space you got on your hard drive.

    I really suggest you check the wiki I think it'll clarify a few things..
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice