Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Guide: Mount with CIFS or NFS

Got problems with your B2 or B3? Share and get helped!
Post Reply
Gunnarsson
Posts: 31
Joined: 26 Mar 2009, 07:15

Guide: Mount with CIFS or NFS

Post by Gunnarsson »

Hi

I bought the Bubba mainly to be able to record with my dreambox without having to have my HTPC on.
But the needed CIFS and NFS support whasn't there. But the great thing with Linux is that you can fix it your self. :D BTW I love my Bubba!

So here is a guide if you want to mount a dreambox or anything else on your bubba. If you dare to fiddle with it :wink:

OK, I've tryed both NFS and CIFS and I found CIFS to work best for me.

First up CIFS:


Access the Bubba with putty. Login with your account and then SU

Code: Select all

# su
Start by editing /etc/apt/sources.list (I dont think this i recommended by the bubba-crew. But to get it the way you want you have to take a chance)
This is where the bubba gets its software upgrades. You just temporarily edit it to the Debian standard to get the samba package.

Code: Select all

# nano /etc/apt/sources.list
Make sure that all the lines have # infront (rembember which lines you edit, we are changing it back when we are done)
and then add these lines at the bottom.

Code: Select all

deb http://ftp.se.debian.org/debian/ etch main
deb-src http://ftp.se.debian.org/debian/ etch main

deb http://security.debian.org/ etch/updates main
deb-src http://security.debian.org/ etch/updates main
save and exit

Then we download the latest package list

Code: Select all

# apt-get update
Install the samba package

Code: Select all

# apt-get install libcupsys2 samba samba-common
Now we create the user thats going to access the share.
Just enter the Bubba webinterface and make a new user (or make it the debian way)

After that whe have to give the user its samba password (testuser1 is the user that you created in the webinterface)

Code: Select all

# smbpasswd -a testuser1
Create a folder where you want the unit to save/read its files
For example /home/storage/video/TV (and if its a dreambox you are installing, remember to create the folder "movie" in there to.

The folders also needs to have read and write permissions.

Code: Select all

# chmod 777 /home/storage/video/TV
and

Code: Select all

# chmod 777 /home/storage/video/TV/movie
Some of the units like the dreambox can't mount folders other that the ones in there home directory. So we cant mount "/home/storage/video/TV" we have to make a shortcut to it.

Code: Select all

# ln -s /home/storage/video/TV/movie /home/testuser1
After this we have to share the folder we just created.
Edit samba.conf

Code: Select all

# nano /etc/samba/smb.conf
and at the bottom, enter these lines

Code: Select all

[dreambox]
   path= /home/storage/video/TV/
   browseable= yes
   writeable= yes
   valid users = testuser1
   admin users = root
Then we have to change the /etc/apt/sources.list back to the way it was before.
Otherwise the update of the bubba in the webinterface wont work.

Thats all for the bubba.

Now if you want to mount your dreambox. Just log in to its webinterface and press "CONFIG">"Mount Manager" and then "Add"
Fill in this
[quote]Description: CIFS on Bubba
Filesystem Type: 1
Auto Mount: Check
Client Directory: /var/mnt/hdd
Server Directory:testuser1 (or whatever you used)
IP: The IP to your Bubba
User Name: testuser1 (or... yes, whatever you used)
Password: (the users password for samba)
Options: rsize=4096,wsize=4096 (these numbers can be changed if u have problem with bad picturequality)

Save and press mount.
If everything worked the blue mount button should change to a red unmount button. And you start recordning your favorit shows :D


To use the NFS its almost the same:

The first steps are the same but instead of installing the samba package you install the NFS.

Code: Select all

# apt-get install nfs-kernel-server nfs-common portmap
Create a folder that you want to mount.

Code: Select all

# mkdir /home/storage/video/NFS/movies
The "movie" folder is only for dreambox users.

In this setup I use a anonymous login for the unit. So to set the permission to that folder, enter this:

Code: Select all

# chown nobody:nogroup home/storage/video/NFS
Now we have to edit the /etc/exports file. This is where the NFS-server reads which unit can access what. Add this line:

Code: Select all

home/storage/video/NFS	IP_TO_YOUR_CLIENT(rw,async,no_root_squash)
After editing "exports" we have to restart the NFS-server:

Code: Select all

# exportfs -a
The same problem with some units that cant access more that rot folders.
So we have to create a shortcut

Code: Select all

# ln -s /home/storage/video/NFS /NFS
Dont forget to change the /etc/apt/sources.list back.

Thats it. Mount your unit.
If its a dreambox, login with telnet and enter this line:

Code: Select all

mount -t nfs -o rw,nolock,rsize=4096,wsize=4096 BUBBA_IP:/NFS /hdd
Hope this will help :)

[SWE]Mycket nöje och tackar för en bra produkt.[/SWE]
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

great
could you move it over to the how-to section?
cheers
Eek
Post Reply