Unable to mount CIFS share - Not a directory

idiotSavant

Member
Joined
Aug 11, 2006
Messages
9
Reaction score
0
Points
0
Age
96
My Satellite Setup
dm500 Gemini 3
My Location
Oxfordshireshire
Firstly, apologies if you've seen this posted on another forum - I'm desperate!

I'm trying to mount a drive that works perfectly well when attaching from a PC or laptop.

In an attempt to get it working, I haven't set a password. It's a NAS box which has no way to set a user, although looking at ways of setting up CIFS, it shouldn't pose a problem.

The syntax I have tried is:

mount -t cifs //192.168.1.252/dreambox /hdd -o user=db,password=db

- this works fine mounting PC and laptop drives to the dreambox, but returns "mount: Mounting //192.168.1.252/dreambox on /hdd failed: Not a directory" when attempting the NAS box.

After a bit of searching, I discovered the smbmount command. Typing:

smbmount //192.168.1.252/dreambox -I 192.168.1.252 -N

then "mount /hdd" at the "smb: \>" prompt mounts the drive, as the mount command shows:
//192.168.1.252/DREAMBOX on /var/mnt/hdd type smbfs (rw,nodiratime,file_mode=0755,dir_mode=0755)

I've tried mounting //192.168.1.252/DREAMBOX as well - this also gives the "Not a directory" error (I guess that the capitalisation is a FAT32 thing).

Any ideas, or do I need to script the smbmount command ?


If anyone is interested, it's from Maplins. The first box I got didn't work, which is a common problem.
The box works OK when mounted - record and playback with little or no stutter, although the dreambox refuses to record some channels - I think that this may be related to the names that the box gives the recordings.
But for 35 quid + disk I really can't complain.
 

nezbit

Regular Member
Joined
Aug 24, 2004
Messages
64
Reaction score
0
Points
0
Age
51
My Satellite Setup
DM5620-S Gemini 3.10, 80cm Dish on Moteck SG2100A, MRev2.25, Sky+, Sagem dBox2, DM500c Neutrino dPlus V2.01
My Location
Manchester
I bought the same box and have had a similar problem with my 5620.Trying to mount drive via the remote didn't work at all, but the mount manager section on the web interface does the trick (mount as SMBFS).
 

picc2001

Member
Joined
Jul 26, 2006
Messages
21
Reaction score
0
Points
0
Age
64
My Satellite Setup
DM7020
My Location
XIRILANKA
Hi,

Same problem.

NAS BOX = Conceptronic CHD3LAN (tried with different versions of firmware... using now = nasdisk v46+boot v0.70 = BASIC 46, boot 70)

Dreambox = 7020, Gemini 2.8

If: NAS directory without password...
=> mount -t cifs //192.168.x.y/PUBLIC /media/PUBLIC -o user=PUBLIC

mount: Mounting //192.168.x.y/PUBLIC on /media/PUBLIC failed: Not a directory

Questions:
user = NAME OF THE FOLDER at the NAS BOX? (it worked in this way from Linux)

Using Dreambox Web interface = don't mount (config -> Mount Manager)

I can mount a directory that exist at my PC (XP) on the Dreambox...
I can access the NAS directory from windows (XP)...
I can access the NAS directory form a LINUX PC (fedora)...

The only thing I cannot do is: mount the NAS directory from the DreamBox...

If some one did it... HOW?

Which version of NAS firmware?
Which Image at the DreamBox? 7000 or 7020?
Which parameters (using Web interface or mount command...)?

Thank you in advance for your help...

Regards,
Picc2001
 

OldBen

Mad Scientist
Joined
Jul 29, 2005
Messages
249
Reaction score
4
Points
18
Age
47
My Satellite Setup
Triax TD110 with multi LNB 28.5E, 23.5E, 19E, 13E Inverto Black Ultra's (Black Premium on 28.5) into multiswitch. VU+ Duo. Emitor Satlook Lite meter.(Retired: Technomate 1500CI+, Moteck DG2100 DisEqC Motor, Metronic 85cm Clear Dish, Invacom 0.3db LNB
My Location
UK
This is not a straight answer but maybe a pointer in the right direction?

"mount: Mounting //192.168.1.252/dreambox on /hdd failed: Not a directory" when attempting the NAS box"

The last time I got the error "Not a directory" I had a typo in the directory that I was SHARING, i.e. mistake on the NAS box.

Is there anyway you can check the NAS box config? Is it a closed system or can you telnet/ssh into it? Does it use linux? if so check the /etc/smb.conf file on the NAS box to see if it has the path you are trying to share correctly configured.
 

picc2001

Member
Joined
Jul 26, 2006
Messages
21
Reaction score
0
Points
0
Age
64
My Satellite Setup
DM7020
My Location
XIRILANKA
Hi,

=> NAS BOX = Conceptronic CHD3LAN

It uses a firmware (propietary)... not linux.

The firmware is used for several NAS Boxes (NAS BASIC xxx)

See: http://www.station-drivers.com/page/landisk.htm

I am +/- sure that the "directory to share" is the name I should use every where... only allows you to define a password x directory to share...

I spend some hours trying different combinations... user = test, pass = test... user = guest, pass = guest ... not a password... the problem with Windows and Linux is that you can "mount" the files so esay (all graphicall) that you don't knowk which parameters you are using...

Regards,
Picc
 

idiotSavant

Member
Joined
Aug 11, 2006
Messages
9
Reaction score
0
Points
0
Age
96
My Satellite Setup
dm500 Gemini 3
My Location
Oxfordshireshire
Hi OldBen, I can mount the drive through DOS or SMBFS, so the name must be correct.

I've created a rather messy work-around - a file called smb.cmd containing two lines:
mount /hdd

(the second is blank, I just wanted to be sure that a carriage return was sent), then running the following from the command line:

smbmount //192.168.1.252/dreambox -I 192.168.1.252 -N < smb.cmd

There's got to be a better way !

The Enigma interface looks promising, but I cannot test whether the automount function works at the moment - SWMBO is using the box...
 

picc2001

Member
Joined
Jul 26, 2006
Messages
21
Reaction score
0
Points
0
Age
64
My Satellite Setup
DM7020
My Location
XIRILANKA
Hi i..Savant,

Did you success with your test?

My NAS Box is = 192.168.0.10 (I can ping it)

Question... I'm trying to test: "smbmount //192.168.0.10/PUBLIC -I 192.168.0.10 -N" ...

but I receive the following error message =
root*dm7020:/media# smbmount //192.168.0.10/media/PUBLIC -I 192.168.0.1 -N
Unknown parameter encountered: "client code page"
Ignoring unknown parameter "client code page"
Unknown parameter encountered: "character set"
Ignoring unknown parameter "character set"
creating lame upcase table
creating lame lowcase table
-I: invalid option -- N
Could not resolve mount point -I
root*dm7020:/media#

What is wrong?

Regards, Picc2001

DM7020, Gemini 2.8
 

idiotSavant

Member
Joined
Aug 11, 2006
Messages
9
Reaction score
0
Points
0
Age
96
My Satellite Setup
dm500 Gemini 3
My Location
Oxfordshireshire
All I can suggest for your problem is to check whether you have the latest firmware - http://www.station-drivers.com/page/landisk.htm seems a good place, althogh popup blocker gave me a warning.

I've decided not to rock the boat testing a reboot as I am having difficulties with channels occasionally disappearing (I think that the dish has wandered a little in the last couple of months).

The fix that I now have is via two files - both in /var/script...

1. smb.cmd :
mount /hdd

2. mount_nas_userscript.sh :

#!/bin/sh
# see if hdd is already mounted:
export NASDISK=`mount | grep -c hdd`
if [ $NASDISK -gt 0 ]
then
echo unmounting /hdd
umount /hdd
fi

echo mounting hdd...
smbmount //192.168.1.252/dreambox -I 192.168.1.252 -N < /var/script/smb.cmd
echo ...complete

mount | grep hdd


Don't forget to chmod +x mount_nas_userscript.sh
Then the drive can be mounted via Blue Button -> System Info -> User Script
 

OldBen

Mad Scientist
Joined
Jul 29, 2005
Messages
249
Reaction score
4
Points
18
Age
47
My Satellite Setup
Triax TD110 with multi LNB 28.5E, 23.5E, 19E, 13E Inverto Black Ultra's (Black Premium on 28.5) into multiswitch. VU+ Duo. Emitor Satlook Lite meter.(Retired: Technomate 1500CI+, Moteck DG2100 DisEqC Motor, Metronic 85cm Clear Dish, Invacom 0.3db LNB
My Location
UK
in w
idiotSavant said:
Hi OldBen, I can mount the drive through DOS or SMBFS, so the name must be correct.

I've created a rather messy work-around - a file called smb.cmd containing two lines:
mount /hdd

(the second is blank, I just wanted to be sure that a carriage return was sent), then running the following from the command line:

smbmount //192.168.1.252/dreambox -I 192.168.1.252 -N < smb.cmd

There's got to be a better way !

The Enigma interface looks promising, but I cannot test whether the automount function works at the moment - SWMBO is using the box...

That sound just plain weird!

So if you send the newline it works, if you don't it does'nt work?

I dont (yet) have a dreambox so I am struggling a little here on how the automount is supposed to work, if you can /etc/fstab is the share listed in there?

Paul
 

OldBen

Mad Scientist
Joined
Jul 29, 2005
Messages
249
Reaction score
4
Points
18
Age
47
My Satellite Setup
Triax TD110 with multi LNB 28.5E, 23.5E, 19E, 13E Inverto Black Ultra's (Black Premium on 28.5) into multiswitch. VU+ Duo. Emitor Satlook Lite meter.(Retired: Technomate 1500CI+, Moteck DG2100 DisEqC Motor, Metronic 85cm Clear Dish, Invacom 0.3db LNB
My Location
UK
picc2001 said:
Question... I'm trying to test: "smbmount //192.168.0.10/PUBLIC -I 192.168.0.10 -N" ...

but I receive the following error message =
root*dm7020:/media# smbmount //192.168.0.10/media/PUBLIC -I 192.168.0.1 -N
Unknown parameter encountered: "client code page"
Ignoring unknown parameter "client code page"
Unknown parameter encountered: "character set"
Ignoring unknown parameter "character set"
creating lame upcase table
creating lame lowcase table
-I: invalid option -- N
Could not resolve mount point -I
root*dm7020:/media#

What is wrong?

Regards, Picc2001

DM7020, Gemini 2.8

Picc2001, what happens if you leave of -N? smbmount should default to the guest acount, I am wondering if -N is triggering a response thats not understood.

Also, can you run smbclient -V to see what version you have?

Paul
 

idiotSavant

Member
Joined
Aug 11, 2006
Messages
9
Reaction score
0
Points
0
Age
96
My Satellite Setup
dm500 Gemini 3
My Location
Oxfordshireshire
OldBen said:
That sound just plain weird!

So if you send the newline it works, if you don't it does'nt work?

I dont (yet) have a dreambox so I am struggling a little here on how the automount is supposed to work, if you can /etc/fstab is the share listed in there?

Paul

Hi Paul,

it works if I don't have a newline, but it prints out an additional "smb: \> " prompt which looks scruffy when it appears on the TV.

Just a question of personal taste.

Cheers,
Ed
 

OldBen

Mad Scientist
Joined
Jul 29, 2005
Messages
249
Reaction score
4
Points
18
Age
47
My Satellite Setup
Triax TD110 with multi LNB 28.5E, 23.5E, 19E, 13E Inverto Black Ultra's (Black Premium on 28.5) into multiswitch. VU+ Duo. Emitor Satlook Lite meter.(Retired: Technomate 1500CI+, Moteck DG2100 DisEqC Motor, Metronic 85cm Clear Dish, Invacom 0.3db LNB
My Location
UK
idiotSavant said:
Hi Paul,

it works if I don't have a newline, but it prints out an additional "smb: \> " prompt which looks scruffy when it appears on the TV.

Just a question of personal taste.

Cheers,
Ed

Weird.

If I can find a good price on a 500s I will be joining the club soon and see for myself!

Paul
 

picc2001

Member
Joined
Jul 26, 2006
Messages
21
Reaction score
0
Points
0
Age
64
My Satellite Setup
DM7020
My Location
XIRILANKA
OldBen said:
Picc2001, what happens if you leave of -N? smbmount should default to the guest acount, I am wondering if -N is triggering a response thats not understood.

Also, can you run smbclient -V to see what version you have?

Paul

sorry for the delay... will try tonight.. and post the version of smbclient...

Picc2001.
 

picc2001

Member
Joined
Jul 26, 2006
Messages
21
Reaction score
0
Points
0
Age
64
My Satellite Setup
DM7020
My Location
XIRILANKA
Just some update:

- Did some extra test "mounting" the NAS Disk from another linux PC (fedora).

=> CISF don't work... looks like the problem comes from the NAS disk.

=> SMB OK.

My problem now => SMB don't work from Dreambox.... looks like SMB is not supported by Dreambox... (Dreambox 7020, Gemini 2.8)...

Did some one success mounting a disk (NAS) from the dreambox (using SM:cool:?
Which image? How?

Thanks.....

Picc2001
 

machura

Member
Joined
Mar 1, 2007
Messages
1
Reaction score
0
Points
0
Age
64
My Satellite Setup
DM7020
My Location
Europe
NAS CIFS works. Problem is the main in DM7020 linux. There is old kernel 2.6.9 :-(

when You want mount passwordless directory, use at first (may be added to some script to run always after booting):

echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled

=> mount cifs will be works:

mount -t cifs -o user=a,password= //NAS_IP/NASdirectory /mnt/dream_nas

But when You want mount passworded directory, there is problem:

You got :mount - permission denied (are you root?).

When I try it from Knoppix with kernel 2.6.19, there must be set "echo 0 > ..." too, but then works all well. smb from knoppix works well too (echo 0 > ... is not needed for smb)
 

picc2001

Member
Joined
Jul 26, 2006
Messages
21
Reaction score
0
Points
0
Age
64
My Satellite Setup
DM7020
My Location
XIRILANKA
Hi machura,

I agree with you... it's necessary to
echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled

I tried it…
echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
mount -t cifs //192.168.0.xx/test/media/test -o user=guest,iocharset=utf8,file_mode=0777,dir_mode=0777,rw

and the result is a very unstable… some times works… but after some tests its freezes…

I still thinking that smb is the (stable) solution…

Will see if I can find some time to do more test.

Regards,
Picc2001
 

kitoog

Regular Member
Joined
Oct 3, 2005
Messages
77
Reaction score
0
Points
6
Age
47
My Satellite Setup
dreambox 7000s w/160 Gb hdd
superjack dg120 diseqc motor
lidl 80cm dish and lnb
My Location
ireland
i have the same type of nas-basic landisk and i can mount it with smbfs to 500s no problem with gemini 3.4 through webif. but on some channels when i try to record i get the following error (as below) "record failed due to an write error during recording. check file system for corruption" .i tried it with two different hdd,two landrives and two 500s ,but same problem :eek: . the odd channel will record fine but most give same error after an hour or so. i am nearly sure i got cifs mount to work with some image but i cannot repeat it . anyone ever get the same error as me or know can it be fixed.
 

picc2001

Member
Joined
Jul 26, 2006
Messages
21
Reaction score
0
Points
0
Age
64
My Satellite Setup
DM7020
My Location
XIRILANKA
kitoog said:
i have the same type of nas-basic landisk and i can mount it with smbfs to 500s no problem with gemini 3.4 through webif. ... anyone ever get the same error as me or know can it be fixed.

Question:

Did you install extra software to support smbfs with gemini 3.4?

Regards,
Picc
DM7020, gemini 3.4
 

kitoog

Regular Member
Joined
Oct 3, 2005
Messages
77
Reaction score
0
Points
6
Age
47
My Satellite Setup
dreambox 7000s w/160 Gb hdd
superjack dg120 diseqc motor
lidl 80cm dish and lnb
My Location
ireland
did not install any smbfs extra software, can get fresh image to mount to my landrive fine. can only get smbfs to mount through webif with gemini images for some reason. was gonna get a linkstation pro landrive which has nfs support as well as smb. probably not worth using with a 500s as the recording will be bad due tothe 500s network problems.
 

meltyblood

Member
Joined
Jun 28, 2007
Messages
3
Reaction score
0
Points
0
Age
40
My Satellite Setup
Hell in a basket, Europe under Blair's fingernails
My Location
Fourletters
Try entering this:

echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled

then mount with CIFS. It worked on my OpenWrt router.
 
Top