PDA

View Full Version : SMBFS Mounting Plugin - Mount SMBFS, NAS Drives and Linkstation on your DBOX2



Speedy2206
05-12-2006, 01:00 AM
INTRODUCTION
This plugin will add support for NAS drives and SMBFS mounts to an existing DBOX2 image. I have used a copy of an older file I found that I created for the Dreambox 500c, so it is slightly outdated and isnt EXACTLY designed for this purpose, but it works. I will be creating a dedicated version for the DBOX2 if and when it is needed.
COMPATIBILITY
This Samba support package is compatible with kernel version 2.4.33.3-dbox2 only. This means that all JFFS2 images that were built ON or AFTER Wednesday the 13th of September 2006 are compatible with this pack. Images built BEFORE this date should use my other support pack.
I have personally tested this pack to work with the following images:
- Commando 5
- Commando 6
- D.W PRO
- Federation
- UK LCARS
- Dons Specialist
Note that it does not work with the later of any of the Sportster images as they are SQUASHFS and not JFFS2.
INSTALLATION
The files in this package need to be placed in exact locations on your box, and then set to the correct permissions:
1. Under /lib/modules/2.4.33.3-dbox2/kernel/fs, create a new directory called smbfs.
2. Put the smbfs.o file from this package into /lib/modules/2.4.33.3-dbox2/kernel/fs/smbfs.
3. Copy smbmount from this package to /bin. CHMOD the file to 755.
4. Copy smbmnt from this package to /bin. CHMOD the file to 755.
5. Copy smbfs.cfg from this package to /lib/tuxbox/plugins.
6. Copy smbfs.so from this package to /lib/tuxbox/plugins. CHMOD the file to 755.
7. Copy nas_drive.conf from this package to /var/tuxbox/config.
8. Copy smb.conf from this package to /etc and also to /var/etc.
9. Copy libnsl.so.1 from this package to /lib.
Now reboot the box. If you find that the smbmount and smbmnt files already exist in your image then simply overwrite the existing versions, as I can't guarantee that they will work. The ones included in this package are compiled and tested by me.
CONFIGURATION
You will need to edit the nas_drive.conf file in /var/tuxbox/config to suit your particular needs. When you start the plugin it will read the contents of this file and then perform the appropriate actions based on the options you have selected.
Some of these option values are obsolete or don't need playing with. The only settings you need to consider changing are: IPAddress, ShareName, Password and MountPoint. You can leave the locale settings and ImageIP values alone. The file is self explanatory so I won't go into too much detail.
STARTING
After rebooting your box, press the blue button. You will see a new item titled "Mount SMBFS" in your plugins list. Ensure that your configuration file is correct, and then press OK. If successful, your share will be mounted and a message will be displayed on-screen.
ERRORS/BUGS
This is an old plugin designed for the Dreambox 500c and had bugs. Although it works, it can be quite tempermental. Sometimes you may not get an on-screen message but the mount has still been successful. Sometimes you will get a message saying "FAILED!" but the mount still worked! And sometimes neutrino will just crash and then restart. If neutrino crashes after running the plugin then your configuration file is not correct.

pt-1
05-12-2006, 06:13 PM
Any chance for Diff's so I can post it on the Tuxbox Forum and someone there could keep it updated with later Kernels ..?

Speedy2206
06-12-2006, 05:15 PM
@pt-1, unfortunately I have no source code for this at all as its very old and the code and diffs for it appear to be on my old hard drive. The only difference between the kernel versions is the smbfs.o file, which is created at compile time by running make menuconfig from the kernel directory. Each image creator/provider should update their smbfs.o file according using this automatic method.

Speedy2206
06-12-2006, 05:16 PM
SUPPORT FOR OLDER IMAGES

This is the support pack for older images.
Write-up as below, and file attached:


INTRODUCTION
This plugin will add support for NAS drives and SMBFS mounts to an existing DBOX2 image. I have used a copy of an older file I found that I created for the Dreambox 500c, so it is slightly outdated and isnt EXACTLY designed for this purpose, but it works. I will be creating a dedicated version for the DBOX2 if and when it is needed.


COMPATIBILITY
This Samba support package is compatible with kernel version 2.4.32-dbox2 only. This means that all JFFS2 images that were built ON or BEFORE Wednesday the 13th of September 2006 are compatible with this pack. Images built AFTER this date should use my other support pack.

Note that it does not work with the later of any of the Sportster images as they are SQUASHFS and not JFFS2. I have tested and confirmed working fine on Sportster 1.5 and 1.6.


INSTALLATION
The files in this package need to be placed in exact locations on your box, and then set to the correct permissions:

1. Under /lib/modules/2.4.32-dbox2/kernel/fs, create a new directory called smbfs.

2. Put the smbfs.o file from this package into /lib/modules/2.4.32-dbox2/kernel/fs/smbfs.

3. Copy smbmount from this package to /bin. CHMOD the file to 755.
4. Copy smbmnt from this package to /bin. CHMOD the file to 755.

5. Copy smbfs.cfg from this package to /lib/tuxbox/plugins.
6. Copy smbfs.so from this package to /lib/tuxbox/plugins. CHMOD the file to 755.

7. Copy nas_drive.conf from this package to /var/tuxbox/config.

8. Copy smb.conf from this package to /etc and also to /var/etc.
9. Copy libnsl.so.1 from this package to /lib.

Now reboot the box. If you find that the smbmount and smbmnt files already exist in your image then simply overwrite the existing versions, as I can't guarantee that they will work. The ones included in this package are compiled and tested by me.


CONFIGURATION
You will need to edit the nas_drive.conf file in /var/tuxbox/config to suit your particular needs. When you start the plugin it will read the contents of this file and then perform the appropriate actions based on the options you have selected.

Some of these option values are obsolete or don't need playing with. The only settings you need to consider changing are: IPAddress, ShareName, Password and MountPoint. You can leave the locale settings and ImageIP values alone. The file is self explanatory so I won't go into too much detail.

Hope it works OK.

alwynrm
13-02-2007, 10:29 PM
Hi Speedy,

This is great. I've just got samba working for the first time! Thanks!

Alwyn