USB Storage Service instructions

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions
Goto page 1, 2  Next
Author Message
lengo lad
DD-WRT Novice


Joined: 19 Feb 2007
Posts: 39

PostPosted: Sat Jan 17, 2015 17:10    Post subject: USB Storage Service instructions Reply with quote
I've tried my luck with the wiki, but found it woefully out of date. In some ways, that's great, because a lot of the heavy lifting (i.e., command line work) has been added to the GUI by the developers! In other ways, it's still a mystery how to get things set up... Take USB Storage, for instance. The wiki is full of info ... that's mostly out of date. In my case this was particularly true of the Samba guide for Windows.

I found a great guide here, but even it's not entirely up to date with what I have in one of the latest builds (r25760). So here is a set of simplified instructions to help another newb (like me!) get started.

To enable USB:
- go to Services > USB
- Enable "Core USB Support"; this will open up some new options
- Enable "USB Storage Support"
- Enable "Automatic Drive Mount"
- Enable "Use SES Button to remove drives" (optional)
- click Save

Plug in your USB storage device. Wait for it to appear in the Disk Info area. Note the mount path (likely /tmp/mnt/sda1).

To enable access to your USB device on your Windows network:
- go to Services > NAS
- Enable "Samba"
- enter your Windows "Workgroup" name
- under "File Sharing > Shares" click Add Share
- select the "Path" (likely /mnt/sda1)
- give your USB device a "Name"
- under "File Sharing > Users" click Add User
- enter a "User Name", "Password", and select the name of the device you added above under "Access Shares" and then "samba"
- click Apply Settings

Open Windows Explorer and go to Network, where you should now see a "dd-wrt" entry. When you click it, you will be prompted to enter the User Name and Password you created in Services > NAS above. Click OK and you should have access to your USB storage device. You could either map this as a network drive (right-click and select "Map network drive"), or add it to your Favorites (right-click Favorites at the top of the Windows Explorer tree and select "Add current location to Favorites").

Not a command line entry or package to compile in the whole process--amazing! Big thanks again to 'rvhamcontrolviation' for setting me off along the right path! Hope this helps someone else...

_________________
WRT54GSv.4: DD-WRT v.24-sp2 (build 14929)
ASUS WL500GPv2: DD-WRT v.24-sp2 (build 17084)
NETGEAR WNDR3700v4: DD-WRT v.24-sp2 (build 26424)
Sponsor
abromberg123
DD-WRT Novice


Joined: 21 Jan 2015
Posts: 7

PostPosted: Mon Jan 26, 2015 14:23    Post subject: Reply with quote
What kind of hard drive do you have connected? Can you please post its info shown under USB page in DD-WRT?

My Windows Seagate 2TB portable drive will not auto-mount, no info shows up, so I can't even map it.

I've tried NTFS and FAT32 formats. Also made shure its MBR partition map. I even made it to be a Windows BOOTMGR boot loader.

However, my 16GB flash does work as NTFS or FAT32/exFat32. As seen below:

Block device, size 14.72 GiB (15805186048 bytes)
Windows BOOTMGR boot loader
DOS/MBR partition map
Partition 1: 14.72 GiB (15805185024 bytes, 30869502 sectors from 2, bootable)
Type 0x07 (NTFS/HPFS)
Windows BOOTMGR boot loader
NTFS file system
UUID 76E0D333E0D2F877
Volume size 14.72 GiB (15805184512 bytes, 30869501 sectors)

== or ==

Block device, size 14.72 GiB (15805186048 bytes)
Windows BOOTMGR boot loader
DOS/MBR partition map
Partition 1: 14.72 GiB (15805185024 bytes, 30869502 sectors from 2, bootable)
Type 0x0C (FAT32 (LBA))
Windows BOOTMGR boot loader
FAT32 file system (hints score 4 of 5)
Volume size 14.70 GiB (15788400640 bytes, 1927295 clusters of 8 KiB)
/dev/sda mounted to /tmp/mnt/sda
lengo lad
DD-WRT Novice


Joined: 19 Feb 2007
Posts: 39

PostPosted: Mon Jan 26, 2015 15:07    Post subject: Reply with quote
32 GB USB 2.0 flash drive. Here's the info from the 'Disk Info' part of the USB page:

--- /dev/sda1
Block device, size 29.82 GiB (32018268160 bytes)
SYSLINUX boot loader
FAT32 file system (hints score 4 of 5)
Volume size 29.80 GiB (32002621440 bytes, 1953285 clusters of 16 KiB)
/dev/sda1 mounted to /tmp/mnt/sda1

It looks similar to your second attempt. I wonder if you dropped the MBR / BOOTMGR stuff, it would work? But I'm really new to this, so don't follow just my advice--find someone else to corroborate it! Good luck.

_________________
WRT54GSv.4: DD-WRT v.24-sp2 (build 14929)
ASUS WL500GPv2: DD-WRT v.24-sp2 (build 17084)
NETGEAR WNDR3700v4: DD-WRT v.24-sp2 (build 26424)
ArturDent
DD-WRT Novice


Joined: 30 Jan 2015
Posts: 11

PostPosted: Fri Feb 06, 2015 12:28    Post subject: Reply with quote
abromberg123 wrote:
My Windows Seagate 2TB portable drive will not auto-mount, no info shows up, so I can't even map it.

First check if the router's USB has sufficient power for HDD.
What is your disk and router? Exact model!

I had the same problem with Seagate 2TB 3.5'
Just convert MBR to basic GPT. Format the partition(s) as you want, it does not matter (NTFS/FAT32/...etc).

I used this: http://www.paragon-software.com/home/hdm-professional/features.html
Acronis Disk Director does not help.
JoeWhoah
DD-WRT Novice


Joined: 04 Feb 2015
Posts: 10

PostPosted: Mon Feb 09, 2015 5:44    Post subject: Reply with quote
I like the nice condensed version you've presented here lengo lad. I'm a newb this week of a Netgear WNDR3400 v1 and am almost to the point of "finishing" it and keeping an eye out for routers that allow DD-WRT to do niftier tricks (neighborhood webpage server!).

On the USB sticks, from now on I'll go with Ex3 formatting because it's obviously faster to access, read/write. I can't give you a benchmark speed, but recently I found a USB-stick analyzer called USBDeview (on the Windows side). It's neat in that it also shows how much current a device takes up, and my USB 3 sticks, while they work at high 2.0 speeds, take up a lot more current.
But today I took out my slowest stick, one that read and wrote like 4kbps and 2kbps, terrible. And formatted it to Ext3 using the free Partition Wizard Home version. It zips along actually fast in the router! I don't know why, an when you think of it, it's a bit of a security helper in that, if your router or USB stick is stolen, by demographics there's a low chance a burglar will understand why their Windows computer wont' read what's on there. It's splitting hairs, but that's my two cents Smile
lengo lad
DD-WRT Novice


Joined: 19 Feb 2007
Posts: 39

PostPosted: Mon Feb 09, 2015 23:50    Post subject: Reply with quote
You're welcome, JoeWhoah. Glad the condensed form made sense!

So are you running a USB-stick on your DD-WRT router? Does it stay mounted for longer than, say, a day? If EXT3 is more stable than FAT32 (which I find dis-mounts frequently), I may have to change the filesystem on mine. Love to hear your observations on this!

_________________
WRT54GSv.4: DD-WRT v.24-sp2 (build 14929)
ASUS WL500GPv2: DD-WRT v.24-sp2 (build 17084)
NETGEAR WNDR3700v4: DD-WRT v.24-sp2 (build 26424)
jmmilner
DD-WRT User


Joined: 16 Sep 2012
Posts: 53

PostPosted: Tue Mar 03, 2015 19:21    Post subject: Can't get USB to mount Reply with quote
I've tried following all the recipes I've seen here and some elsewhere to get a simple 32G USB flash drive mounted on both a WNDR3700v3 (Broadcom R21626) and a WNDR3700v4 (Atheros R25279) router. Using the same flash drive, on v3 it runs though the detection, briefly mounts, and then unmounts. On the v4, nothing. The USB is FAT32 and works fine when plugged into my Windows 7 Pro desktop.

I've attached screen shots of the relevant Services/USB pages for both. I can do command line but my Linix fluency based on PDP-11 Unix from way back. Any suggestions?



usb1.gif
 Description:
WNDR 3700V3 R21676
 Filesize:  62.84 KB
 Viewed:  27059 Time(s)

usb1.gif



usb2.gif
 Description:
WNDR 3700V4 R25279
 Filesize:  60.06 KB
 Viewed:  27059 Time(s)

usb2.gif


lengo lad
DD-WRT Novice


Joined: 19 Feb 2007
Posts: 39

PostPosted: Tue Mar 03, 2015 19:53    Post subject: Reply with quote
Wish I could help, jmmilner... I'm at the point of giving USB up as a lost cause. My FAT32 USB stick won't stay mounted for more than a day. Sad
_________________
WRT54GSv.4: DD-WRT v.24-sp2 (build 14929)
ASUS WL500GPv2: DD-WRT v.24-sp2 (build 17084)
NETGEAR WNDR3700v4: DD-WRT v.24-sp2 (build 26424)
jmmilner
DD-WRT User


Joined: 16 Sep 2012
Posts: 53

PostPosted: Tue Mar 03, 2015 20:10    Post subject: Reply with quote
I'm guessing that FAT32, being an outdated Windows FS, doesn't get the effort that the ext series of FSs get. All I'm really trying to do is get my music and some scratch space mounted on an always-on, low-power node of my home network. The router seems like the obvious choice but I guess I'll try an old Raspberry Pi next, as it is the next best thing.
KrypteX
DD-WRT Guru


Joined: 18 Jan 2014
Posts: 2411

PostPosted: Tue Mar 03, 2015 20:11    Post subject: Reply with quote
@jmmilner
There were 2 recent USB fixes:
- http://svn.dd-wrt.com/ticket/3927 Mounted USB drive corrupted after reboot [fix 25940, 25941]
- http://svn.dd-wrt.com/ticket/3868 Unmount all bind mount points of shared proftpd folders [fix 26096]

So I recommend first updating to a newer build (try 26424 or 26372 or 26138 and check again).
Also, reformat the USB drive to FAT32 in a PC beforehand.
If still no success, then re-format the USB drive as NTFS or ext3 and try again.

_________________
THERE ARE NO STRANGERS HERE; ONLY FRIENDS YOU HAVEN'T YET MET.
________________________________________________________________________________________________________
DD-WRT CHANGELOG | DEVICES | DD-WRT BUILDS | KONG BUILDS | UNOFFICIAL BUILDS | DD-WRT in VIRTUALBOX

Testing BrainSlayer's DD-WRT build 31924 on various units:
NETGEAR : WNDR3800 WNDR3800CH WNDRMACv2 WNDRMACv1 WNR2200 WNR2000v3
TP-LINK : ArcherC7v3 WR1043NDv3 WR740Nv4 WR740Nv6 WR710Nv1 WR810Nv1 WA850REv1 WA901NDv3 WA901NDv4
D-LINK : DIR-862L DIR-615D2
ASUS : RT-N10 C1
VirtualBox : x86_64
lengo lad
DD-WRT Novice


Joined: 19 Feb 2007
Posts: 39

PostPosted: Sat Mar 14, 2015 18:45    Post subject: Reply with quote
Just upgraded to r26424. We'll see how that goes...
_________________
WRT54GSv.4: DD-WRT v.24-sp2 (build 14929)
ASUS WL500GPv2: DD-WRT v.24-sp2 (build 17084)
NETGEAR WNDR3700v4: DD-WRT v.24-sp2 (build 26424)
jmmilner
DD-WRT User


Joined: 16 Sep 2012
Posts: 53

PostPosted: Sun Mar 15, 2015 19:23    Post subject: Reply with quote
I'm been running R26138 on two WNDR3700s, a V3 (Broadcom) and a V4 (Atheros) for about a week now and Samba access to USB flash drives is still working. I have seen some odd behavior with the GUI becoming unresponsive while the router otherwise functions fine. Quick fix was using ssh to kill the "httpd -p 000000" process and restart it with something like "httpd -p 2080" (using "-p 80" is rejected by bind as in-use).
lengo lad
DD-WRT Novice


Joined: 19 Feb 2007
Posts: 39

PostPosted: Mon Mar 16, 2015 16:35    Post subject: Reply with quote
Time for my update: 26424 has proven much more stable on the USB side. I don't know if wireless N was also improved, but mine seems much more stable as well! (I'm using G to bridge to my main router, and N and a virtual G to re-broadcast the signal with my WNDR3700v4.)
_________________
WRT54GSv.4: DD-WRT v.24-sp2 (build 14929)
ASUS WL500GPv2: DD-WRT v.24-sp2 (build 17084)
NETGEAR WNDR3700v4: DD-WRT v.24-sp2 (build 26424)
redhawk0
DD-WRT Guru


Joined: 04 Jan 2007
Posts: 11468
Location: Wherever the wind blows- North America

PostPosted: Wed Mar 18, 2015 12:11    Post subject: Reply with quote
FWIW...I am using USB sticks formatted with NTFS on 4 of my units. 1 32G and 3 64G Sandkisk Cruzer Fits....they work fantastic...never a drop out.

I formatted mine using "EaseUS Partition Master". (freeware)

Never tried a hard drive...but many routers don't have enough extra power to power the unit...If you do try to power an HDD...make sure you get a better (higher current rated) power supply for the router. (Double the OEM current is a good rule of thumb)

redhawk



cruzer.jpg
 Description:
 Filesize:  75.79 KB
 Viewed:  26636 Time(s)

cruzer.jpg



_________________
I do NOT provide personal assistance through chat or phone....so please don't ask.
lengo lad
DD-WRT Novice


Joined: 19 Feb 2007
Posts: 39

PostPosted: Wed Mar 18, 2015 13:34    Post subject: Reply with quote
redhawk0 wrote:
FWIW...I am using USB sticks formatted with NTFS on 4 of my units. 1 32G and 3 64G Sandkisk Cruzer Fits....they work fantastic...never a drop out.
What build(s) are you running on those 4 units?
_________________
WRT54GSv.4: DD-WRT v.24-sp2 (build 14929)
ASUS WL500GPv2: DD-WRT v.24-sp2 (build 17084)
NETGEAR WNDR3700v4: DD-WRT v.24-sp2 (build 26424)
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum