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 ... 10, 11, 12, 13  Next
Author Message
buddee
DD-WRT Guru


Joined: 06 Feb 2010
Posts: 7401
Location: Little Rock

PostPosted: Tue Dec 28, 2010 0:23    Post subject: Re: Need help with USB and Dlink DIR 825 Reply with quote
doctorman wrote:


so there is no easy way to use the USB HDD NTFS on this router with DD WRT as of now correct?

any guide on how to do it manually .. any other way to use the USB?
.

Go into the webgui in services and enable USB support and then in the NAS section enable samba?

_________________
Wireless N Config | Linking Routers | DD-WRT Wiki | DD-WRT Builds | Peacock - Broadcom FAQ

Having problems with port forwarding? Check out Port Forward Troubleshooting for more info.
Sponsor
doctorman
DD-WRT Novice


Joined: 05 Nov 2010
Posts: 13

PostPosted: Tue Dec 28, 2010 0:37    Post subject: Re: Need help with USB and Dlink DIR 825 Reply with quote
buddee wrote:
doctorman wrote:


so there is no easy way to use the USB HDD NTFS on this router with DD WRT as of now correct?

any guide on how to do it manually .. any other way to use the USB?
.

Go into the webgui in services and enable USB support and then in the NAS section enable samba?


USB is enabled but not sure what to put under "Disk mount point"

under NAS I only see ProFTPD no smaba.
buddee
DD-WRT Guru


Joined: 06 Feb 2010
Posts: 7401
Location: Little Rock

PostPosted: Tue Dec 28, 2010 0:46    Post subject: Re: Need help with USB and Dlink DIR 825 Reply with quote
doctorman wrote:


USB is enabled but not sure what to put under "Disk mount point"

under NAS I only see ProFTPD no smaba.


Disk mount point should be where you want it to mount, in either /opt /mnt etc.

This is what i am using as an Atheros reference info sheet, maybe it can help you as well.

http://g300nh.blogspot.com/2010/06/samba-sharing-in-dd-wrt.html

And yes i know the OP is using a buffalo g300nh but being that they are both atheros units, it still should apply for you as well.

_________________
Wireless N Config | Linking Routers | DD-WRT Wiki | DD-WRT Builds | Peacock - Broadcom FAQ

Having problems with port forwarding? Check out Port Forward Troubleshooting for more info.
doctorman
DD-WRT Novice


Joined: 05 Nov 2010
Posts: 13

PostPosted: Tue Dec 28, 2010 2:06    Post subject: Re: Need help with USB and Dlink DIR 825 Reply with quote
buddee wrote:
doctorman wrote:


USB is enabled but not sure what to put under "Disk mount point"

under NAS I only see ProFTPD no smaba.


Disk mount point should be where you want it to mount, in either /opt /mnt etc.

This is what i am using as an Atheros reference info sheet, maybe it can help you as well.

http://g300nh.blogspot.com/2010/06/samba-sharing-in-dd-wrt.html

And yes i know the OP is using a buffalo g300nh but being that they are both atheros units, it still should apply for you as well.


looked into it but it asks that I format the USB drive with ext2 3 first which I dont want to. I am looking for a solution to use the USB with a large external HDD full of info.
I thought DD wRT is the ultimate firmware but it seams otherwise now. the original firmware has that option but for one user at a time. feel like it was a big waste reading all these posts and setting up ddwrt on my router.
Pufcio
DD-WRT Novice


Joined: 29 Dec 2010
Posts: 49
Location: Poland

PostPosted: Wed Dec 29, 2010 19:15    Post subject: Reply with quote
Hello Smile I have a problem with ntfs support, but it's quite different from what I've read here and there.

I have wrt610n v1 router, I've flashed it with "15943 NEWD-2 K2.6 big Eko". After first boot I've enabled USB support, connected via telnet, used two commands:

insmod fuse.ko
ntfs-3g /dev/scsi/host0/bus0/target0/lun0/part2 /opt

I could then set via http, that ProFTPD "folder" was /opt and it worked like charm. Some time later (maybe after some restart? I don't know, really) I couldn't mount ntfs volume. When I used the above command, I got:

ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root

(this "modprobe" doesn't exist)

I read whole Internet ( Wink ) and it seems that after executing the "insmod fuse.ko", fuse is not loaded, as "lsmod" doesn't list anything similar to "fuse".

I also cannot install optware (although I don't have Atheros but Broadcom), so I can't check if optware way to mount ntfs would work.
It's totally hopeless - as for now I figured that hard resetting the router helps - but that way I am losing my settings and I have to set everything from scratch... :/

Any ideas? I'm a linux newbie, and I've tried many things to make that work, read dozens of topics, but I just couldn't force it to work...

Any help will be greatly appreciated.
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sun Jan 16, 2011 5:07    Post subject: Reply with quote
You give either '/sbin/insmod fuse' or '/sbin/insmod <path>/fuse.ko'
Check if you have this module...

Code:
find / -name fuse\*


You can download it from dd-wrt's website.
I have no idea about your environment, so I'm doing it on /tmp

Code:
KERNEL=`uname -r`
wget -O /tmp/fuse.ko ftp://ftp.dd-wrt.com/others/eko/Public/modules/$KERNEL/fuse.ko
/sbin/insmod /tmp/fuse.ko


If you have optware, you can do this:

Code:
KERNEL=`uname -r`
mkdir -p /opt/lib/modules/$KERNEL
wget -O /opt/lib/modules/$KERNEL/fuse.ko ftp://ftp.dd-wrt.com/others/eko/Public/modules/$KERNEL/fuse.ko
/sbin/insmod fuse

_________________
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)
festyr
DD-WRT Novice


Joined: 29 Aug 2010
Posts: 23
Location: New York - USA

PostPosted: Sun Jan 16, 2011 5:25    Post subject: Re: Need help with USB and Dlink DIR 825 Reply with quote
doctorman wrote:
buddee wrote:
doctorman wrote:


USB is enabled but not sure what to put under "Disk mount point"

under NAS I only see ProFTPD no smaba.


Disk mount point should be where you want it to mount, in either /opt /mnt etc.

This is what i am using as an Atheros reference info sheet, maybe it can help you as well.

http://g300nh.blogspot.com/2010/06/samba-sharing-in-dd-wrt.html

And yes i know the OP is using a buffalo g300nh but being that they are both atheros units, it still should apply for you as well.


looked into it but it asks that I format the USB drive with ext2 3 first which I dont want to. I am looking for a solution to use the USB with a large external HDD full of info.
I thought DD wRT is the ultimate firmware but it seams otherwise now. the original firmware has that option but for one user at a time. feel like it was a big waste reading all these posts and setting up ddwrt on my router.


couldn't he just use ProFTPD under nas? and just use the router as a ftp server to use his drive for storage etc?
maybe I am way off the mark as I just got an E3000 last night and connected an 8gb flash drive(ntfs) and turned on usb2.0/storage support and just turned on ProFTPD and did the password and did the file directory to /mnt. I can read and write using windows explorer.

_________________
E4200
Everyone give B.S. and Eko a cookie !
If it isn't running DD-WRT it's just a router.
Pufcio
DD-WRT Novice


Joined: 29 Dec 2010
Posts: 49
Location: Poland

PostPosted: Sun Jan 16, 2011 11:35    Post subject: Reply with quote
Thanks for the reply frater :)

frater wrote:
You give either '/sbin/insmod fuse' or '/sbin/insmod <path>/fuse.ko'
Check if you have this module...

I do have it.

After typing
Code:
find / -name fuse\*

I get
Code:
/dev/misc/fuse
/dev/fuse
/lib/modules/2.6.24.111/kernel/fs/fuse
/lib/modules/2.6.24.111/kernel/fs/fuse/fuse.ko
/sys/class/misc/fuse


Then, I type:

Code:
/sbin/insmod /lib/modules/2.6.24.111/kernel/fs/fuse/fuse.ko
ntfs-3g /dev/scsi/host3/bus0/target0/lun0/disc /opt

And I get:

ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root

This time I've plugged usb stick, but it doesn't matter if it's flash drive or portable hdd.

frater wrote:
If you have optware

I don't and I can't install it, because I get something like "your hardware isn't supported", though I have Broadcom h/w (which, as far as I know, is supported).


By the way - why there's so much "hostX" in /dev/scsi/ ? (for the time being, I have four, although I haven't connected more than 2 devices to the router...)
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sun Jan 16, 2011 17:36    Post subject: Reply with quote
Ok
You need to mount some more modules to get it going. Just fuse is not enough.
All this is done in my automount script, but then you don't have OTRW....

Maybe we can fix that later

Code:
/sbin/insmod nls_base
/sbin/insmod nls_cp437
/sbin/insmod nls_iso8859_1
/sbin/insmod nls_utf8
/sbin/insmod fuse


You can give an 'lsmod' to check if the modules were able to load.
It probably isn't when you only insert fuse.

Do a
Code:
ls -l /dev/scsi/host3/bus0/target0/lun0/


And check which partition you want to mount
You gave an example of the whole disk

_________________
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)


Last edited by frater on Sun Jan 16, 2011 18:05; edited 2 times in total
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sun Jan 16, 2011 17:43    Post subject: Reply with quote
Pufcio wrote:
I don't and I can't install it, because I get something like "your hardware isn't supported", though I have Broadcom h/w (which, as far as I know, is supported).
You're the first that says he has broadcom and can't install it. We should check why.
You probably can install it.
Something is probably wrong with one of the checks.

_________________
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)
Pufcio
DD-WRT Novice


Joined: 29 Dec 2010
Posts: 49
Location: Poland

PostPosted: Sun Jan 16, 2011 20:02    Post subject: Reply with quote
At first, it didn't work, but I've restarted the router and then tried again. Looks like it's working.
Just to be clear, my mount command this time looked like this:

ntfs-3g /dev/scsi/host0/bus0/target0/lun0/part2 /mnt

(the hdd is divided into 3 partitions - 1.5GB Fat32, 150GB NTFS and 325GB NTFS; Fat32 is automounted to /opt)

frater wrote:
You gave an example of the whole disk
Well, it was flash drive, but as you can see - I used hdd this time.

Still - can you tell me why there's so much hosts in /dev/scsi/ ? Every time something is plugged the number increases, thus making automount script useless (unless it does detect the largest number by the "host" and use it as a variable in the command...)

Anyway - as I can see, those are some charset tables (or something like that...). Why mounting didn't work without those commands?

And about optware...

I did run two commands, just as they appear in the OTRW how-to:

Code:
wget -O /opt/prep_optware http://wd.mirmana.com/prep_optware
sh /opt/prep_optware


And I got:

Quote:
Optware installation was NOT successfull...
Your hardware is probably not compatible
system type : Broadcom BCM4785 chip rev 2
processor : 0
cpu model : Broadcom BCM3302 V1.10
BogoMIPS : 299.00
wait instruction : no
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : no
hardware watchpoint : no
ASEs implemented : mips16
shadow register sets : 1
VCED exceptions : not available
VCEI exceptions : not available

dcache hits : 0
dcache misses : 0
icache hits : 0
icache misses : 0
instructions : 0
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sun Jan 16, 2011 21:10    Post subject: Reply with quote
You do know you need ext3 to mount optware?
The automount feature of DD-WRT doesn't do a good job with mounting the same partition all the time.

I made a feature request that will make this happen.

Meanwhile you could try this workaround I wrote.
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=84919&start=0
It will mount the same partition always.
You do need to use ext3 for optware.

I'm using /dev/sda, /dev/sda1, ....
I do have to create these nodes in /dev

I'm going to sleep now...
We'll have to look into OTRW another time.

What kind of device do you have?

_________________
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)
Pufcio
DD-WRT Novice


Joined: 29 Dec 2010
Posts: 49
Location: Poland

PostPosted: Sun Jan 16, 2011 22:05    Post subject: Reply with quote
frater wrote:
You do know you need ext3 to mount optware?

Till now I didn't. Shame on me.

frater wrote:
The automount feature of DD-WRT doesn't do a good job with mounting the same partition all the time.

It's not really that much problem, as it mounts only my 1st partition and I have to mount 2nd manually. The problem is that the 'host numbers' increase every time I plug the hdd to the router, so simple script "copypasta" won't work as I need to check the number every time I plug in the hdd.

frater wrote:
I made a feature request that will make this happen.

Meanwhile you could try this workaround I wrote.
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=84919&start=0
It will mount the same partition always.

It would be nice if it would automount the drive/partitions all by itself.
As for the link you've provided - it's kinda like black magic for me - I barely can understand "why" and "what for". Same for the "nodes" thing, etc.

I'm not really willing to install Optware, because I simply don't need it for anything. I just read somewhere, that Optware has ntfs support included and I wanted to check if it would be some kind of remedy to my problem. The solution with those additional 4 commands you've provided is sufficient enough for me, as I only wanted to mount my portable drive (which is used part-time as FTP drive). Nothing more.

frater wrote:
What kind of device do you have?

WRT610N v1 - I wrote that in my 1st post here Smile
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Mon Jan 17, 2011 7:31    Post subject: Reply with quote
Pufcio wrote:
I'm not really willing to install Optware, because I simply don't need it for anything.
You can't say you have no need for something if you don't know what it is. I know what it is (I wrote OTRW) and see you need it, because it solves the problem you are having.
I helped you doing it without OTRW because I can help you with your part of the problem. I can't do everything.. I did that with OTRW.

_________________
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)
Pufcio
DD-WRT Novice


Joined: 29 Dec 2010
Posts: 49
Location: Poland

PostPosted: Mon Jan 17, 2011 9:32    Post subject: Reply with quote
frater wrote:
You can't say you have no need for something if you don't know what it is. I know what it is (I wrote OTRW) and see you need it, because it solves the problem you are having.

I did read your manual months ago (tremendous job, by the way) and the whole Optware package is something a person like me won't use, ever.
(Well, perhaps excluding the automount/unmount/hotmount, which - as I presume could solve the problem in my case).

frater wrote:
I helped you doing it without OTRW because I can help you with your part of the problem. I can't do everything.. I did that with OTRW.

So you basically say that Optware does it (the automounting) way better than the dd-wrt built-in scripts (or whatever does this)?
Goto page Previous  1, 2, 3 ... 10, 11, 12, 13  Next Display posts from previous:    Page 11 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