DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-08-06 20:47:34

jldupont
Member
Registered: 2009-08-06
Posts: 14

mount -t smbfs on DNS-323

Hi,

I would like to mount a Windows shared drive on my DNS-323 i.e.
   mount -t smbfs //some-windows-host/some-path  /path-on-my-dns-323

I've got funplug & telnet installed on the device.

Any help appreciated!  Thanks!

Offline

 

#2 2009-08-07 03:28:00

modeng
Member
Registered: 2007-12-14
Posts: 9

Re: mount -t smbfs on DNS-323

Try a test mount  (where xx and yy are valid for your win32 box):

# mount -t cifs //win32host/path /mountpoint -o username=xx,password=yy

It will default to rw, so you can leave that out of the options.

If this works, good.  Unmount it (umount //win32host/path) and setup to mount at boot by:

1.  Create a "credentials" file with the following two lines:

username=xx
password=yy

Save the file in /etc as root (which you will be if you telnet'd in as admin--check with whoami) and set the permissions so only root has rw access.  This may be overkill security-wise, but good practice.

2.  Add an entry to the /etc/fstab file as a new line:

//win32host/path /mountpoint  cifs credentials=/etc/credfilename 0 0

3.  Remount it:

# mount -a

Check the mount has worked (again).  If so, it will mount at boot, provided the win32 box is alive at the time.

If the trial mount does not work, have a look at the log using dmesg.  The most likely cause will be a version incompatibility.

Note "smbfs" has been depricated for some time though some systems still recognize it. The modern name is cifs (Common Internet File System)

Hope this helps.

Last edited by modeng (2009-08-07 03:30:51)

Offline

 

#3 2009-08-07 03:52:24

jldupont
Member
Registered: 2009-08-06
Posts: 14

Re: mount -t smbfs on DNS-323

Many thanks for the detailed reply!

When I try to mount a valid (i.e. browsable through a Windows box) win32host e.g. nas2 (another DNS-323 box), it fails with " mount: bad address 'nas2' " .
The problem seems to be related to name resolution.  I've got the DNS-323 firmware 1.06 and the only modification I've done so far is to add 'funplug' and enable telnet access.

When I look at the running processes, I don't see winbind... could that be the issue?

Offline

 

#4 2009-08-21 15:07:16

jldupont
Member
Registered: 2009-08-06
Posts: 14

Re: mount -t smbfs on DNS-323

bump!

please help!

Offline

 

#5 2009-08-21 15:23:29

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: mount -t smbfs on DNS-323

Ok - if you have a name resolution problem, how do you fix it?

1) Install a DNS server to handle name resolution
2) Edit the host file - this would have to be done on any/all devices needing to resolve that host name to it's ip address.
3) Use the ip address, rather than the host name - this way name resolution is not required

Offline

 

#6 2009-08-21 15:44:35

jldupont
Member
Registered: 2009-08-06
Posts: 14

Re: mount -t smbfs on DNS-323

@fordem:  thanks for the reply!

I updated my /etc/hosts file to include the binding I was missing... but isn't there a better way than updating the hosts file everytime there is a change?  Isn't this the sort of job for "winbindd" ?  How do we get this daemon up and running on the DNS ?

Offline

 

#7 2009-08-21 15:51:56

jldupont
Member
Registered: 2009-08-06
Posts: 14

Re: mount -t smbfs on DNS-323

I can "ping" the target host as a result of adding a binding in /etc/host  *but* I still can't mount -t smbfs  / mount -t cifs  the target host!
The target host in question is another DNS-323: I want to rsync between the two.

Any help is greatly appreciated!

Offline

 

#8 2009-08-21 19:49:10

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: mount -t smbfs on DNS-323

Well if you can ping the second DNS-323 by host name, you've resolved big_smile the name resolution issue, and you now have a different one - sorry, I can offer no assistance with this new one

Offline

 

#9 2009-08-22 04:51:07

alexccs
New member
Registered: 2009-08-20
Posts: 2

Re: mount -t smbfs on DNS-323

jldupont wrote:

Hi,

I would like to mount a Windows shared drive on my DNS-323 i.e.
   mount -t smbfs //some-windows-host/some-path  /path-on-my-dns-323

I've got funplug & telnet installed on the device.

Any help appreciated!  Thanks!

cat /proc/filesystems and check if you got the filesystem support(smbfs/cifs) installed.
For my own box Dlink FW 1.07+ ffp 0.5, those FS were not installed by default.

Offline

 

#10 2009-08-22 11:22:35

jldupont
Member
Registered: 2009-08-06
Posts: 14

Re: mount -t smbfs on DNS-323

@alexccs  Thanks for the reply.  I have checked /proc/filesystem  and cifs nor smbfs are installed... 

How do I install them??  I have 'googled' like crazy trying to find the answer!!  The closest I have come is a thread on installing Debian Etch on the DNS-323...   Isn't there a way to just install the cifs filesystem ??

Offline

 

#11 2009-08-22 19:41:54

Electrocut
Member
From: France
Registered: 2009-04-05
Posts: 195

Re: mount -t smbfs on DNS-323

If the "cifs.ko" kernel module is available on your device (don't know if it is the case on the DNS-323 ... on my DNS-313, I had to build cifs.ko myself, from kernel source), try:
insmod cifs.ko

then cifs filesystem will be available.

Last edited by Electrocut (2009-08-22 19:45:37)


DNS-313

Offline

 

#12 2009-08-22 20:39:42

jldupont
Member
Registered: 2009-08-06
Posts: 14

Re: mount -t smbfs on DNS-323

@Electrocut:  Thanks for the reply. Much appreciated.

The kernel object 'cifs.ko' cannot be found by 'insmod'.
1) Where would this module be found, normally?
2) Where can the source for cifs be found?

Offline

 

#13 2009-08-22 20:51:58

jldupont
Member
Registered: 2009-08-06
Posts: 14

Re: mount -t smbfs on DNS-323

... or better still, could someone share the <b>cifs.ko</b>  file, please please please?

Offline

 

#14 2009-09-15 07:43:56

jdoering
Member
Registered: 2008-04-10
Posts: 95

Re: mount -t smbfs on DNS-323

A copy compiled against 1.06 sources is included in this thread: http://dns323.kood.org/forum/viewtopic.php?id=4231

Offline

 

#15 2009-09-15 19:58:57

frodo
Member
From: Stockholm, Sweden
Registered: 2007-01-17
Posts: 259

Re: mount -t smbfs on DNS-323

If you want to use rsync why bother mounting over the network? If both boxes have sshd running use ssh instead. Or start rsync as a daemon on one box. It will be faster that stating all files over the network.

Offline

 

#16 2009-09-16 15:30:17

jldupont
Member
Registered: 2009-08-06
Posts: 14

Re: mount -t smbfs on DNS-323

jdoering wrote:

A copy compiled against 1.06 sources is included in this thread: http://dns323.kood.org/forum/viewtopic.php?id=4231

Thanks! 
I did an 'insmod cifs.1.6.ko', rebooted and I still get "mount: unknown filesystem type 'cifs'"
- using mount
- using /bin/mount

Is there a command to verify which modules are present in the kernel?

Any clue?

Offline

 

#17 2009-09-27 12:34:56

Electrocut
Member
From: France
Registered: 2009-04-05
Posts: 195

Re: mount -t smbfs on DNS-323

jldupont wrote:

Is there a command to verify which modules are present in the kernel?

Any clue?

Kernel modules are stored in /lib/modules/[kernel-version] directory ( or /ffp/lib/modules/[kernel-version] for thoses provided by ffp installation).

And to know which kernel modules are actually loaded, there is the command:
lsmod


DNS-313

Offline

 

#18 2009-09-27 13:59:02

jldupont
Member
Registered: 2009-08-06
Posts: 14

Re: mount -t smbfs on DNS-323

Electrocut wrote:

Kernel modules are stored in /lib/modules/[kernel-version] directory ( or /ffp/lib/modules/[kernel-version] for thoses provided by ffp installation).

And to know which kernel modules are actually loaded, there is the command:
lsmod

Here is what I did:
1) I downloaded the cifs.ko module as instructed
2) Moved it to /ffp/modules
3) Did 'insmod cifs.ko'
4) Verified the operation with 'lsmod'  : the module was listed OK
5) Rebooted the DNS-323 unit
6) Did a telnet to it
7) Did an 'lsmod' : the module is *not* listed anymore

It seems as though cifs.ko does not survive a reboot ... annoying.  How do I fix this?

Offline

 

#19 2009-09-27 16:35:29

iazmin
Member
Registered: 2008-09-10
Posts: 55

Re: mount -t smbfs on DNS-323

refer to this thread. It works for me after almost 6 months figuring how to do this. make sure to use the cifs.1.5.0.ko

Last edited by iazmin (2009-09-27 16:36:06)

Offline

 

#20 2009-09-27 16:55:48

jldupont
Member
Registered: 2009-08-06
Posts: 14

Re: mount -t smbfs on DNS-323

iazmin wrote:

refer to this thread. It works for me after almost 6 months figuring how to do this. make sure to use the cifs.1.5.0.ko

On which firmware version?  I guess your are using 1.5

I've tried the same procedure on 1.6 without getting the results you quote... anybody else on 1.6 having the same problems as me??

Offline

 

#21 2009-09-27 19:27:39

iazmin
Member
Registered: 2008-09-10
Posts: 55

Re: mount -t smbfs on DNS-323

jldupont wrote:

iazmin wrote:

refer to this thread. It works for me after almost 6 months figuring how to do this. make sure to use the cifs.1.5.0.ko

On which firmware version?  I guess your are using 1.5

I've tried the same procedure on 1.6 without getting the results you quote... anybody else on 1.6 having the same problems as me??

Yes i am using cifs 1.5.ko and it works? any particular reason why you need to use 1.6?

Offline

 

#22 2009-09-27 23:32:37

jldupont
Member
Registered: 2009-08-06
Posts: 14

Re: mount -t smbfs on DNS-323

iazmin wrote:

Yes i am using cifs 1.5.ko and it works? any particular reason why you need to use 1.6?

I thought 1.6 was required for drives > 1TB... no?

Offline

 

#23 2009-09-28 00:11:35

kennethxu
Member
Registered: 2009-09-18
Posts: 12

Re: mount -t smbfs on DNS-323

jldupont wrote:

iazmin wrote:

Yes i am using cifs 1.5.ko and it works? any particular reason why you need to use 1.6?

I thought 1.6 was required for drives > 1TB... no?

Are you talking about firmware 1.06 instead of 1.6? I'm using firmware 1.07 and that cifs.1.5.ko worked fine for me. As far as I know the all firmware after 1.04 uses same linux kernel so it really doesn't matter what firmware you have.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB