Samba Mount

Discussion in 'DD-WRT Firmware' started by XCOM7, Apr 15, 2005.

  1. XCOM7

    XCOM7 Network Guru Member

    Ok I have the info in place now where can I acces the share?
  2. XCOM7

    XCOM7 Network Guru Member

    Any body?
  3. BrainSlayer

    BrainSlayer Network Guru Member

  4. XCOM7

    XCOM7 Network Guru Member

    Whats the IP I need?
    I try all internals IP and all I get is 404...
    Any ideas?
    Thanks for the Reply!
  5. BrainSlayer

    BrainSlayer Network Guru Member

    you get only 404 if the samba share isnt on or not working cause of security (passwort/user) issues, or the document just wasnt found
  6. XCOM7

    XCOM7 Network Guru Member

    OK I got...
    No Script.

    Now the computer name is at-root-office-server but M$ shorted the netbios name to at-root-office-
    Could that be the prob?
  7. XCOM7

    XCOM7 Network Guru Member

    Also the "Shared" is a folder not a drive.
  8. XCOM7

    XCOM7 Network Guru Member

    I am sure I got it right still not working... :(
    userid/computer name
    No Script

    Than I go
    and I get 404
  9. XCOM7

    XCOM7 Network Guru Member

    Ok I give up I just can not get it to work.
    I have no idea what I am doing wrong.
    I have try switching everything arround still dont work!
    am I missing a switch?
    I mean what is it that I am doing wrong?
    I am using a WRT54G v3 could that be the prob?
    I doubt it because mounting a drive is related to the OS running the WRT is not hardware related besides the mem that it uses...
  10. XCOM7

    XCOM7 Network Guru Member

    Can some body post there config to see what I am doing wrong?
    Also How they have there share in windows set.
  11. jagboy

    jagboy Network Guru Member

    i cant get it going either
  12. bummpr

    bummpr Network Guru Member

    Seen this?

    Have you seen this ???

    DD-WRT Forum
  13. jagboy

    jagboy Network Guru Member

    yea i have seen it i posted in it
  14. XCOM7

    XCOM7 Network Guru Member

    All I am trying to do is mount the Folder so I can see the content in it.
    Is it possible or not?
    Do I have to run a web server so it can work?
  15. Toxic

    Toxic Administrator Staff Member

    ok all respect to keloke for this one. it shows how to setup a smaba share on the wrt54g/gs using ddwrt foirmware.

    The Samaba Fs Option on the WRT is so that you can Connect to a windows computer that is sharing the folder with the files you will like to be able to access from the WRT.

    So you setup the WRT to Access the files on the windows machine and then once the WRT is able to access the files it can share them via the
    HTTPD via the URL http://routerIP/smb/

    Just remember that you will need to use the entire path for the URL or you will not be able to see the files.

    Step By Step
    For this sample your router's IP is
    The name of your windows computer that will be sharing the folder will be "PulsarComputer" without the ""

    Go to your windows machine AKA PulsarComputer.
    Setup a static IP (for this sample will use

    Lest Make believe that the only user account on that windows machine is "Pulsar" and the passsword is "PulsarPassword" without the "" for the user/password.

    To make it easier you we will share the folder with all the WebPages.(that way the pages are not in subfolders)

    Ok you find the "cisco_wrt54g_en" folder on your windows computer.

    Right Click and Share the folder.
    use the default option that it gives you.

    Now to confirm that the folder "cisco_wrt54g_en" is being share do the following

    Open "My Computer"
    on the address bar type "\\\" without the ""

    you should see that the "cisco_wrt54g_en" folder is being share.|
    Open the folder and you should see all the files.

    OK so the sharing of the files is complete

    Now we have to go to the WRT

    Go to the Administration>Management page.
    Scroll till you find the Samba FS Options

    Select "Enable" for the SMBFS enabled

    for the Share

    for the User

    for the Password

    Leave the Startscript empty.

    Save Settings.

    To check that is working.

    Go to
    Click on Run

    On the Command Shell Pop-up
    click "Cmd"

    You are looking to see something like this

    // XXXXXXXX ??% /tmp/smbshare
    the XX is the size of the drive that the folder that is being share on your computer and the ??% is the % of free space on that drive.

    Once you see that you will know that the WRT has Mounted the windows share.

    Almost done

    Now go back to your computer and Open your web browser.

    Type in the address bar

    you should have your page.
  16. XCOM7

    XCOM7 Network Guru Member

    Thanks a lot Toxic that works just fine but what I am trying to do is see the files within the mounted folder.
    I check if the folder is mounted and it is but when I go all I see is the info page all broken.
    Now if I go I see a white page. I know the instructions refer to a web server but my point is typing that I get a blank page everything else is ether 404 or the info page broken.
    Theorecally speaking if the folder is mounted you should see the content of that folder.
    And in my case I see nothing. :(
  17. BrainSlayer

    BrainSlayer Network Guru Member

    no. folder listing isnt supported and will never be, since a folder listing is just a generated html. i never implemented this feature since it was never needed. you have to create your own index file
  18. XCOM7

    XCOM7 Network Guru Member

    Right when I figure it out I come back to post and there is my answer!
    Thanks a lot pople I just thought it will autogenerate!

    These is an awesome forum as well ver coOl peepz!
    Thanks every body!
  19. Jeffrccar

    Jeffrccar Network Guru Member

    I got the share to connect to the share but it does not show on
    However, when i turn on SSH and type cd /tmp/smbshare
    Then, I type find it saids:
    /tmp/smbshare # find
    find: .: Stale NFS file handle

    Does that mean NTFS does not work?

    Filesystem 1k-blocks Used Available Use% Mounted on
    /dev/root 2752 2752 0 100% /
    /dev/mtdblock/4 320 320 0 100% /jffs
    // 10241280 8679936 1561344 85% /tmp/smbshare
    (using Prefinal 3.2)
  20. XCOM7

    XCOM7 Network Guru Member

    You have to create a index page it will not show content by itself
  21. Ouistyty

    Ouistyty Network Guru Member

    Any sample page or source page for that ?
  22. jagboy

    jagboy Network Guru Member

  23. Ouistyty

    Ouistyty Network Guru Member

    Thank's but I was looking for a page that autogenerate de content of the folder... (like a FTP in web mode)

    an other question... Does it support .HTACCESS to put some security in this environement ?

  24. jagboy

    jagboy Network Guru Member

  25. XCOM7

    XCOM7 Network Guru Member

    Simple answer to a simple question.
  26. scatman

    scatman Network Guru Member

    Please understand that generating an index page based on the file list of a folder is a complicated task. Many high percormance webservers (e.g. Apache) do this and have various tools built into them to personalize the page, but this all is memory costly and needs much bigger executables than the simple implementation of a HTTP server that is built into dd-wrt. IMHO This will never be a goal to implement such a server into dd-wrt. dd-rt only servers web pages that are static - nor has it support to any PHP like scripting language (that would be your next need i guess). Someone has built a package to OpenWRT with PHP support but this took some 4 MB space on its own. So no such possibility either.

    So you have to create your pages yourself. Sample would be index.htm file with a content : <h1> Hello world</h1>. Save this in your samba share folder and see how the text is written to you browser.

    I personally just redirect web traffic to my LAN PC port 80 and have all the PHP support and file listing done by Apache. There is no need for the dd-wrt server i think because you will not see the page anyway when you LAN PC is shut down. So better use a descent server in LAN PC and all your problems are solved.

    dd-wrt server is handy when you need to server something really small and it is written to the jffs filesystem itself - then you can access it even if all LAN PCs are a sleep.
  27. XCOM7

    XCOM7 Network Guru Member

    I use SSH to acces the content of my SMB mount works grate.
  28. scatman

    scatman Network Guru Member

    great if you do - I was talking here about web server.
  29. XCOM7

    XCOM7 Network Guru Member

    Did I directly reply to you?!?
    Did I quoted YOUR reply?!?
    No.. right! so...
    I was comenting as a solution for the original post.
    No need to get offended.
    Be Happy ;)
  30. Ouistyty

    Ouistyty Network Guru Member

    Well thank's for the advise, but I will soon be using an IDE NAS from SYNOLOGY that will give me acces to my file while my pc are down.

    I'm looking for a way to acces them while are pc are asleep.
    That's why I was asking the question.

    Thank's to but SSH doesn't pass the firewall at the office. Office => Home Port 22 is filtre.

    Maybe an FTP deamon in dd-wrt ?
  31. jagboy

    jagboy Network Guru Member

    i already asked brainslyer if he could do this he said no.
  32. Ouistyty

    Ouistyty Network Guru Member

    Well I'm so stu**d, I will use de FTP of the file server...

    Sorry for disturbing you guys.
  33. Disman_ca

    Disman_ca Super Moderator Staff Member Member

    My 2 cents, if you want to run a server (doesn't matter what ftp, http, ntp etc.) try the Linksys NSLU2. It will save you on electricity costs (if concerned) and make the challenge rewarding. Not that this device is powerful either but it has as much space available as you add (i.e 250GB ext. HD) and has loads of packages available using IPKG. I got one to learn Linux (still n00b green) but enjoy every success I have had. Check out the NSLU forum or look at site. I'm sure a few of you may be tempted by the things you can do with it.
  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