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

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


Joined: 28 Jan 2008
Posts: 1716

PostPosted: Sat Jan 02, 2010 4:44    Post subject: Guide: NTFS Read/Write support now possible! (K2.4 & 2.6 Reply with quote
Step by Step for both kernels 2.4 and 2.6

Kernel 2.4

Method 1 (for Eko builds)

1- First check that you have kernel 2.4.37 by using "uname -a" (without "") command on telnet/ssh.

You should have a working ipkg or optware (ipkg-opt) system to do that. If you want to use optware and don't have it installed yet, take a look at frater's thread "Optware, the right way", link at the bottom of this thread.

2- Install ntfs-3g:
-- Download for ipkg http://downloads.openwrt.org/snapshots/trunk/brcm47xx/packages/ntfs-3g_2009.4.4-1-fuseint_mipsel.ipk
-- If you are using ipkg-opt just type: ipkg-opt install ntfs-3g

3- Download fusev24.zip, extract it and put fuse.o into /jffs dir of your router using WinSCP. Make sure you have SSH enabled.
-- If you are using optware just replace /jffs/ to /opt/

4- Type "chmod +x /jffs/fuse.o" (without "") command on telnet/ssh
-- If you are using optware just replace /jffs/ to /opt/

5- Type "insmod /jffs/fuse.o" (without "") command on telnet/ssh
-- If you are using optware just replace /jffs/ to /opt/

6- Now type "ntfs-3g /path/to/your/drive /mnt" (without "") command on telnet/ssh and it will mount.

Module now goes to /jffs/ or /opt/ (if you are using optware) instead, so it will survive reboots

7- Put this to your startup script (Administration > Commands) in order to survive reboots:
insmod /jffs/fuse.o
sleep 10
(optional) ntfs-3g /path/to/your/device /mnt
-- If you are using optware just replace /jffs/ to /opt/

8- Put this to your shutdown script (Administration > Commands):
umount /mnt

Done!




Method 2 (for BS builds)

1- First check that you have kernel 2.4.37 by using "uname -a" (without "") command on telnet/ssh.

You should have a working ipkg or optware (ipkg-opt) system to do that. If you want to use optware and don't have it installed yet, take a look at frater's thread "Optware, the right way", link at the bottom of this thread.

2- Install ntfs-3g:
-- Download for ipkg http://downloads.openwrt.org/snapshots/trunk/brcm47xx/packages/ntfs-3g_2009.4.4-1-fuseint_mipsel.ipk
-- If you are using ipkg-opt just type: ipkg-opt install ntfs-3g

3- Download fusev24.zip, extract it and put fuse.o into /tmp dir of your router using WinSCP. Make sure you have SSH enabled.
-- If you are using optware just replace /tmp/ to /opt/

4- Type "chmod +x /tmp/fuse.o" (without "") command on telnet/ssh
-- If you are using optware just replace /tmp/ to /opt/

5- Type "insmod /tmp/fuse.o" (without "") command on telnet/ssh
-- If you are using optware just replace /tmp/ to /opt/

6- Now type "ntfs-3g /path/to/your/drive /mnt" (without "") command on telnet/ssh and it will mount.

7- Put this to your shutdown script (Administration > Commands):
umount /mnt

Note - K2.4 BS builds only: FUSE module will not survive reboots until someone uploads it to an ftp or something. If you use optware, disgard this note.

Done!




Kernel 2.6

Method 1 (for Eko builds)

1- First check that you have kernel 2.6.24.111 by using "uname -a" (without "") command on telnet/ssh.

You should have a working ipkg or optware (ipkg-opt) system to do that. If you want to use optware and don't have it installed yet, take a look at frater's thread "Optware, the right way", link at the bottom of this thread.

2- Install ntfs-3g:
-- Download for ipkg http://downloads.openwrt.org/snapshots/trunk/brcm47xx/packages/ntfs-3g_2009.4.4-1-fuseint_mipsel.ipk
-- If you are using ipkg-opt just type: ipkg-opt install ntfs-3g

3- Telnet/ssh your router and download fuse.ko with this command: wget ftp://ftp.dd-wrt.com/others/eko/Public/modules/2.6.24.111/fuse.ko -O /jffs/fuse.ko
-- If you are using optware just replace /jffs/ to /opt/

4- Type "chmod +x /jffs/fuse.ko" (without "") command on telnet/ssh
-- If you are using optware just replace /jffs/ to /opt/

5- Type "insmod /jffs/fuse.ko" (without "") command on telnet/ssh
-- If you are using optware just replace /jffs/ to /opt/

6- Now type "ntfs-3g /path/to/your/drive /mnt" (without "") command on telnet/ssh and it will mount.

Module now goes to /jffs/ or /opt/ (if you are using optware) instead, so it will survive reboots

7- Put this to your startup script (Administration > Commands) in order to survive reboots:
insmod /jffs/fuse.ko
sleep 10
(optional) ntfs-3g /path/to/your/device /mnt
-- If you are using optware just replace /jffs/ to /opt/

8- Put this to your shutdown script (Administration > Commands):
umount /mnt

Done!




Method 2 (for BS builds)

1- First check that you have kernel 2.6.24.111 by using "uname -a" (without "") command on telnet/ssh.

You should have a working ipkg or optware (ipkg-opt) system to do that. If you want to use optware and don't have it installed yet, take a look at frater's thread "Optware, the right way", link at the bottom of this thread.

2- Install ntfs-3g:
-- Download for ipkg http://downloads.openwrt.org/snapshots/trunk/brcm47xx/packages/ntfs-3g_2009.4.4-1-fuseint_mipsel.ipk
-- If you are using ipkg-opt just type: ipkg-opt install ntfs-3g

3- Telnet/ssh your router and download fuse.ko with this command: wget ftp://ftp.dd-wrt.com/others/eko/Public/modules/2.6.24.111/fuse.ko -O /tmp/fuse.ko
-- If you are using optware just replace /tmp/ to /opt/

4- Type "chmod +x /tmp/fuse.ko" (without "") command on telnet/ssh
-- If you are using optware just replace /tmp/ to /opt/

5- Type "insmod /tmp/fuse.ko" (without "") command on telnet/ssh
-- If you are using optware just replace /tmp/ to /opt/

6- Now type "ntfs-3g /path/to/your/drive /mnt" (without "") command on telnet/ssh and it will mount.

7- Put this to your startup script (Administration > Commands) in order to survive reboots:
sleep 10
wget ftp://ftp.dd-wrt.com/others/eko/Public/modules/2.6.24.111/fuse.ko -O /tmp/fuse.ko
chmod +x /tmp/fuse.ko
insmod /tmp/fuse.ko
(optional) ntfs-3g /path/to/your/device /mnt

-- If you are using optware use this one instead:
insmod /opt/fuse.ko
sleep 10
(optional) ntfs-3g /path/to/your/device /mnt

8- Put this to your shutdown script (Administration > Commands):
umount /mnt

Done!

Optware users: If you are having trouble with insmod, try to use insmod from dd-wrt firmware by using the command "/sbin/insmod" (without ""). To know if your default's insmod is from d-wrt or optware type "which insmod" (without ""), if the output is /sbin/insmod, it's from dd-wrt, if the output is /opt/sbin/insmod, it's from optware. I'm not saying you can't use optware's insmod but some people reported problems!

Note: I've added a new ntfs-3g compiled by vasso, for K2.4, he said is way faster than the older one. Please try and report.

Credits: Eko, 4512jth , m00nman, Luniz2k1, nhsqr, autobot, stuntsy99, vasso. If I forgot someone just say and I will put you here.

Links:
- frater's "Optware, the right way" thread: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=59668

Post suggestions, problems, some grammar errors I commited or if I told some wrong instructions here.

I will leave fuse.rar attached just in case direct link fails..

Guide feedback welcome..



ntfs-3g.2010.5.16.dd-wrt.v24.tgz
 Description:
ntfs-3g compiled for kernel 2.4

Download
 Filename:  ntfs-3g.2010.5.16.dd-wrt.v24.tgz
 Filesize:  625.77 KB
 Downloaded:  2950 Time(s)


fusev24.zip
 Description:
fuse module for kernel 2.4

Download
 Filename:  fusev24.zip
 Filesize:  20.21 KB
 Downloaded:  2499 Time(s)


fuse.rar
 Description:
fuse module for kernel 2.6

Download
 Filename:  fuse.rar
 Filesize:  22.68 KB
 Downloaded:  2450 Time(s)



Last edited by fggs on Mon Jun 07, 2010 0:24; edited 18 times in total
Sponsor
4512jth
DD-WRT User


Joined: 14 Mar 2009
Posts: 233

PostPosted: Sat Jan 02, 2010 4:54    Post subject: Reply with quote
Files in /tmp don't survive after reboot.
_________________
Routers:
WRT54GS v6: DD-WRT v24-sp2 14438 NEWD2 micro_plus with modified CFE
Asus WL-500gP v2: Tomato USB k26 beta 20
WRT120N (No dd-wrt/openwrt yet...)
At 14, the youngest DD-WRT User Very Happy
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1716

PostPosted: Sat Jan 02, 2010 4:55    Post subject: Reply with quote
Ok, first problem, do you have a suggestion so I can update the guide?
4512jth
DD-WRT User


Joined: 14 Mar 2009
Posts: 233

PostPosted: Sat Jan 02, 2010 5:28    Post subject: Reply with quote
Maybe have fuse.ko hosted online somewhere and then wget it on startup.
_________________
Routers:
WRT54GS v6: DD-WRT v24-sp2 14438 NEWD2 micro_plus with modified CFE
Asus WL-500gP v2: Tomato USB k26 beta 20
WRT120N (No dd-wrt/openwrt yet...)
At 14, the youngest DD-WRT User Very Happy
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1716

PostPosted: Sat Jan 02, 2010 5:30    Post subject: Reply with quote
Good suggestion, let's see if somebody come up with some sort of script to put in Startup script.
Eko
DD-WRT Developer/Maintainer


Joined: 07 Jun 2006
Posts: 5772

PostPosted: Sat Jan 02, 2010 6:01    Post subject: Reply with quote
It can be done like it was done for miniupnp.

I also put fuse module here ftp://ftp.dd-wrt.com/others/eko/Public/modules/2.6.24.111/fuse.ko

_________________
Professional debrick service for EU countries for small fee.
Send inquiries to: debrick at dd-wrt dot si

Have a brick you don't need?

Paypal & Amazon.com gift cards are welcome. Every $ or € counts. Email: donate at dd-wrt dot si
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1716

PostPosted: Sat Jan 02, 2010 6:03    Post subject: Reply with quote
Thanks Eko! I appreciate everything you are doing, I will update the first post and put it as UNTESTED, so people can test it and post results.
stuntsy99
DD-WRT User


Joined: 04 Aug 2009
Posts: 78

PostPosted: Sat Jan 02, 2010 6:56    Post subject: Reply with quote
If i was able to use the fuse.ko module from the /opt disk on startup, would it still work?

This is what my script would look like:

Code:

sleep 10 && mount /dev/.../part1 /opt
insmod /opt/home/ntfs-3g/fuse.ko
ntfs-3g /dev/.../part1 /mnt


And i would need to:
chmod +x /opt/home/ntfs-3g/fuse.ko

As a once of command.
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1716

PostPosted: Sat Jan 02, 2010 8:31    Post subject: Reply with quote
I think it will but wait for someone that uses optware to confirm.

Also remove bolded part of your code:

sleep 10 && mount /dev/.../part1 /opt
insmod /opt/home/ntfs-3g/fuse.ko
ntfs-3g /dev/.../part1 /mnt


Because ntfs-3g acts as mount command for NTFS partitions only!
m00nman
DD-WRT User


Joined: 14 Jan 2009
Posts: 395
Location: AB, Canada

PostPosted: Sat Jan 02, 2010 9:12    Post subject: Reply with quote
just put fuse.ko in /jffs
chmod it

and add
Code:
insmod /jffs/fuse.ko
sleep 10

at the beginning of the startup script.

Thank you Eko for building fuse.ko and thanks fggs for the effort in this matter.

_________________

OpenDNS....................................SpeedTest................................PingTest................................ETN.FM..............
Asus RT-N16 - svn15508 K2.6 big MAIN2
Asus RT-N12 with 9dBi antennas - svn16772 mini WDS node
Linksys WRT54G v8 - svn15314 micro AP
Asus RT-N56U - Padavan's custom F/W with my QOS mod
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1716

PostPosted: Sat Jan 02, 2010 9:21    Post subject: Reply with quote
This looks better than download fuse.ko every reboot.. should I put this to the guide?
Luniz2k1
DD-WRT Guru


Joined: 04 Oct 2007
Posts: 1250
Location: Ohio USA

PostPosted: Sat Jan 02, 2010 10:04    Post subject: Reply with quote
fggs wrote:
This looks better than download fuse.ko every reboot.. should I put this to the guide?

Sure, if the router has enough space in /jffs for the modules.

_________________
(12/24/13) mega - 23204
4x WRT54G-TM

(12/24/13) std - 23204
1x WHR-G300N

(04/15/13) nokaid - 14929
1x WRT54GL v1.1

(07/24/13) micro - 22118
1x WG602v3

Got OpenDNS?
m00nman
DD-WRT User


Joined: 14 Jan 2009
Posts: 395
Location: AB, Canada

PostPosted: Sat Jan 02, 2010 10:22    Post subject: Reply with quote
Luniz2k1 wrote:
fggs wrote:
This looks better than download fuse.ko every reboot.. should I put this to the guide?

Sure, if the router has enough space in /jffs for the modules.


Eko's big builds have enough jffs space, BS's builds probably don't. You can add it to the guide as an alternative to the the other workaround in case there's enough jffs.

_________________

OpenDNS....................................SpeedTest................................PingTest................................ETN.FM..............
Asus RT-N16 - svn15508 K2.6 big MAIN2
Asus RT-N12 with 9dBi antennas - svn16772 mini WDS node
Linksys WRT54G v8 - svn15314 micro AP
Asus RT-N56U - Padavan's custom F/W with my QOS mod
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1716

PostPosted: Sat Jan 02, 2010 10:23    Post subject: Reply with quote
Topic updated. Credits added.
nhsqr
DD-WRT Novice


Joined: 14 Nov 2008
Posts: 34

PostPosted: Sat Jan 02, 2010 11:52    Post subject: Reply with quote
First thank you for the guide!
I was going to do one like that yesterday but something urgent came up.
Still let me confirm that ntfs-3g installed with optware works!

Code:
ipkg-opt install ntfs-3g


With the help of WinSCP I copied the module fuse.ko in /opt/lib/fuse.ko
and for startup script I wrote:

Code:
insmod /opt/lib/fuse.ko
ntfs-3g /dev/scsi/host0/bus0/target0/lun0/part1 /mnt


for shutdown script:

Code:
umount /mnt


And it works fine for me.
I never did:

Code:
chmod +x fuse.ko

Can you explain why did you do it?
Goto page 1, 2, 3 ... 11, 12, 13  Next Display posts from previous:    Page 1 of 13
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