Setting up USB 2TB NTFS Samba share

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
bhall7
DD-WRT Novice


Joined: 13 May 2010
Posts: 6

PostPosted: Fri May 14, 2010 0:57    Post subject: Setting up USB 2TB NTFS Samba share Reply with quote
Hello,

Just got an ASUS RT-N16 and followed the instructions on the hardware specific page (http://www.dd-wrt.com/wiki/index.php/Asus_RT-N16) to install NEWD K2.6 Big Generic (Build 14311, http://www.dd-wrt.com/routerdb/de/download/Asus/RT-N16/-/dd-wrt.v24-14311_NEWD-2_K2.6_big.bin/3414). Everything seems to be working great; however, I have a question regarding Samba setup with NTFS file systems.

I have a 2TB external USB 2.0 drive that is formatted as NTFS, and I've enabled everything on the USB page, but the drive info shows that it doesn't support NTFS:

--- /dev/discs/disc0/disc
Block device, size 1.819 TiB (2000396746752 bytes)
DOS/MBR partition map
Partition 1: 1.819 TiB (2000395698176 bytes, 3907022848 sectors from 2048)
Type 0x07 (HPFS/NTFS)
Windows NTLDR boot loader
NTFS file system
Volume size 1.819 TiB (2000395697664 bytes, 3907022847 sectors)
Status: Not mounted - Unsupported file system or disk not formated

Is there a way to add read/write support for NTFS drives connected via USB to a DD-WRT, Broadcom SoC based device? I've spent all day reading the installation wiki pages, including the peacock thread, but I can't seem to find a good easy-to-understand tutorial for setting up NTFS Samba drives. Since USB support is apparently built into 14311, I don't believe it is necessary to go through the instructions on the USB storage wiki page (http://www.dd-wrt.com/wiki/index.php/USB_storage) for setting up USB. Correct? Is there a way to simply add NTFS support to the existing USB capability?

Any suggestions would be greatly appreciated.

Thanks!

Brian Hall
www.bhall.com



USBSupport.png
 Description:
A screen capture of the USB settings on DD-WRT USB.asp page and the resultant NTFS error.
 Filesize:  83.7 KB
 Viewed:  15101 Time(s)

USBSupport.png




Last edited by bhall7 on Fri May 14, 2010 2:01; edited 1 time in total
Sponsor
crashfly
DD-WRT Guru


Joined: 24 Feb 2009
Posts: 2025
Location: Sol System > Earth > USA > Arkansas

PostPosted: Fri May 14, 2010 1:15    Post subject: Reply with quote
The fact that you are using a 2.6 kernel firmware, no there is currently not any workable ntfs addon for that kernel. There *is* currently an insert able ntfs module for the 2.4 kernel. You would have to search the forum for it though. It was somewhat "resolved" a while back.
_________________
E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
SpyrosB
DD-WRT User


Joined: 12 Apr 2010
Posts: 136
Location: Greece

PostPosted: Fri May 14, 2010 1:20    Post subject: Reply with quote
Why do you want NTFS? Ext3 is far better, no need for defraging and if you want to plug the USB on a windows machine there are many etx3 readers around.
_________________
WRT320N converted to E2000 : DD-WRT v24-sp2 (11/21/10) std-usb-nas - build 15778
bhall7
DD-WRT Novice


Joined: 13 May 2010
Posts: 6

PostPosted: Fri May 14, 2010 1:59    Post subject: Reply with quote
The main reason for keeping the drive formatted as NTFS is for compatibility between a number of different computers for a wide variety of applications (drive imaging, etc.). I know it's inconvenient, but I'm hopeful that I'll be able to find a resolution.

Curiously, the original ASUS firmware supported it just fine via the "USB Application" menu item in the RT-N16 firmware.
oxygenx
DD-WRT Guru


Joined: 11 Nov 2007
Posts: 566

PostPosted: Fri May 14, 2010 7:51    Post subject: Reply with quote
If you want compatibility, use fat32.
stuntsy99
DD-WRT User


Joined: 04 Aug 2009
Posts: 78

PostPosted: Fri May 14, 2010 13:44    Post subject: Reply with quote
Shocked No one heard of NTFS-3g? Shocked

Install optware or some ipkg system, and run

ipkg install ntfs-3g

However, you will need an automount script I believe, as the inbuilt will not detect it. Frater's optware script provides an automount script, which runs almost exactly like the dd-wrt one.

Good luck, Its working fine here.

BTW: the ext2fs driver for windows doesn't support byte sector something a-rather above 128 bits or something. My 1.5TB drive was formatted 512 bits, and it spat it out, refusing to mount it. Dont do the same mistake I did. Embarassed
crashfly
DD-WRT Guru


Joined: 24 Feb 2009
Posts: 2025
Location: Sol System > Earth > USA > Arkansas

PostPosted: Fri May 14, 2010 16:40    Post subject: Reply with quote
stuntsy99 wrote:
Shocked No one heard of NTFS-3g? Shocked

Yes we have heard of it. What I remember though is that it is not currently compatible with the 2.6 kernel. Therefore it is not usable for bhall7's purposes.

_________________
E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
SpyrosB
DD-WRT User


Joined: 12 Apr 2010
Posts: 136
Location: Greece

PostPosted: Fri May 14, 2010 16:50    Post subject: Reply with quote
stuntsy99 wrote:


BTW: the ext2fs driver for windows doesn't support byte sector something a-rather above 128 bits or something. My 1.5TB drive was formatted 512 bits, and it spat it out, refusing to mount it. Dont do the same mistake I did. Embarassed


Virtualbox Wink

_________________
WRT320N converted to E2000 : DD-WRT v24-sp2 (11/21/10) std-usb-nas - build 15778
bhall7
DD-WRT Novice


Joined: 13 May 2010
Posts: 6

PostPosted: Fri May 14, 2010 19:16    Post subject: Reply with quote
@Stuntsy99, What hardware do you have, what build are you using, and what kernel version are you running?

Could you please provide some guidance as to how you set up USB NTFS support?

Thanks in advance! You've given me hope! :-)

Edit: I looked around, fount the ntfs.o driver, but it appears that it is for kernel v. 2.4. Surely out there in the Linux world there has got to be an NTFS driver that will work with the 2.6 kernel. Seems like this should be built in to the mega build.
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1716

PostPosted: Sat May 15, 2010 9:04    Post subject: Reply with quote
Maybe this will help: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=63838
stuntsy99
DD-WRT User


Joined: 04 Aug 2009
Posts: 78

PostPosted: Sat May 15, 2010 9:44    Post subject: Reply with quote
Well...

Quote:

root@WRT610NV1:~# uname -r
2.6.24.111


and:


Quote:

...
2291 ? 03:16:29 ntfs-3g
2345 ? 00:00:00 transmission-da
2346 ? 00:00:00 transmission-da
2347 ? 00:57:18 transmission-da
2394 ? 00:00:15 smbd
2400 ? 00:00:00 smbd
2401 ? 00:01:00 nmbd
...


so... I guess that means you can run ntfs-3g on K2.6? Laughing

Running K2.6 on a WRT610Nv1, build 14289 BrainSlayer.

Edit: fggs has posted the link to the ntfs-3g package when it was first built.

Frater's optware script will take care of it all, so you dont have to do anything!

http://www.dd-wrt.com/wiki/index.php/Optware,_the_Right_Way
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1716

PostPosted: Sat May 15, 2010 10:50    Post subject: Reply with quote
Just for information, people had "bus error" with latest ntfs-3g, but I don't know which version frater's optware script uses.
stuntsy99
DD-WRT User


Joined: 04 Aug 2009
Posts: 78

PostPosted: Sat May 15, 2010 16:06    Post subject: Reply with quote
Sorry on my half fggs, the link you posted is the one that is in the ipkg repo. That is also the one im using. Im faily sure it has been updated, but just hasn't been in the repo yet.

Follow that tutorial that fggs posted, and you will be fine. Once again frater's optware script will do this automatically for you.
bhall7
DD-WRT Novice


Joined: 13 May 2010
Posts: 6

PostPosted: Sat May 15, 2010 16:44    Post subject: Reply with quote
Thanks all for the replies...very helpful information.

I actually ended up formatting the drive as FAT32 just to avoid any headaches.

Now if I can only figure out how to get smbd to autostart...thought the "ipkg-opt samba35-swat" script would take care of that, but I have to start smbd manually in http://routerip:901, or "smbd -D" from SSH. I tried adding "smbd -D" as a startup command and rebooted, but unfortunately, it did not work. Any suggestions? Even tried adding "sudo smbd -D" to the startup script but it still didn't start.
reverson1
DD-WRT User


Joined: 21 Apr 2010
Posts: 60

PostPosted: Sat May 15, 2010 17:07    Post subject: Reply with quote
This may work:

Telnet into the router
login
Enter the following:
service samba on
service samba start

hth
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware 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