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

Accessing USB drive in Windows 7

Discussion in 'Tomato Firmware' started by i0's, Mar 8, 2013.

  1. i0's

    i0's LI Guru Member

    Newb question, how do I access an attached USB drive on N66U flashed with Shibby v107 AIO in Windows?

    My android phone can access it but cannot figure out how to on Windows 7. I see the USB drive in "USB support" and its mounted. And under File Sharing, I have enabled it.

    Thanks!
     
  2. Frequenzy

    Frequenzy Networkin' Nut Member

    start - run - type

    \\router ip
     
  3. leandroong

    leandroong Addicted to LI Member

    under "Samba File Sharing", check both "master Browser" and "WINS Server".
    Workgroup Name should be the same as win7
    From win7, you should see it under network
     
  4. i0's

    i0's LI Guru Member

    getting this error:
    [​IMG]

    Btw, I typed in \\router ip. Same error when I type \\routerip

    Both, master Browser" and "WINS Server" are checked and Workgroup Name is WORKGROUP (default) for both router and Windows 7.

    Still cannot see in networks :(
     
  5. leandroong

    leandroong Addicted to LI Member

  6. i0's

    i0's LI Guru Member

    Thanks for the link, good info. Everything was configured as stated in the above link but, still cannot see the USB drive.
    ipconfig /all shows:
    And the USB drive is formatted as NTFS if it matter.

    Yes I did click save :), even reboot both router and win7 computers, still no luck.

    Anyone?
    Thanks!
     
  7. jakey

    jakey Networkin' Nut Member

    I've enabled ftp for lan only so can access it using an ftp client or from windows 'file explorer' by typing in the address bar

    Code:
    ftp://192.168.1.1:2121/
    2121 being the port number in my case, you can then find the usb inside the mnt folder

    Once you've navigated to your usb drive you can create a shortcut to it for easy access on the desktop by dragging and dropping the link from the address bar.
     
  8. fubdap

    fubdap Addicted to LI Member

    Follow the instructions on post #3. To find out what the Workgroup name is, right click on computer, click on property and then scroll down to see workgroup. If you don't have a workgroup name, you may have to create one.
     
  9. leandroong

    leandroong Addicted to LI Member

    You need to give name to your router also, Basic->Identification. On network, you should see your router name. Clicking it will display your usb hard drives
     
  10. koitsu

    koitsu Network Guru Member

    BTW, because it's not apparent, the OP appears to have literally typed \\router ip and \\routerip into Start/Run (to open a Windows Explorer window). He did not appear to type \\192.168.1.1, which is what he should have typed (that's his router's IP address). The instructions given to the user made the assumption he could figure that out on his own -- this is often not the case. Welcome to why one has to be extra verbose these days.

    You can also try from a Command Prompt the command net view \\192.168.1.1 to get a list of shares, if any.

    The issue with accessing the router by its NetBIOS name is a separate issue. Start with seeing if you can access it by the UNC path \\192.168.1.1 and if you can, then the next step is to figure out the NetBIOS bits. This is often painful/tricky given how Samba works and how Windows behaves (the OS revision (XP, Vista, 7, 8, etc.) often matters greatly).
     
  11. i0's

    i0's LI Guru Member

    workgroup name on both router and computer is: WORKGROUP

    Oh man do I feel silly :( ......., thanks for pointing that out

    Well this is what I get:
    Yep that is the USB drive that I want to see/share in Windows 7.
     
  12. koitsu

    koitsu Network Guru Member

    Read everything I've written. Slowly. Do not skim.

    Important piece of information: what you're configuring/using here is called a CIFS or SMB share (commonly called CIFS/SMB). It is not an FTP share. Understand the difference.

    Okay, so the share is showing up. You can try to access it. Open Windows Explorer (not Internet Explorer) and enter as the drive/path name: \\192.168.1.1\Lexar

    You should get a directory listing of the files on the drive. You may be prompted for authentication credentials, depending on how Samba on TomatoUSB is configured (I don't have familiarity with it on TomatoUSB, but I am very familiar with Samba). If you're not asked for any, great. If you are, it'll probably ask you for a username and a password -- you should enter whatever you configured in the "Samba File Sharing" GUI portion of the router. If you get an authentication error, you may also need to specify the username in this format: WORKGROUP\usernameyouchose.

    If all that works, you should be able to use the Windows Explorer GUI to map that path to a drive letter (e.g. the Q: drive on your Windows machine will now refer to \\192.168.1.1\Lexar) -- and even restore it automatically upon reboot if you choose that. In the example page I just linked, the "Folder" is the UNC path, i.e. \\192.168.1.1\Lexar.

    Here's another tutorial if the one from Microsoft isn't helpful; note that you will probably need to check the checkbox in the GUI called "Connect using different credentials", unless the credentials you configured in the "Samba File Sharing GUI" happen to match the exact username and password you use to log on to your Windows machine. If the "Domain" field that shows up when prompted for the Network Password is your local computer's name, use the username syntax I showed you above (\WORKGROUP\usernameyouchose). This is explained in the 2nd tutorial URL I linked.

    I recommend you DO NOT check either the "Reconnect at logon" nor the "Remember my credentials" boxes until you are absolutely 100% certain that everything is working great (make sure you make some directories, files, save/delete, etc. first). After that, unmap the drive, then re-map it and check the checkboxes.

    If you want to know how to do all of this from the command line on Windows (cmd.exe) I can explain how to do that as well (it's through the net use command).

    Next, if you want to speed up the I/O rate (throughput) between your Windows machine and the share, read these 3 posts:

    http://www.linksysinfo.org/index.php?threads/speeding-up-the-samba-by-30.52240/#post-223770
    http://www.linksysinfo.org/index.php?threads/speeding-up-the-samba-by-30.52240/#post-223772
    http://www.linksysinfo.org/index.php?threads/speeding-up-the-samba-by-30.52240/#post-223789

    More specifically: adding use sendfile = no to the custom configuration portion. The Linux kernel TomatoUSB uses contains performance-related problems with sendfile() support; these have been fixed in a later kernel version, but the kernel cannot be upgraded else risk breaking compatibility with the wireless driver (which is not open-source).

    Finally, be aware that the overall speed of the USB layer on these consumer routers is very very slow. There is nothing that can be done about this; these routers do not have separate USB ICs for offloading, most of the work is done within the SoC / at the CPU level.

    Good luck.
     
  13. i0's

    i0's LI Guru Member

    Thanks koitsu, that worked beautifully!!!
    Really appreciate you taking the time and energy to write up that in-dept informative post, cheers!!


    PS: Sorry for the late reply, has an emergency.
     

Share This Page