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-04-23 03:29:37

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

mount -t cifs just don't work!

I would like to mount a Windows Shared drive, so I use this command, but it just don't work at all.

Code:

root@nashawa:/mnt/HD_a2# insmod cifs.ko
root@nashawa:/mnt/HD_a2# mkdir /mnt/HD_a2/m1201
/mnt/HD_a2# mount -t cifs -o username=xxxx,password=xxxxx //192.168.1.101/usb2_d1p1 /mnt/HD_a2/m1201

mount: mounting \\192.168.1.101\usb2_d1p1 on /mnt/HD_a2/m1201 failed: Not a directory
root@nashawa:/mnt/HD_a2#

if I removed the -o option, the output will give the help/manual for mount with all the available option.

My try to mount using -t smbfs also still doesn't work.

The only method that work is only using smbclient '\\server\share' but I found the function is too limited.

Offline

 

#2 2009-04-23 13:30:00

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

Re: mount -t cifs just don't work!

I tried your procedure (same share name, dirname, etc) and got a different error: "mount: Resource temporarily unavailable". When I moved the mount point to /mnt/m1201 it worked fine.

But then when I reran some experiments on /mnt/HD_a2 again they worked. I'm not sure what cause the variability; you might try different mount points, checking directory permissions, check dmesg for any cifs errors, make sure you use /bin/mount to get the best possible error messages, etc.

I'm sure it can be made to work; but I can't guess what specifically is going on in your situation.

-Jeff

Offline

 

#3 2009-04-23 13:41:41

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: mount -t cifs just don't work!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB