1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help request: Tomato 1.27 seems to mount writable CIFS as readonly ?

Discussion in 'Tomato Firmware' started by MillKa, Jan 21, 2010.

  1. MillKa

    MillKa Addicted to LI Member


    I think my Linksys WRT54GL with Tomato 1.27 doesnt backup my bandwidth monitoring data, because it mounts a writable CIFS share as readonly.

    First, the setup in my home office (see the hardware links in my signature):

    The WRT54GL WAN port connects to the cable modem.
    The WRT54GL LAN1 port connects to a NetGear GS608 switch with a bunch of PCs behind it.
    The WRT54GL LAN2 port connects to the WAN/LAN1 port of an AVM Fritz!Box 7270 (a faster WLAN router with built in ADSL modem and DECT phone base for ISDN and POTS). Its USB port connects to a 1 GB memory stick.

    My configuration:

    The main internet connection is the cable modem.
    The FritzBox is mostly used as an ISDN phone, plus as fallback internet connection thru a rather slow ADSL line. Its USB memory stick is available as a CIFS share.

    The WRT54GL's IP is Its the DHCP server.
    The FritzBox IP is (static IP defined in Tomato).

    Now the CIFS configuration in Tomato:

    CIFS1 points to a share on my main PC and works fine (Tomato is able to save its bandwidth data to that share).

    CIFS2 points to the share on the FritzBox USB memory stick. It used to work for Tomato 1.25, but I think it stopped working when I switched to Tomato v1.27.

    The CIFS2 settings in Tomato:

    UNC: \\\USBDRIVE-01
    User: ftpuser
    Password: YouAreWayTooNosy :)
    Domain: (empty)

    The FritzBox USB configuration doesnt need a user / password, but Tomato doesnt allow me to leave those fields empty. Why not ??

    Tomato mounts that share. It shows correct values for Total/Free Size. But Tomato doesnt save the bandwidth data to that share.

    When I telnet into Tomato, I can see the contents of the share.
    Within telnet, when I try to write to the share: echo Blah > /cifs2/test.txt
    Tomato complains: -sh: can't create /cifs2/test.txt: Is a directory
    When I try to create a subdirectory: mkdir /cifs2/subdir
    Tomato complains: mkdir: cannot create directory 'subdir': File exists
    Of course, it doesnt.

    These error messages dont make very much sense to me ...

    When I connect to the CIFS2 share from my PC (running Windows XP), it works fine. I can create directories and files without having to specify user and password. Same, if I connect to that share from a Linux VM. That makes me believe, that the FritzBox USB configuration part is correct.

    Since Tomato can read the share, and since PC and Linux VM both can write without user and password, the only other reason I can think of is some mounting problem, e.g. readonly mounting.

    Sooo, what the heck is wrong ?

    Unfortunately, my Linux knowledge is quite limited ..

    I think it would be helpful if you could tell me some linux commands to try within telnet, to find out more about the state of the share ?

  2. Gshock

    Gshock Guest

    I'd double check that the user you are using has read / write to the share specified. I have CIFS setup and I have no issues with it. I use a DNS-323 with a user setup specifically for that.

    With the DNS-323, an FTP user is not the same thing as a Network user. Perhaps your issue is along those lines.
  3. MillKa

    MillKa Addicted to LI Member

    Thanks, Gshock.

    Any user has read/write access to that share. I verified that from Windows XP and from a Linux VM as well.

    Only Tomato refuses to write to that writable share.

    And only Tomato forces me to enter an unneccassary user and password in the CIFS client configuration. If I try to leave those fields empty, Tomato refuses to save the the CIFS client configuration.

    Do the error messages I get in telnet (see above) make sense to anyone ?
  4. jyavenard

    jyavenard Network Guru Member

    Working fine for me ...

Share This Page