Advertisement
Guest User

Untitled

a guest
Apr 29th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. = Introduction =
  2. This guide shows how to use OpenELEC with a /storage mounted via nfs.
  3. Useful for diskless installations on e.g. sd-cards (e.g. Raspberry Pi) in combination with a NAS.
  4.  
  5. = Raspberry Pi =
  6.  
  7. First we need to install OpenELEC to our sd-card.
  8. Since we are only storing the kernel and system image there a card with about 200MB is fully sufficient.
  9.  
  10. == Installing OpenELEC ==
  11.  
  12. Basically just follow this guide:
  13. http://wiki.openelec.tv/index.php/Installing_OpenELEC_on_Raspberry_Pi
  14.  
  15. == Configuring NFS ==
  16.  
  17. Fist we need to install the NFS Server if you're using Debian this is done by:
  18.  
  19. aptitude install nfs-kernel-server
  20.  
  21. After that create a directory in which you want to locate your storage (userdata) files.
  22. e.g.
  23.  
  24. mkdir /mnt/media/storage
  25.  
  26. Then add the following line to your /etc/exports:
  27.  
  28. /mnt/media/storage 192.168.0.2/255.255.255.0(no_root_squash,rw,async,no_subtree_check)
  29.  
  30. Where 192.168.0.2 is the IP of your OpenELEC device.
  31. That's it for your exports.
  32.  
  33. == Editing cmdline.txt ==
  34.  
  35. Next we need to make some changes to our cmdline.txt on the sd-card.
  36.  
  37. Change
  38.  
  39. disk=/dev/mmcblk0p2
  40.  
  41. to
  42.  
  43. disk=NFS=192.168.0.123:/mnt/media/storage
  44.  
  45. Where here 192.168.0.123 is the IP of your NFS / NAS server.
  46. Thats it!
  47.  
  48. == Optional: use WakeOnLan to power up your NAS before OpenELEC boots ==
  49.  
  50. Some of you might have their NAS / server not always running. If your device is WOL capable you can have it remotely powered up by OpenELEC so that you don't have to turn it on manually.
  51.  
  52. To use this feature we have to make some further changes to our cmdline.txt
  53. Add the following after the mountpoint we added above:
  54.  
  55. wol_mac=12:12:ab:ac:21:12 wol_ip=192.168.0.123 wol_wait=60
  56.  
  57. - wol_mac is the mac address of the device which should be powered up remotely
  58. - wol_ip is the ip address of the device which should be powered up remotely and is used to determine whether the device is already running or if it is not and must be waken
  59. - wol_wait here you set a delay how long we have to wait until your NAS / server has finished booting and is fully available, so that OpenELEC can continue booting
  60.  
  61. You have to set all these three options!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement