Guide: NTFS Read/Write support now possible! (K2.4 & 2.6

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... , 11, 12, 13  Next
Author Message
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Mon Jan 17, 2011 16:10    Post subject: Reply with quote
Pufcio wrote:
So you basically say that Optware does it (the automounting) way better than the dd-wrt built-in scripts (or whatever does this)?

DD-WRT only mounts 1 partition... and it will only insert the filesystem modules for that partition.

optware doesn't mount anything. It's OTRW (the scripts I wrote) that will mount your partitions.

If you have more than 1 partition, you should go with OTRW. The services you don't need can be turned off and are no burden on the router whatsoever.

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
Sponsor
Pufcio
DD-WRT Novice


Joined: 29 Dec 2010
Posts: 49
Location: Poland

PostPosted: Mon Jan 17, 2011 17:33    Post subject: Reply with quote
frater wrote:
DD-WRT only mounts 1 partition... and it will only insert the filesystem modules for that partition.

optware doesn't mount anything. It's OTRW (the scripts I wrote) that will mount your partitions.

If you have more than 1 partition, you should go with OTRW. The services you don't need can be turned off and are no burden on the router whatsoever.

Now I understand. Thank you :)

I did manage to format one partition to ext3, install it and it looks like my 2nd partition is mounted automatically in /mnt. Nice.

I created one autostart script that mounts /mnt/FTP to /mmc and it looks that it's working fine, as I can log in to my FTP and use it as nothing happened.

I don't know if it's the right topic to ask, but could you tell me if it's possible to mount ie. part3 as a folder in part2, but with limited privileges for certain users?

And about the "torrent" function - I searched a bit and I didn't find any screens that show how does it look like, nor infos about what are the full capabilities of this router-version torrent program (like 'do I have to write files on ext2/3 or will it work with other FS' and such)
Youngblood
DD-WRT Novice


Joined: 03 Feb 2010
Posts: 18

PostPosted: Sun Feb 20, 2011 17:00    Post subject: ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' Reply with quote
Response to
ntfs-3g /dev/discs/disc0/part3 /mnt
is
ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root

I am a Linux n00b w/Windows Vista/XP 100/1000BT-mixed home network.
Netgear WNR3500L
DD-WRT v24-sp2 (08/12/10) std-usb-ftp - build 14929
Fantom 1TB USB xHDD parted & formatted as follows:
1GB ext3, 70MB swap, 930GB ntfs
Mounted by router to /opt

Loaded OTRW without a hitch (WHOA! Impressive, Frater! Thank You!)


which insmod
/sbin/insmod

find / -name fuse\*
/dev/misc/fuse
/dev/fuse
/opt/fuse.ko
/opt/lib/modules/2.6.24.111/fuse.ko


find / -name ntfs-3\*
/opt/lib/ipkg/info/ntfs-3g.control
/opt/lib/ipkg/info/ntfs-3g.list
/opt/lib/ipkg/info/ntfs-3g.conffiles
/opt/share/man/man8/ntfs-3g.probe.8
/opt/share/man/man8/ntfs-3g.8
/opt/share/doc/ntfs-3g
/opt/include/ntfs-3g
/opt/bin/ntfs-3g.probe
/opt/bin/ntfs-3g



Followed the Guide in Post#1 of this thread ... 1 of the 2 listed downloads did not work, but I already had 2009.4.4-1 ntfs-3g thanks to OTRW ...

... so I moved ahead, apparently, successfully until Line#6 where I Mount my NTFS Partition.

I originally tried ntfs-3g /dev/sba3 /mnt and, since all that it produced was another root prompt, I tried ntfs-3g /dev/discs/disc0/part3 /mnt and was informed of the missing "fuse device".

I think that that covers it ... I hope that you can help me get this ntfs partition onto my network.

Thanks!

Kim
Youngblood
DD-WRT Novice


Joined: 03 Feb 2010
Posts: 18

PostPosted: Sun Feb 20, 2011 18:01    Post subject: Reply with quote
Just in case it is important, below are the results that I received when doing instruction #s 4 and 5:

root@WNR3500L:~# chmod +x /opt/fuse.ko
root@WNR3500L:~# insmod /opt/fuse.ko
root@WNR3500L:~#

No response, just another Prompt ...

I realized that that may indicate a problem ...

Also, uname -a yields:

Linux WNR3500L 2.6.24.111 #2040 Thu Aug 12 12:14:55 CEST 2010 mips GNU/Linux
Pufcio
DD-WRT Novice


Joined: 29 Dec 2010
Posts: 49
Location: Poland

PostPosted: Sun Feb 20, 2011 22:37    Post subject: Reply with quote
Youngblood - I'll tell you the newbie "as simple as it can be" way. The first partition on an external HDD must be NTFS - it doesn't matter how big is it. It could be even as small as 8MB (absolute minimum size) - it just matters it's the first partition. And then everything works without OTRW and tons of other stuff I don't know (and care) about. Plus the HDD spins down when it's not in use (for me it's a huge advantage).
Try it out.
Youngblood
DD-WRT Novice


Joined: 03 Feb 2010
Posts: 18

PostPosted: Mon Feb 21, 2011 0:13    Post subject: Reply with quote
I greatly appreciate you taking the time to offer assistance after reading of my dilemma, Pufcio!

Unfortunately, your advice does not work with my setup. I started off with my xHDD ntfs-formatted as a single partition ... and at the bottom of the Services/USB page dd-wrt reported the following:

--- /dev/discs/disc0/disc
Block device, size 1.819 TiB (2000398934016 bytes)
DOS/MBR partition map
Partition 1: 1.819 TiB (2000396289024 bytes, 3907024002 sectors from 63)
Type 0x07 (HPFS/NTFS)
Windows NTLDR boot loader
NTFS file system
Volume size 1.819 TiB (2000396288512 bytes, 3907024001 sectors)
Status: Not mounted - Unsupported file system or disk not formated


It appears that I must obtain a solution to this "Fuse" Issue in order to use this, at least, specific flavor of dd-wrt firmware.

Thank again!

Kim
Youngblood
DD-WRT Novice


Joined: 03 Feb 2010
Posts: 18

PostPosted: Mon Feb 21, 2011 3:13    Post subject: Reply with quote
Hopefully, this will help to close in on a solution to my problem.

I just reinstalled OTRW in PuTTY in order to easily capture the text output. The following is an excerpt from near the end ... btw, I added the bold for emphasis (DUH! Smile ) and these are the only two mentions to "fuse" in the entire dump:



Connecting to wd.mirmana.com (85.191.0.241:80)
Installing ntfs-3g (2009.4.4-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ntfs-3g_2009.4.4-1_mipsel.ipk
--1970-01-01 00:13:04-- http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ntfs-3g_2009.4.4-1_mipsel.ipk
Resolving ipkg.nslu2-linux.org... 140.211.169.169
Connecting to ipkg.nslu2-linux.org|140.211.169.169|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 217508 (212K) [text/plain]
Saving to: `/opt/ipkg-fQdcfa/ntfs-3g_2009.4.4-1_mipsel.ipk'

100%[===========================================================================================>] 217,508 214K/s in 1.0s

1970-01-01 00:13:06 (214 KB/s) - `/opt/ipkg-fQdcfa/ntfs-3g_2009.4.4-1_mipsel.ipk' saved [217508/217508]

ntfs-3g: unsatisfied recommendation for kernel-module-fuse
Configuring ntfs-3g
Successfully terminated.
Installing ntfsprogs (1.13.1-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ntfsprogs_1.13.1-1_mipsel.ipk
--1970-01-01 00:13:09-- http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ntfsprogs_1.13.1-1_mipsel.ipk
Resolving ipkg.nslu2-linux.org... 140.211.169.169
Connecting to ipkg.nslu2-linux.org|140.211.169.169|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 365934 (357K) [text/plain]
Saving to: `/opt/ipkg-idzY4h/ntfsprogs_1.13.1-1_mipsel.ipk'

100%[===========================================================================================>] 365,934 221K/s in 1.6s

1970-01-01 00:13:11 (221 KB/s) - `/opt/ipkg-idzY4h/ntfsprogs_1.13.1-1_mipsel.ipk' saved [365934/365934]

Configuring ntfsprogs
Successfully terminated.
opt/bin/ntfs-3g: time stamp 2010-12-19 17:04:13 is 1292777456.128457 s in the future
opt/lib/modules/2.6.24.111/fuse.ko: time stamp 2010-12-19 17:04:06 is 1292777448.032394 s in the future
Downloading http://wd.mirmana.com/kmod-usbsound_2.6.24.111_mipsel.ipk
Installing kmod-usbsound (2.6.24.111) to /opt/...
Configuring kmod-usbsound
Successfully terminated.
Pufcio
DD-WRT Novice


Joined: 29 Dec 2010
Posts: 49
Location: Poland

PostPosted: Mon Feb 21, 2011 12:36    Post subject: Reply with quote
Youngblood - do you have BIG build or MEGA? The difference is that Mega doesn't have NTFS support included, while Big does.
Youngblood
DD-WRT Novice


Joined: 03 Feb 2010
Posts: 18

PostPosted: Mon Feb 21, 2011 13:12    Post subject: Reply with quote
Very Interesting!

I flashed this router with dd-wrt.v24-14929_NEWD-2_K2.6_std_usb_ftp.bin.

Since one of the fellows in this(?) thread recommended dd-wrt.v24-15693_NEWD-2_K2.6_big.bin to someone as having NTFS support, I D/Led that as a last resort if I couldn't get my 14929 ntfs-working via OTRW.

Are you using 14929? I selected the 14929 as it is the Recommended Stable version and the "std_usb_ftp" made it look like the best choice to me. Confused

This morning I will make time to temporarily swapout my 3500L with my old still-properly-configured WNR834B and reflash the 3500L with 14929BIG. I will also pull out my well-worn System Rescue CD and GPartEd my test xHDD so that Part1 is ntfs-ified.

I will post my result.

Thanks so much for taking the time to share this info with me, Pufcio!

Kim


Quite frankly, my original intent was just to get an NTFS xHDD working on this router and move on with my Life ... but now I would really like to sort out the NTFS-FUSE Issue with OTRW because the little bit of working with Linux that this has caused me has rekindled the spark of a long-dormant interest. <shrug & smile>
Pufcio
DD-WRT Novice


Joined: 29 Dec 2010
Posts: 49
Location: Poland

PostPosted: Mon Feb 21, 2011 14:44    Post subject: Reply with quote
Nope, I'm using 15943 (the latest one available) - and if - as I wrote - external drive has the first partition formatted as NTFS, everything works like charm.

And about OTRW - it's really cool thing. Frater did helluva good job, although I'm a minimalist (read as: if something based on 1 part works, what's the point of adding another hundred, which of 99 are unused?). Not mentioning that having OTRW installed resolved some problems but added another Smile
Youngblood
DD-WRT Novice


Joined: 03 Feb 2010
Posts: 18

PostPosted: Mon Feb 21, 2011 15:38    Post subject: Reply with quote
Well ... I reflashed with the 14929BIG binary (there was no MEGA-named file in the list, btw) ... and the router GUI tells me that it is (my bold):

DD-WRT v24-sp2 (08/12/10) mega - build 14929

I saw that and figured that this cycle probably wouldn't end my quest ...

... and I was correct ... No Joy ...

--- /dev/discs/disc0/disc
Block device, size 931.5 GiB (1000204886016 bytes)
DOS/MBR partition map
Partition 1: 1.003 GiB (1077479424 bytes, 2104452 sectors from 63)
Type 0x07 (HPFS/NTFS)
NTFS file system
Volume size 1.003 GiB (1077478912 bytes, 2104451 sectors)
Partition 2: 70.60 MiB (74027520 bytes, 144585 sectors from 2104515)
Type 0x82 (Linux swap / Solaris)
Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
Swap size 70.59 MiB (74018816 bytes, 18071 pages of 4 KiB)
Partition 3: 930.4 GiB (999050734080 bytes, 1951270965 sectors from 2249100)
Type 0x07 (HPFS/NTFS)
NTFS file system
Volume size 930.4 GiB (999050733568 bytes, 1951270964 sectors)
Status: Not mounted - Unsupported file system or disk not formated



So ... after posting this I will D/L 15943BIG and repeat the process.

Many thanks, Pufcio!

Kim
Youngblood
DD-WRT Novice


Joined: 03 Feb 2010
Posts: 18

PostPosted: Mon Feb 21, 2011 18:43    Post subject: Reply with quote
With a Netgear WNR3500L I need to stick with Broadcom K2.6 files, so I elected to choose one a couple of revisions back from the bleeding edge, settling on a Dec18-dated file to try:

dd-wrt.v24-15940_NEWD-2_K2.6_big.bin
(reports as DD-WRT v24-sp2 (12/18/10) big - build 15940)

The reflashing went smoothly and the FW recognized and mounted the HDD:

--- /dev/discs/disc0/disc
Block device, size 931.5 GiB (1000204886016 bytes)
DOS/MBR partition map
Partition 1: 1.003 GiB (1077479424 bytes, 2104452 sectors from 63)
Type 0x07 (HPFS/NTFS)
NTFS file system
Volume size 1.003 GiB (1077478912 bytes, 2104451 sectors)
Partition 2: 70.60 MiB (74027520 bytes, 144585 sectors from 2104515)
Type 0x82 (Linux swap / Solaris)
Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
Swap size 70.59 MiB (74018816 bytes, 18071 pages of 4 KiB)
Partition 3: 930.4 GiB (999050734080 bytes, 1951270965 sectors from 2249100)
Type 0x07 (HPFS/NTFS)
NTFS file system
Volume size 930.4 GiB (999050733568 bytes, 1951270964 sectors)
Status: Mounted on /mnt


... so I reParted the HDD as one large ntfs partition ...

--- /dev/discs/disc0/disc
Block device, size 931.5 GiB (1000204886016 bytes)
DOS/MBR partition map
Partition 1: 931.5 GiB (1000202043392 bytes, 1953519616 sectors from 2048)
Type 0x07 (HPFS/NTFS)
NTFS file system
Volume size 931.5 GiB (1000202042880 bytes, 1953519615 sectors)
Status: Mounted on /mnt


BTW, the Services/USB page in this version no longer sports Toggles for either ext2/ext3 or FAT.

Now for a final question (I/we hope Smile ) ... an interrogatory that I posted elsewhere to which no one responded.


How does one map such a free-standing network HDD mounted by the router on "/mnt" in Windows where the standard format is \\ServerName\ShareName ?

It "pops up" in network scans on neither my Vista system nor my XP systems ... only networked computers are shown. Well, those and the HDD that I installed in my Argosy device ... I had to screw around with one of my XP systems to get it to POP UP because its network "workgroup" (no Domains here) is default-configured to something other than that of my home network.

I have my HDD labeled as "Fantom1TB", its basic Device Manager Hardware IDs are "DiskMICRONETFANTOM_DRIVE" & "MICRONETFANTOM_DRIVE", my router name is "WNR3500L", I have it configured on 192.168.0.1 and, as you can see above, I have the bloody thing mounted at "/mnt". How do I go about getting this HDD mapped on my Win systems, please?

I am very happy to finally be, apparently, so close resolution ... Thank You, Pufcio!

Kim
Pufcio
DD-WRT Novice


Joined: 29 Dec 2010
Posts: 49
Location: Poland

PostPosted: Mon Feb 21, 2011 19:22    Post subject: Reply with quote
Enable Samba, write your workgroup name in the 2nd field, write path to mount point. Save, apply. Et voilá.
Then, in Windows, go to Run and enter \\router_ip\Public (assuming you enabled public share).

If you'll have some specific questions, pm me.
Youngblood
DD-WRT Novice


Joined: 03 Feb 2010
Posts: 18

PostPosted: Mon Feb 21, 2011 21:43    Post subject: Reply with quote
"Enable Samba" ... that instruction gave me pause for a bit, since my whole network is composed of Windows systems ... then it occurred to me that the new dd-wrt firmware may have added something new that I did not notice ... so I went for a look and there it was, a File Sharing section under the FTP Server section ...

... I quickly configured it, rebooted the router, and input \\192.168.0.1\Public at Run ... Et voilá, indeed! Very Happy I could finally see the drive and map it.

Pufcio, thank you so very much for both your kindness & patience!

Kim
Youngblood
DD-WRT Novice


Joined: 03 Feb 2010
Posts: 18

PostPosted: Wed Feb 23, 2011 0:05    Post subject: Reply with quote
This morning I reparted my test xHDD back into ext3/swap/ntfs, and disabled Samba in the router FW in order to continue my search for a solution to my initial Issue.

As the OTRW script came to an end I noticed that the ntfs-3g-related installations were missing ... so it has been modded since I last loaded it ... hmmm.

I manually installed the ntfs-3g as directed in "Method 2" (Post#1, this Thread) and, even though it produced the same ntfs-3g: unsatisfied recommendation for kernel-module-fuse comment, I continued following the instructions ...

... and this time I was able to successfully mount my NTFS partition on /mnt and access/map it in Windows. Very Happy

My Thanks to fggs & frater and all who helped with this approach to solving the NTFSxHDD Issue!

Next ... I will work at upgrading the Samba version to, hopefully, improve the poor thruputs that I am experiencing ... Wink
Goto page Previous  1, 2, 3 ... , 11, 12, 13  Next Display posts from previous:    Page 12 of 13
Post new topic   Reply to topic    DD-WRT 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