1

How can I find/compile/install the CIFS filesystem for a DLINK DNS-323 box?

Updated: for added clarity: the CIFS module is nowhere to be found. Firstly, I need an indication as to how I can procure this module and secondly how to compile & install the said module on my DNS-323.

Updated2: I am running firmware version 1.07.

6
  • is there some reason none of the options i presented in my Oct 13th answer will work for you? Nov 27, 2009 at 21:06
  • @~quack: because all the material you have provided does not lead me to resolving my situation.
    – jldupont
    Nov 28, 2009 at 21:38
  • ah. it might be helpful if you indicated what firmware your DNS-323 currently uses. Nov 28, 2009 at 22:15
  • added some details for you. g'luck! Nov 30, 2009 at 1:40
  • i appreciate the points, but you could've just left it open. if the timer expires and no post has been voted up (minimum 2 pts, i believe), the bounty would expire and no answer would be auto-selected (leaving the question open for more answers). Dec 2, 2009 at 11:43

1 Answer 1

1
+100

So the question is "how do I enable CIFS/mount these remote CIFS shares on my DNS-323", and the device is running a micro-linux system.

Here's a basic primer on using CIFS in general Unix clients. CIFS is included in the linux kernel as a driver, and can be built as a module or compiled into the kernel itself.

You can try finding or compiling a module for your existing kernel, or building your own kernel to install by reflashing the device. The first is much safer, so I'd try that unless you're experienced at this sort of thing.

  • Here's one forum post discussing module compilation for that device; it links to a directory of prebuild modules. The one you want depends on your firmware, but there is a CIFS module for the 1.03 firmware. You also want the SMBFS module as a fallback (it's an older driver and may work if the CIFS driver fails).

  • Here's how to put together a cross-compiling environment for recompiling the kernel and building your own modules. If you can't find modules built for your firmware version, this is the next-easiest route to take.

  • Here's some material on replacing the stock firmware with your own Debian-based system. This is the one that can brick your device if you aren't careful, so if CIFS is all you need, try the module approach first.


Update: There's some indication that modules compiled for firmware 1.03 will work with firmware 1.07. I linked to the firmware 1.03 module earlier.

In fact, this thread includes CIFS modules compiled against the 1.06 firmware, so those modules are probably preferable. Another thread specifically states the cifs.1.50.ko module (direct link) works with the 1.07 firmware.

Here's the process:

# insert the module you've downloaded and copied to an accessible filesystem
insmod /path/to/cifs.1.50.ko

# make your mountpoint
mkdir /mnt/sharename

# mount -- use /bin/mount for detailed messages
/bin/mount -t cifs //server/sharename /mnt/sharename -o username=username,password=password

This assumes an already-working telnet or SSH interface, such as that provided by the Fonz Fun Plug scripts.

If this works, you'll need to modify your startup scripts to insert the module at boot time. You can then add the mount to /etc/fstab if you want them to always be automatically mounted.

1
  • @~quack: I've already tried all of this to no avail. I'll accept your answer for your efforts. See you around!
    – jldupont
    Dec 2, 2009 at 11:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .