Posted: Sat Jan 02, 2010 4:44 Post subject: Guide: NTFS Read/Write support now possible! (K2.4 & 2.6
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.
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.
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.
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.
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.
Joined: 14 Jan 2009 Posts: 406 Location: AB, Canada
Posted: Sat Jan 02, 2010 9:12 Post subject:
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. _________________
Nethear R6300 v2 - Latest Kong dd-wrt always
Linksys E3000 - Latest dd-wrt always
Asus RT-N56U - OpenWRT trunk
Joined: 14 Jan 2009 Posts: 406 Location: AB, Canada
Posted: Sat Jan 02, 2010 10:22 Post subject:
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. _________________
Nethear R6300 v2 - Latest Kong dd-wrt always
Linksys E3000 - Latest dd-wrt always
Asus RT-N56U - OpenWRT trunk
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: