OSD Mount network shares

From The Neuros Technology Wiki

Jump to: navigation, search

Based on this forum topic : Mount your network Shares on Bootup


The situation changed with the Arizona firmware. http://forums.neurostechnology.com/index.php?topic=9141.0


First way to do it is to use the GUI. But I share the point of view in the forum : "Is so stressful to see in the GUI interface all erased if for my fault I miss one letter in the address and the mapping fails. I have to rewrite everything with the remote control and this takes lots of time".

Keep the old way

This solution worked for me. You should use the traditional way (see hereunder). You only need to change the names of the folders because /media is not the good place anymore. Instead you should use : /mnt/tmpfs/mount_CF-card/data/shortcuts/

Configuration file

According to Neuros, there is another way to do it : you can also edit the OSD's network share file manually (Arizona only), it's to be found in /mnt/tmpfs/mount_CF-card/data/network.ini, whose syntax is:


Type=1  //1=SMB, I think 0=NFS

But up to now I never managed to get my NFS mount to work.

Older firmware

Find the mount command

Samba shares

mount.cifs //<SERVER_ADDY>/<SHARE_FOLDER> /media/<MOUNT_POINT>  -o user=USERNAME,pass=PASSWORD,rw,nolock


  • SERVER_ADDY is the IP address or hostname of the server.
  • SHARE_FOLDER is the name of the folder that's being shared.
  • MOUNT_POINT is an empty folder you wish for the share to appear (don't forget to create this first!)
  • USERNAME & PASSWORD are the details you use to connect to this share

So for example :

mount.cifs // /media/Video -o user=joe,pass=bloggs,rw,nolock

NFS shares

mount -t nfs <SERVER_ADDY>:<ABS_PATH_TO_SHARE> /media/<MOUNT_POINT>  -o rw,nolock,tcp,nfsvers=3


  • SERVER_ADDY is the IP address or hostname of the server.
  • ABS_PATH_TO_SHARE is the absolute path of the folder that's being shared, matching that in /etc/exports on your server.
  • MOUNT_POINT is where the share appears.


mount -t nfs /media/Tunes -o rw,nolock,tcp,nfsvers=3

Writing the bootup script

In /mnt/OSD/rc.user (create if necessary using vi), put the lines:


sh /mnt/OSD/bootscript.sh &

Then create a file in /mnt/OSD called bootscript.sh, where you first issue a "sleep 10" command to wait for init process to finish, then run your mount commands. Also don't forget to make the mount point(s) first, as they vanish on reboot. You can use vi to edit text files on the OSD. Here's a crude example of bootscript.sh:

Don't forget to make the file executable.

 chmod a+x /mnt/OSD/bootscript.sh
 chmod a+x /mnt/OSD/rc.user


sleep 10;
mkdir /media/Videos;
mkdir /media/Tunes;

mount.cifs // /media/Video -o user=joe,pass=bloggs,rw,nolock;

mount -t nfs /media/Tunes -o rw,nolock,tcp,nfsvers=3;

Just reboot your OSD and you should see your network shares2 right there under Play|Browse!


If you experience difficulties accessing your Play|Browse menu, it may be because of one of the above commands hanging because the OSD had not fully initialized when it had run. As a workaround, adjust the duration of the sleep command to about 20 seconds. --Greyback 08:23, 10 September 2007 (EDT)

Personal tools