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 2008-12-11 05:35:40

zxsix
Member
Registered: 2008-12-10
Posts: 7

sybmolic links to windows shares?

I can map drive letters and create symbolic links on my windows pc that point to folders on the the DNS-343 just fine.
I would also like to be able to go the other direction.

On the nas is /mnt/HD_a2/music/
On windows pc is D:\movies  (which can be accessed over the network via UNC as \\server1\movies

I would like to create a symbolic link on the nas that links to D:\movies on the pc, like this:
/mnt/HD_a2/movies

This way the UPNP server on the nas could also serve the movie files from the PC when a UPNP appliance connects to it.
Doable in a way that could be put in a script in /ffp/start and it would create the symbolic link upon booting?


I found this page: http://cri.ch/linux/docs/sk0001.html
the smbclient -L command does in fact display all the shares on the windows box.
However, when I do the mount command, I get a mounting //server1/movies on /mnt/movies failed: No such device

Last edited by zxsix (2008-12-11 06:01:49)

Offline

 

#2 2008-12-12 00:49:48

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: sybmolic links to windows shares?

Code:

cat /proc/filesystems

Try this.  On the DNS-323, smbfs is not supported, I would guess it is also not supported on the DNS-343.  Without it, you cannot mount a samba share with the unit.

Last edited by bq041 (2008-12-12 00:50:38)


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#3 2008-12-12 01:50:57

zxsix
Member
Registered: 2008-12-10
Posts: 7

Re: sybmolic links to windows shares?

You are correct.  It's not there.  Any way I can add it?  I'm comfortable installing packages, but not confortable replacing the original firmware with a completely different debian linux build.


/ # cat /proc/filesystems
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   usbfs
nodev   pipefs
nodev   futexfs
nodev   tmpfs
nodev   eventpollfs
nodev   devpts
        ext3
        ext2
        cramfs
nodev   ramfs
        minix
        msdos
        vfat
nodev   nfs
nodev   rpc_pipefs

Offline

 

#4 2008-12-14 19:17:40

FriscoBill
Member
Registered: 2007-06-25
Posts: 6

Re: sybmolic links to windows shares?

I have just been able to add this on my DNS-323.  I don't have all the scripts worked out yet, but the flow is like this.

I use ffp 0.5.

I built smbfs.ko kernel module from the dlink sources on a vmplayer ubuntu workstation.

you do an insmod smbfs.ko to load the filesystem.

Then I built smbmount and smbmnt from samba 3.0.33 on the dns-323.  You cannot use the 3.2.x package because smbfs is no longer supported.  cifs is what is used and it is broken in this kernel version.

I had to install the perl packages so I could run the autogen.sh to generate the configure scripts.

The you configure samba-3.0.33 as follows:

./configure        --prefix=/ffp \
                --with-smbmount \
                --with-cifsmount \
                --exec-prefix=/ffp \
                --with-fhs \
                --with-piddir=/ffp/var/run \
                --localstatedir=/ffp/var \
                --with-libiconv=/ffp \
                --sysconfdir=/ffp/etc

The you build smbmount and smbmnt

make bin/smbmount
make bin/smbmnt

copy those to /ffp/bin/

then you can mount your server with:

smbmount //server/share /mnt/xxx -o username=xxx,password=yyy

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB