Posted: Fri May 14, 2010 0:57 Post subject: Setting up USB 2TB NTFS Samba share
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?
Joined: 24 Feb 2009 Posts: 2026 Location: Sol System > Earth > USA > Arkansas
Posted: Fri May 14, 2010 1:15 Post subject:
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.
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
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.
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.
Joined: 24 Feb 2009 Posts: 2026 Location: Sol System > Earth > USA > Arkansas
Posted: Fri May 14, 2010 16:40 Post subject:
stuntsy99 wrote:
No one heard of NTFS-3g?
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.
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.
@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.
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.
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.