Mount NAS Drive on DM500+

Dreambox information exchange on the best dreambox software images and help with all other operational problems with your Dreambox. The ultimate Dreambox satellite TV support forum.


Reply
 
LinkBack Thread Tools Display Modes
Old 07-04-2008   #1
Member
 
Join Date: 12-12-2006
Location: Portugal
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts

My System: Illusion M3
Mount NAS Drive on DM500+

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
vasila is offline   Reply With Quote
Old 07-04-2008   #2
Super Moderator
 
mhku's Avatar
 
Join Date: 08-03-2005
Location: J6 M5
Posts: 4540
Thanks: 11
Thanked 180 Times in 169 Posts
Blog Entries: 1

My System: DM7020S ~ DM500s ~ sg2100 ~ Gemini


If he were not a wizard, from head down to the root, you would have got to worry-your DB only boots

How are you trying to mount it? Are you running samba on the Dreambox?

Have you tried mounting it from a web interface?

This post may be of interest although it seems unresolved:

Unable to mount CIFS share - Not a directory

What image are you using? Please update your system profile.


You don't stop playing because you get old, you get old because you stop playing. Regras
Before posting in the Dreambox section please ensure you've read The Guide


Information is for educational purposes only

mhku is offline   Reply With Quote
Old 07-04-2008   #3
Member
 
Join Date: 12-12-2006
Location: Portugal
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts

My System: Illusion M3

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
vasila is offline   Reply With Quote
Old 07-04-2008   #4
Super Moderator
 
mhku's Avatar
 
Join Date: 08-03-2005
Location: J6 M5
Posts: 4540
Thanks: 11
Thanked 180 Times in 169 Posts
Blog Entries: 1

My System: DM7020S ~ DM500s ~ sg2100 ~ Gemini


If he were not a wizard, from head down to the root, you would have got to worry-your DB only boots

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 ?


You don't stop playing because you get old, you get old because you stop playing. Regras
Before posting in the Dreambox section please ensure you've read The Guide


Information is for educational purposes only


Last edited by mhku; 07-04-2008 at 11:39 PM.
mhku is offline   Reply With Quote
Old 09-04-2008   #5
Member
 
Join Date: 12-12-2006
Location: Portugal
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts

My System: Illusion M3

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
vasila is offline   Reply With Quote
Old 10-04-2008   #6
Super Moderator
 
mhku's Avatar
 
Join Date: 08-03-2005
Location: J6 M5
Posts: 4540
Thanks: 11
Thanked 180 Times in 169 Posts
Blog Entries: 1

My System: DM7020S ~ DM500s ~ sg2100 ~ Gemini


If he were not a wizard, from head down to the root, you would have got to worry-your DB only boots

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?


You don't stop playing because you get old, you get old because you stop playing. Regras
Before posting in the Dreambox section please ensure you've read The Guide


Information is for educational purposes only

mhku is offline   Reply With Quote
Old 21-04-2008   #7
Member
 
Join Date: 12-12-2006
Location: Portugal
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts

My System: Illusion M3

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

Last edited by vasila; 22-04-2008 at 12:02 AM.
vasila is offline   Reply With Quote
Old 22-04-2008   #8
Super Moderator
 
mhku's Avatar
 
Join Date: 08-03-2005
Location: J6 M5
Posts: 4540
Thanks: 11
Thanked 180 Times in 169 Posts
Blog Entries: 1

My System: DM7020S ~ DM500s ~ sg2100 ~ Gemini


If he were not a wizard, from head down to the root, you would have got to worry-your DB only boots

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


You don't stop playing because you get old, you get old because you stop playing. Regras
Before posting in the Dreambox section please ensure you've read The Guide


Information is for educational purposes only

mhku is offline   Reply With Quote
Old 22-04-2008   #9
Member
 
Join Date: 12-12-2006
Location: Portugal
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts

My System: Illusion M3

Originally Posted by mhku View Post
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.... 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
vasila is offline   Reply With Quote
Old 22-04-2008   #10
Super Moderator
 
mhku's Avatar
 
Join Date: 08-03-2005
Location: J6 M5
Posts: 4540
Thanks: 11
Thanked 180 Times in 169 Posts
Blog Entries: 1

My System: DM7020S ~ DM500s ~ sg2100 ~ Gemini


If he were not a wizard, from head down to the root, you would have got to worry-your DB only boots

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: Add Telnet Command To Box Start Up


You don't stop playing because you get old, you get old because you stop playing. Regras
Before posting in the Dreambox section please ensure you've read The Guide


Information is for educational purposes only

mhku is offline   Reply With Quote
Old 22-04-2008   #11
Super Moderator
 
mhku's Avatar
 
Join Date: 08-03-2005
Location: J6 M5
Posts: 4540
Thanks: 11
Thanked 180 Times in 169 Posts
Blog Entries: 1

My System: DM7020S ~ DM500s ~ sg2100 ~ Gemini


If he were not a wizard, from head down to the root, you would have got to worry-your DB only boots

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: Add Telnet Command To Box Start Up

And if you want to schedule it:

Using cron to auto Update

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


You don't stop playing because you get old, you get old because you stop playing. Regras
Before posting in the Dreambox section please ensure you've read The Guide


Information is for educational purposes only


Last edited by mhku; 22-04-2008 at 10:39 PM.
mhku is offline   Reply With Quote
Old 01-08-2008   #12
Member
 
Join Date: 28-07-2007
Location: SA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

My System: DM500S Connected to MAC's via NFS.

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?
Nitrocrzy is offline   Reply With Quote
Old 01-08-2008   #13
Super Moderator
 
mhku's Avatar
 
Join Date: 08-03-2005
Location: J6 M5
Posts: 4540
Thanks: 11
Thanked 180 Times in 169 Posts
Blog Entries: 1

My System: DM7020S ~ DM500s ~ sg2100 ~ Gemini


If he were not a wizard, from head down to the root, you would have got to worry-your DB only boots

So the first command line gives and error and the second doesn't?

Why are you using 127.0.0.1 ?


You don't stop playing because you get old, you get old because you stop playing. Regras
Before posting in the Dreambox section please ensure you've read The Guide


Information is for educational purposes only

mhku is offline   Reply With Quote
Old 02-08-2008   #14
Member
 
Join Date: 28-07-2007
Location: SA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

My System: DM500S Connected to MAC's via NFS.

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 MiB) TX bytes:2437231 (2.3 MiB)
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 KiB) TX bytes:15517 (15.1 KiB)

root@dreambox:~>
Nitrocrzy is offline   Reply With Quote
Old 02-08-2008   #15
Member
 
Join Date: 28-07-2007
Location: SA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

My System: DM500S Connected to MAC's via NFS.

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....
Nitrocrzy is offline   Reply With Quote
Old 02-08-2008   #16
Super Moderator
 
mhku's Avatar
 
Join Date: 08-03-2005
Location: J6 M5
Posts: 4540
Thanks: 11
Thanked 180 Times in 169 Posts
Blog Entries: 1

My System: DM7020S ~ DM500s ~ sg2100 ~ Gemini


If he were not a wizard, from head down to the root, you would have got to worry-your DB only boots

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; Some Help on Mounting).

You don't have to but it helps.


You don't stop playing because you get old, you get old because you stop playing. Regras
Before posting in the Dreambox section please ensure you've read The Guide


Information is for educational purposes only

mhku is offline   Reply With Quote
Old 03-08-2008   #17
Member
 
Join Date: 28-07-2007
Location: SA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

My System: DM500S Connected to MAC's via NFS.

Originally Posted by mhku View Post
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; Some Help on Mounting).

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:
Nitrocrzy is offline   Reply With Quote
Reply

Bookmarks

Tags
dm500, drive, mount, nas


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off







All times are GMT +1. The time now is 12:43 PM.


All views and information expressed in users' communications and profiles represent the opinions of the users concerned and do not represent the views of Satellites.co.uk. All images and news content are believed to be in the public domain, except where otherwise stated. Forum software by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Content Relevant URLs by vBSEO 3.3.1