nfs mount..



  • Hello I'm trying to build a music mpd server. I have bought a usb audio sound card..Ok
    my problem is that the music is on a nfs server, but I have install nfs utils.. and when i
    mount.nfs4 ip:/folder local_folder
    it give me this output.
    mount.nfs4: No such device

    What can i do?
    thx



  • Do you have the necessary packages?
    -nfs-utils
    -kmod-fs-nfs
    -kmod-fs-nfs-common

    This might also help: https://wiki.openwrt.org/doc/howto/nfs.client



  • Same here:

    root@Cebola 1:~# opkg install kmod-fs-nfs kmod-fs-nfs-common
    Unknown package 'kmod-fs-nfs'.
    Unknown package 'kmod-fs-nfs-common'.
    Collected errors:

    • opkg_install_cmd: Cannot install package kmod-fs-nfs.
    • opkg_install_cmd: Cannot install package kmod-fs-nfs-common.


  • @Gian-Carlo-Salvati you refer to a request where was for the omega1.

    On omega2 you have to check first /etc/opkg/distfeeds.conf :

    and activate the LEDE Package Repo. Further info's you find here:
    software-using-opkg (scroll down to the end of the document).



  • @Luciano-S thanks, but no progress..

    root@Omega-8D69:~# opkg update
    Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/Packages.gz
    Updated list of available packages in /var/opkg-lists/reboot_packages
    Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/Packages.sig
    Signature check passed.
    Downloading http://repo.onion.io/omega2/packages/core/Packages.gz
    Updated list of available packages in /var/opkg-lists/omega2_core
    Downloading http://repo.onion.io/omega2/packages/core/Packages.sig
    Signature check passed.
    Downloading http://repo.onion.io/omega2/packages/base/Packages.gz
    Updated list of available packages in /var/opkg-lists/omega2_base
    Downloading http://repo.onion.io/omega2/packages/base/Packages.sig
    Signature check passed.
    Downloading http://repo.onion.io/omega2/packages/packages/Packages.gz
    Updated list of available packages in /var/opkg-lists/omega2_packages
    Downloading http://repo.onion.io/omega2/packages/packages/Packages.sig
    Signature check passed.
    Downloading http://repo.onion.io/omega2/packages/onion/Packages.gz
    Updated list of available packages in /var/opkg-lists/omega2_onion
    Downloading http://repo.onion.io/omega2/packages/onion/Packages.sig
    Signature check passed.
    root@Omega-8D69:~# opkg list | grep -i nfs
    nfs-kernel-server - 2.1.1-1 - Kernel NFS server support
    nfs-kernel-server-utils - 2.1.1-1 - NFS server utils
    nfs-utils - 2.1.1-1 - Updated mount.nfs command - allows mounting nfs4 volumes
    root@Omega-8D69:~# opkg install kmod-fs-nfs kmod-fs-nfs-common
    Unknown package 'kmod-fs-nfs'.
    Unknown package 'kmod-fs-nfs-common'.
    Collected errors:

    • opkg_install_cmd: Cannot install package kmod-fs-nfs.
    • opkg_install_cmd: Cannot install package kmod-fs-nfs-common.

    root@Omega-8D69:~# uname -a
    Linux Omega-8D69 4.4.46 #0 Thu Feb 2 23:46:03 2017 mips GNU/Linux

    What can I do?



  • Since you've done the opkg list | grep <name> already and it listed these:

    nfs-kernel-server - 2.1.1-1 - Kernel NFS server support
    nfs-kernel-server-utils - 2.1.1-1 - NFS server utils
    nfs-utils - 2.1.1-1 - Updated mount.nfs command - allows mounting nfs4 volumes
    

    You might see that the package name nfs-utils has the tools for mounting nfs4 volumes..

    So if that's the case then do a:

    opkg install nfs-utils
    

    ?



  • @Richard-Berg thansk, but I already installed this package.

    What happens is there is no kernel driver available forthis system.
    Then mount command shows there is no device ..


    root@Omega-8D69:~# opkg list | grep nfs
    nfs-kernel-server - 2.1.1-1
    nfs-kernel-server-utils - 2.1.1-1
    nfs-utils - 2.1.1-1



  • @Gian-Carlo-Salvati , you version is Omega2 or 2p(lus)?

    If 2p I was reading that bigger than omega2p-v0.1.10-b160.bin makes trouble. Even a kernel problem was reported in one of the above ...b160.bin



  • @Luciano-Veronese Omega2 on my tests.



  • root@Omega-8D69:~# uname -a
    Linux Omega-8D69 4.4.46 #0 Thu Feb 2 23:46:03 2017 mips GNU/Linux

    root@Omega-8D69:~# cat /etc/fstab

    <file system> <mount point> <type> <options> <dump> <pass>

    #192.168.0.196:/music /mnt/music nfs4 ro,_netdev,auto,nolock 0 0
    192.168.0.196:/music /mnt/music nfs4 rw,auto,hard,intr 0 0
    root@Omega-8D69:~# mount /mnt/music
    mount.nfs4: No such device
    mount: mounting 192.168.0.196:/music on /mnt/music failed: No such device

    root@Omega-8D69:~# lsmod | grep nfs
    root@Omega-8D69:~#



  • Ahh OK then yeah the firmware must be compiled with those driver enabled.
    Have you tried compiling the firmware? There is a post here on how to use Docker and a pre-built image that a community member has built.

    I was able to compile my own firmware and saw the options to include the kernel driver AS seen in the image below. If you can get the Docker image (or other way) to compile the firmware; you could also include this kernel driver in the firmware and flash and test it.

    Below is the Omega2 firmware 'make menuconfig' option showing the nfs file system kernel driver. If you want, I can try to take the defaults and add this driver in and build the firmware. I could then host it on my GitHub and you could download and try to flash it from there. Would just take me a bit of time but BE FORE WARNED that while I'm sure I could get it to compile, and have done it with other OpenWRT builds and boards; I cannot say it won't strand you but making the device unusable. All attempts at this source is to share with the community BUT you take all risks in knowing how, what to do if problems occur.

    Let me know and I can compile for you with some options (if you know them) and the nfs module and you could test.
    Cheers,

    alt text

    @Gian-Carlo-Salvati said in nfs mount..:

    @Richard-Berg thansk, but I already installed this package.

    What happens is there is no kernel driver available forthis system.
    Then mount command shows there is no device ..



  • @Richard Berg thanks! I would like if you could do it for me!
    If something goes wrong there is any way to flash the original firmware?

    I will read about docker option too!

    thanks!
    Let me know when you publish the file!



  • @Gian-Carlo-Salvati

    Started to build then I remembered there are Omega2 and Omega2+.
    If you have time before the build of the firmware, let me know which you want.

    If I don't hear back from you before I'm done building the Omega2 (plain) I'll just spin the configuration for the Omega2+ and make you one of each, lol.

    Cheers,



  • @Gian-Carlo-Salvati

    Here is the github repo with 2 files: one for the Omega2 and one for the Omega2+
    Choose your version, download and flash.

    https://github.com/Ictinike/Omega2-firmware

    BEWARE, however, that I may not be able to help you get back to default firmware if something goes wrong with the flash but I have helped someone recover their Omega2+ from constant reboot due to a bad firmware from Onion.

    If we get to that point, let me know and we can help you with a dock and USB if you have them. If not, you may have to use a TTL2USB adapter and go serially. This would be NO different if you flashed a bad firmware from Onion so while I give you the BEWARE it's something you may have to do eventually, lol..

    Here is the option I enabled from default firmware:
    alt text
    Cheers,



  • Thanks a lot!!!
    I dont know how to thank you!
    I will try it!

    Best regards!



  • now it Works! I used Serial connection.
    But I cant connect to wifi.
    I am using this user-guide:
    https://lede-project.org/docs/user-guide/wifi_configuration#startstop_wireless

    Any hint?



  • I did connect to my Wifi network, but the signal is so weak now.

    I saw come configurations on this forum that points to ralink driver instead the one that came with the kernel in this firmware...
    Which one is the best?



  • @Gian-Carlo-Salvati

    Awesome!

    As for the WiFi driver I'm not sure. I used what was packaged in the Docker image from another user. If by chance you have used Docker the image is pretty straight forward and once you build the toolchain & tools binaries (which takes me about 1 hour roughly on an 6/12 core i7 49230K @ 3.4ghz) it builds in roughly 20 mins thereafter. If not Docker, you should still be able to use Linux and pull the source but you'll have to do some configuration up-front.

    I'm just glad the NFS works but again, sorry on the WiFi :(



  • @Gian-Carlo-Salvati

    Also, below is the driver that came 'stock' setup in the firmware.. If you deduce which one you wish to try let me know and I can attempt to merge in and rebuild for you. Lastly, Omega2 or 2+ just in case we do get to rebuild it for you :)

    alt text



  • @Richard-Berg thanks!

    I saw now on my other omega2, the default driver on original firmware is: ralink_eeprom_api , mt76x8, ralink_gdma.
    On /etc/config/wireless the configuration for wifi device is: 'ralink'

    I don't know, but I will test more then I tell you.

    Thanks in advance!


Log in to reply