Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 1 of 2 12 LastLast
Results 1 to 15 of 26

Thread: Unable to automount NAS shares anymore.

  1. #1
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts

    Unable to automount NAS shares anymore.

    I've not used autofs mounted filestore connecting to a NAS server for a long time, but it used to work fine.

    A couple of days ago I tried it on 5.1.019 and couldn't get it to work, so fresh flashed 5.1.020 with no settings restore and started from scratch.

    I've spent ages trying without any success.

    The error I (always) see when selecting the location from the recordings list is "Directory /media/autofs/ET10000SYNOLOGY/ does not exist."

    The directory does exist, but can't be listed/deleted or anything else that I can think of.

    Code:
    root@et10000:~# ls -l /media/autofs
    dr-xr-xr-x    2 root     root             0 Mar 18 13:41 ET10000SYNOLOGY
    root@et10000:~#
    
    root@et10000:~# ls -l /media/autofs/ET10000SYNOLOGY
    ls: /media/autofs/ET10000SYNOLOGY: No such file or directory
    root@et10000:~#
    
    root@et10000:~# ls -ld /media/autofs
    drwxr-xr-x    3 root     root             0 Mar 18 16:57 /media/autofs
    root@et10000:~#
    I set up the share using network browser, (and just about any other way I can think of), with reboots to get it going.
    The fact that the browser picks up all the shares on the NAS suggests that it's nearly working.

    Code:
    root@et10000:~# df -a
    Filesystem           1K-blocks      Used Available Use% Mounted on
    ubi0:rootfs             913016     88112    824904  10% /
    devtmpfs                559820         4    559816   0% /dev
    proc                         0         0         0   0% /proc
    sysfs                        0         0         0   0% /sys
    debugfs                      0         0         0   0% /sys/kernel/debug
    tmpfs                       64         0        64   0% /media
    tmpfs                   559964       136    559828   0% /var/volatile
    /dev/sda1            976559616 495183360 480327680  51% /media/hdd
    devpts                       0         0         0   0% /dev/pts
    /etc/auto.network            0         0         0   0% /media/autofs
    root@et10000:~#
    
    root@et10000:~# cat /etc/auto.network
    # automounter configuration
    ET10000SYNOLOGY -fstype=cifs,user=xx,pass=xx,rw,iocharset=utf8 ://192.168.1.115/ET10000
    root@et10000:~#
    Debug logs aren't showing anything at all, apart from

    Code:
    <    33.158> [Harddisk] new Network Mount ET10000SYNOLOGY -> /media/autofs/ET10000SYNOLOGY
    dmesg has this error, but I think it's always been there...

    Code:
    et10000 daemon.crit automount[581]: key "logs" not found in map source(s).
    Other bits.......

    Code:
    root@et10000:~# smbd -V
    Version 4.4.16
    
    root@synology:/$ smbd -V
    Version 4.4.16
    Synology Build 15254, Jan 26 2018 07:00:42
    I studied this post, but obviously didn't solve the issue...

    http://www.world-of-satellite.com/sh...l=1#post457557

    Note: I needed an opkg update before I could get samba installed and running.
    Last edited by ccs; 18-03-18 at 19:31.

  2. #2
    Ashley69's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Feb 2015
    Posts
    1,099
    Thanks
    205
    Thanked 290 Times in 246 Posts
    Are you going through network browser to mount your nas?
    Go to network browser.
    Once your nas shows up press ok on it.
    It will ask for user name and password. Enter and press ok to mount
    Exit back to network browser and you should see all your nas folders.
    I scrolled down passed the nfs folders and mount the cifs folders. Press ok on the cifs you want to mount.
    Octagon SF8008 4K, VU+Duo 2..
    Edision OS MINI,

  3. #3
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by Ashley69 View Post
    Are you going through network browser to mount your nas?
    Go to network browser.
    Once your nas shows up press ok on it.
    It will ask for user name and password. Enter and press ok to mount
    Exit back to network browser and you should see all your nas folders.
    I scrolled down passed the nfs folders and mount the cifs folders. Press ok on the cifs you want to mount.
    Yes, as I explained above.

  4. #4
    Ashley69's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Feb 2015
    Posts
    1,099
    Thanks
    205
    Thanked 290 Times in 246 Posts
    Sorry missed that bit. I had a similar issue but after a reflash and using the above method it worked.
    I don’t need samba installed for mine to work.
    Octagon SF8008 4K, VU+Duo 2..
    Edision OS MINI,

  5. #5
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,776
    Thanks
    237
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by ccs View Post
    Note: I needed an opkg update before I could get samba installed and running.
    You don't need samba (which is a file server daemon) to access files on a remote file server.
    I set this up a month ago in order to test that something worked when using a NAS. I had the same problem. IIRC I resolved it (I do remember resolving it) by installing a missing module on the Vix box. I can't remember which, though.

    EDIT: Perhaps the mist clears...
    Try installing cifs-utils. It installs mount.cifs, which ISTR automount uses to mount cifs shares (rather than doing it directly).
    Last edited by birdman; 19-03-18 at 11:38.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  6. #6

    Title
    Member
    Join Date
    May 2016
    Location
    Finland
    Posts
    72
    Thanks
    4
    Thanked 6 Times in 6 Posts
    I didn't see what Box OP uses, maybe it doesn't matter. But my experience on mounting NAS share (CIFS) using automounter on Vu+ Duo 2 was similar: couldn't get it to mount anything. Can't remember the error message but it may have been similar to OP. Couldn't get it to mount with "enigma2" type either. Only thing that worked was to mount using fstab.

    After switching to fstab mount automounter left its config as is (even after several reboots) and the only way to clear it was to edit the file auto.network manually.

    All this was with OpenVIX 5.1.013.
    VU+ Duo 4k + 1 x FBC DVB-C :: OpenVIX 6.2.001 (main) // VU+ Duo2 + 1 x Dual DVB-C :: OpenVIX 5.1.024 (spare)

  7. #7
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by birdman View Post
    You don't need samba (which is a file server daemon) to access files on a remote file server.
    I set this up a month ago in order to test that something worked when using a NAS. I had the same problem. IIRC I resolved it (I do remember resolving it) by installing a missing module on the Vix box. I can't remember which, though.

    EDIT: Perhaps the mist clears...
    Try installing cifs-utils. It installs mount.cifs, which ISTRC automount uses to mount cifs shares (rather than doing it directly).
    Cheers - I did actually try installing cifs-utils, but it didn't help.
    Having said that I had been trying so many permutations and combinations I probably tried it at the wrong time.

    Mist clearing a bit here as well, I do remember ages ago "&" didn't work as a password character, and I did at one point yesterday remove it.
    Maybe that was after trying cifs-utils.

    I know samba isn't relevant, but I thought the nas version might be - hence the references.

  8. #8
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by pmatil View Post
    I didn't see what Box OP uses, maybe it doesn't matter. But my experience on mounting NAS share (CIFS) using automounter on Vu+ Duo 2 was similar: couldn't get it to mount anything. Can't remember the error message but it may have been similar to OP. Couldn't get it to mount with "enigma2" type either. Only thing that worked was to mount using fstab.

    After switching to fstab mount automounter left its config as is (even after several reboots) and the only way to clear it was to edit the file auto.network manually.

    All this was with OpenVIX 5.1.013.
    Thanks,

    I tried fstab but couldn't get that working either.

    I also noticed auto.network was left as is, so it was getting very confusing when trying different things which were failing.

    I had to edit them out as well.

  9. #9
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,776
    Thanks
    237
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by ccs View Post
    Cheers - I did actually try installing cifs-utils, but it didn't help.
    This is what happens to me without it, then with it....
    I have "bad user" mapped to guest on my Samba server, so it doesn't need an id/pwd.

    Code:
    root@mbtwin:/media/hdd/GMLbits# opkg remove cifs-utils
    Removing cifs-utils (6.6) from root...
    
    root@mbtwin:/media/hdd/GMLbits# cat /etc/auto.network 
    # automounter configuration
    SMBtestPLUG -fstype=cifs,user=,pass=,rw,iocharset=utf8 ://192.168.1.51/SMBtest
    
    root@mbtwin:/media/hdd/GMLbits# ls /media/autofs/SMBtestPLUG/
    ls: /media/autofs/SMBtestPLUG/: No such file or directory
    
    root@mbtwin:/media/hdd/GMLbits# opkg install cifs-utils
    cifs-utils: unsatisfied recommendation for kernel-module-cifs
    Installing cifs-utils (6.6) on root.
    Downloading http://openvixdev.satellites-xml.org/feeds/openvix/developer/5.1/inihdx/mips32el/cifs-utils_6.6-r0_mips32el.ipk.
    Configuring cifs-utils.
    
    root@mbtwin:/media/hdd/GMLbits# ls /media/autofs/SMBtestPLUG/
    20160208 1957 - BBC TWO HD - University Challenge.eit
    20160208 1957 - BBC TWO HD - University Challenge.ts
    ......
    20171122 2200 - BBC FOUR HD - Detectorists.ts.meta
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  10. #10
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Still no success

    I'm seeing Mar 19 10:50:16 et10000 daemon.crit automount[581]: key "logs" not found in map source(s). in /var/log/messages???

    I'm using a valid nas userid and password - that should be ok?

  11. #11
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    If I go into network browser to set up a share from scratch, I'm seeing mount options I tried yesterday, not the defaults I'd expect.

    edit: just tried a different nas share - same problem, but the other share I'm trying to get working still shows in location, despite being disabled.

    I think I need to reflash and start from there.
    Last edited by ccs; 19-03-18 at 13:01.

  12. #12
    Willo3092's Avatar
    Title
    ViX Beta Tester
    Join Date
    Oct 2016
    Location
    East Midlands
    Posts
    1,065
    Thanks
    752
    Thanked 403 Times in 303 Posts
    I just edit automounts.xml like this:

    <?xml version="1.0" ?>
    <mountmanager>
    <fstab>
    <cifs>
    <mount>
    <active>True</active>
    <hdd_replacement>False</hdd_replacement>
    <ip>192.168.0.240</ip>
    <sharename>Movies</sharename>
    <sharedir>Movies</sharedir>
    <options>rw,utf8</options>
    <username>********</username>
    <password>********</password>
    </mount>
    </cifs>
    </fstab>
    </mountmanager>

    Reboot - go into mount manager and click OK on the mount and OK the 'overwrite existing mountpoint' message and it then mounts successfully.

  13. #13
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Fresh flash 5.1.020 with just cifs.utils and no settings restore.

    With fstab selected (I tried autofs first and it didn't work), with debugging, I'm seeing...

    Code:
    < error(122): Operation not supported
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    mount: mounting //192.168.1.115/ET10000 on /media/net/ET10000SYNOLOGY failed: Operation not supported
    <    37.386>
    Code:
    Mar 19 14:09:13 et10000 daemon.info automount[590]: attempting to mount entry /media/autofs/logs
    Mar 19 14:09:13 et10000 daemon.crit automount[590]: key "logs" not found in map source(s).
    Mar 19 14:09:13 et10000 daemon.info automount[590]: failed to mount /media/autofs/logs
    Mar 19 14:09:13 et10000 daemon.info automount[590]: re-reading map for /media/autofs
    Code:
    root@et10000:~# df -a
    Filesystem           1K-blocks      Used Available Use% Mounted on
    ubi0:rootfs             913016     81000    832016   9% /
    devtmpfs                559820         4    559816   0% /dev
    proc                         0         0         0   0% /proc
    sysfs                        0         0         0   0% /sys
    debugfs                      0         0         0   0% /sys/kernel/debug
    tmpfs                       64         0        64   0% /media
    tmpfs                   559964       112    559852   0% /var/volatile
    /dev/sda1            976559616 536948736 438562304  55% /media/hdd
    devpts                       0         0         0   0% /dev/pts
    /etc/auto.network            0         0         0   0% /media/autofs
    root@et10000:~# cat /etc/fstab
    rootfs                  /               auto            defaults                                1  1
    proc                    /proc           proc            defaults                                0  0
    devpts                  /dev/pts        devpts          mode=0620,gid=5                         0  0
    usbdevfs                /proc/bus/usb   usbdevfs        noauto                                  0  0
    tmpfs                   /var/volatile   tmpfs           defaults                                0  0
    //192.168.1.115/ET10000 /media/net/ET10000SYNOLOGY      cifs    user=xx,pass=xx,_netdev,rw,iocharset=utf8        0 0
    root@et10000:~#
    It looks like I need to fresh flash each time to avoid partially inheriting previous attempts??
    Last edited by ccs; 19-03-18 at 15:23.

  14. #14
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    This error crops up after a fresh flash of 5.1.020 and nothing else (apart from setting debug logs).

    Code:
    Mar 19 15:18:13 et10000 daemon.info automount[581]: attempting to mount entry /media/autofs/logs
    Mar 19 15:18:13 et10000 daemon.crit automount[581]: key "logs" not found in map source(s).
    Mar 19 15:18:13 et10000 daemon.info automount[581]: failed to mount /media/autofs/logs
    Mar 19 15:18:13 et10000 daemon.info automount[581]: re-reading map for /media/autofs

  15. #15
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by Willo3092 View Post
    I just edit automounts.xml like this:

    Reboot - go into mount manager and click OK on the mount and OK the 'overwrite existing mountpoint' message and it then mounts successfully.
    If I simply create automounts.xml and go into mount manager after a reboot, there's nothing to see.
    There must be other things that you do first.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.