Mount NAS Drive on DM500+

vasila

Member
Joined
Dec 12, 2006
Messages
23
Reaction score
0
Points
0
Age
47
My Satellite Setup
Illusion M3
My Location
Portugal
Hello,



Using a PC i can mount a folder. However if i use a NAS drive running a samba server (without user and passwd) i cannot mount the drive!

Can someone help me?
Best regards
 

mhku

Super Moderator
Staff member
Joined
Mar 8, 2005
Messages
4,712
Reaction score
20
Points
38
My Satellite Setup
TM Nano ~ sg2100
My Location
Midlands

vasila

Member
Joined
Dec 12, 2006
Messages
23
Reaction score
0
Points
0
Age
47
My Satellite Setup
Illusion M3
My Location
Portugal
Hello,


I'm using Gemini 4.3.

I already try all that is explained in this post you cite.


I try using telnet session and web interface.


How can i run samba in the dreambox ?
Best regards
 

mhku

Super Moderator
Staff member
Joined
Mar 8, 2005
Messages
4,712
Reaction score
20
Points
38
My Satellite Setup
TM Nano ~ sg2100
My Location
Midlands
Try this:

I've resolved my problem in this way....i've edited monut.sh in var/script in this way:

smbmount //192.168.1.100/Dreambox /mnt/hdd/ -o username=root,password=dreambox


after chmod 755 at mount.sh
(from i-have-a-dreambox.com; download samba from _http://www.i-have-a-dreambox.com/wbb2/thread.php?postid=605475#post605475)

There is also a guide in Italian here:

_http://www.dreambox.it/guide_montare_HD_di_rete_con_SAMBA.htm

I don't have NAS so can't test it. Let us know how you get on.

And looking here: _http://wiki.blue-panel.com/index.php/Auto_Mounter

it looks like CIFS = SMB ?
 

vasila

Member
Joined
Dec 12, 2006
Messages
23
Reaction score
0
Points
0
Age
47
My Satellite Setup
Illusion M3
My Location
Portugal
Hello,


Thanks for the helping. The italian tutorial do not work! Fails to mount!!!
Tomorrow i will test smbmount and i will report the results.
Thank you
Best Regards
 

mhku

Super Moderator
Staff member
Joined
Mar 8, 2005
Messages
4,712
Reaction score
20
Points
38
My Satellite Setup
TM Nano ~ sg2100
My Location
Midlands
Did you try mounting the NAS using the web interface and selecting SMBFS as the File System?

Or from the Communication > Mount Manager in the Expert Setup page on the Dreambox?
 

vasila

Member
Joined
Dec 12, 2006
Messages
23
Reaction score
0
Points
0
Age
47
My Satellite Setup
Illusion M3
My Location
Portugal
Thank you....
This command works great:
smbmount //192.168.1.100/Dreambox /mnt/hdd/ -o username=root,password=dreambox

And, two more questions....:
How to mount at Dreambox startup ?
How to umount the drive (using umount, the drive is umounted, but /mnt/hdd becomes inacessible: Input/Output error)
Thank you
 

mhku

Super Moderator
Staff member
Joined
Mar 8, 2005
Messages
4,712
Reaction score
20
Points
38
My Satellite Setup
TM Nano ~ sg2100
My Location
Midlands
In the Mount Manager there is an "Automount" tickbox (click the blue button on the NAS mount page in Expert Setup). There is a red button to unmount.

Sorry if that's a bit unclear - it'll make more sense when you look at the page :)
 

vasila

Member
Joined
Dec 12, 2006
Messages
23
Reaction score
0
Points
0
Age
47
My Satellite Setup
Illusion M3
My Location
Portugal
mhku said:
In the Mount Manager there is an "Automount" tickbox (click the blue button on the NAS mount page in Expert Setup). There is a red button to unmount.

Sorry if that's a bit unclear - it'll make more sense when you look at the page :)

Hello,


Thanks for your help.... :-worship:-worship:-worship You are very clear, d'ont worry ;-)
However, using the Mount Manager is not possible to mount the NAS drive.
Just using telnet and smbmount id possible to mount the NAS drive.
Thank you.
Best Regards
 

mhku

Super Moderator
Staff member
Joined
Mar 8, 2005
Messages
4,712
Reaction score
20
Points
38
My Satellite Setup
TM Nano ~ sg2100
My Location
Midlands
Another way would be to add your mount command to shell script that is executed when Enigma is restarted.

For a 500 I believe you can create a file called init and FTP it to /etc (chmod 775)

e.g.

Code:
#!/bin/sh
smbmount //192.168.1.100/Dreambox /mnt/hdd/ -o username=root,password=dreambox

I can't test it as my 500s is not in service at the moment (it's on the floor with the lid off).

This thread may be helpful: http://www.satellites.co.uk/satellite/dreambox-general/122805-add-telnet-command-box-start-up.html
 

mhku

Super Moderator
Staff member
Joined
Mar 8, 2005
Messages
4,712
Reaction score
20
Points
38
My Satellite Setup
TM Nano ~ sg2100
My Location
Midlands
Another way would be to add your mount command to shell script that is executed when Enigma is restarted.

For a 500 you can create a file called init and place it in /etc (chmod 775).

e.g.

Code:
#!/bin/sh
smbmount //192.168.1.100/Dreambox /mnt/hdd/ -o username=root,password=dreambox

Startup uses /etc/rcS.d/S00bootup (or /etc/init.d/bootup) which in turn calls /var/etc/init (if you create it); or just add your mount command to /etc/init.d/bootup.

These files may vary by Dreambox model and image.

I can't test it as my 500s is not in service at the moment (it's on the floor with the lid off).

This thread may be helpful: http://www.satellites.co.uk/satellite/dreambox-general/122805-add-telnet-command-box-start-up.html

And if you want to schedule it:

http://www.satellites.co.uk/satellite/dreambox-general/97763-using-cron-auto-update.html

And some general info: _http://www.net42.co.uk/satellite/dreambox-hints.html
 

Nitrocrzy

Member
Joined
Jul 28, 2007
Messages
9
Reaction score
0
Points
0
Age
53
My Satellite Setup
DM500S
Connected to MAC's via NFS.
My Location
SA
I am still having issues mounting my NAS disk.... The version engima I'm running seems to be slightly different. The two things I have tried are:

root@dreambox:~> smbmount //10.2.2.65/movies /mnt/hdd/ -o username=root,password=dreambox
XXXXXXXXX: invalid option -- o
Usage: smbmount service <password> [-p port] [-d debuglevel] [-l log]
Version 1.9.18p8
-p port connect to the specified port
-d debuglevel set the debuglevel
-l log basename. Basename for log/debug files
-n netbios name. Use this name as my netbios name
-N don't ask for a password
-m max protocol set the max protocol level
-I dest IP use this IP to connect to
-E write messages to stderr instead of stdout
-U username set the network username
-W workgroup set the workgroup name
-c command string execute semicolon separated commands
-t terminal code terminal i/o code {sjis|euc|jis7|jis8|junet|hex}
-D directory start from directory

root@dreambox:~> smbmount //10.2.2.65/movies /mnt/hdd/ -N Added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
security=share
smb: \>


Any Ideas?
 

mhku

Super Moderator
Staff member
Joined
Mar 8, 2005
Messages
4,712
Reaction score
20
Points
38
My Satellite Setup
TM Nano ~ sg2100
My Location
Midlands
So the first command line gives and error and the second doesn't?

Why are you using 127.0.0.1 ?
 

Nitrocrzy

Member
Joined
Jul 28, 2007
Messages
9
Reaction score
0
Points
0
Age
53
My Satellite Setup
DM500S
Connected to MAC's via NFS.
My Location
SA
neither works.... that's what the command returned without specifying the -0 user option which does not fit the correct syntax as shown by the error above. I have tried mounting a few different ways but nothing is working. Before I had my image updated I could mount from the web interface using smbfs but that isn't working since the update. I can't be the only one struggling with mounting on a NAS disk.

root@dreambox:~> ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:09:34:23:08:5E
inet addr:10.2.2.104 Bcast:10.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:78931 errors:0 dropped:0 overruns:0 frame:0
TX packets:26592 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12386579 (11.8 Mi:cool: TX bytes:2437231 (2.3 Mi:cool:
Interrupt:25 Base address:0x600

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:134 errors:0 dropped:0 overruns:0 frame:0
TX packets:134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15517 (15.1 Ki:cool: TX bytes:15517 (15.1 Ki:cool:

root@dreambox:~>
 

Nitrocrzy

Member
Joined
Jul 28, 2007
Messages
9
Reaction score
0
Points
0
Age
53
My Satellite Setup
DM500S
Connected to MAC's via NFS.
My Location
SA
got it working by accident....

root@dreambox:~> smbmount //reb_disk/movies /mnt/hdd
Added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
startlmhosts: Can't open lmhosts file /lib/lmhosts. Error was No such file or directory
security=share
smb: \> mount /hdd
root@dreambox:~> df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3968 3968 0 100% /
/dev/mtdblock/1 2816 1532 1284 54% /var
//REB_DISK/MOVIES 292945920 98304 292847616 0% /var/mnt/hdd
root@dreambox:~>


Now to get it to auto mount each time....
 

mhku

Super Moderator
Staff member
Joined
Mar 8, 2005
Messages
4,712
Reaction score
20
Points
38
My Satellite Setup
TM Nano ~ sg2100
My Location
Midlands

Nitrocrzy

Member
Joined
Jul 28, 2007
Messages
9
Reaction score
0
Points
0
Age
53
My Satellite Setup
DM500S
Connected to MAC's via NFS.
My Location
SA
mhku said:
Are you running Samba as a service?

Is the command line that worked?



smbmount //reb_disk/movies /mnt/hdd


If you'd like to help other members can you dissect it a bit more (and also if posting elsewhere explain what you did - what you typed and what the response was; http://www.satellites.co.uk/satellite/dreambox500/58506-some-help-mounting.html#post766070).

You don't have to but it helps.

I would like to know how/why this method works. Once I was able to mount it, then I can actually use the webserver to manage/mount it again. It's very strange and doesn't fit with what I found in forums.
Quite litterally I stumbled on the fix by typing various things trying to get out of the smb: \> when I tried initially mounting.

To mount I'm doing the command from an ssh session which leaves me with an smb:/ > prompt:

root@dreambox:~> smbmount //reb_disk/movies /mnt/hdd
Added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
startlmhosts: Can't open lmhosts file /lib/lmhosts. Error was No such file or directory
security=share
smb: \>


smb: \> mount /hdd
root@dreambox:~> df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3968 3968 0 100% /
/dev/mtdblock/1 2816 1532 1284 54% /var
//REB_DISK/MOVIES 292945920 98304 292847616 0% /var/mnt/hdd
root@dreambox:~>

The NAS disk has a built in SAMBA service along with an FTP server built in.

To get out of and successfully mount I follow up with:
 
Top