Jump to content


Photo

Why are the NAS shares deleted after a reboot?


  • Please log in to reply
24 replies to this topic

Re: Why are the NAS shares deleted after a reboot? #21 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 6 March 2015 - 20:07

I have 3 shares. With # in front it creates the first share-folder, but delete it soon after creation! Then it goes to the next share-folder, create it but also delete it after creation. The last share does not delete and stays there.


Explain, because I have no idea what you mean. Just tell what you see, preferably show logs and/or telnet sessions, don't just supply your personal interpretation of what has happened.
Real musicians never die - they just decompose

Re: Why are the NAS shares deleted after a reboot? #22 The_Raven

  • Senior Member
  • 204 posts

+2
Neutral

Posted 6 March 2015 - 20:19

My english is funny i know. :P

Ok, i have 3 NFS-Shares:

Share1

Share2

Share3

If i put them all in /etc/fstab with a # in the beginning and do a "ls -l /media/net/" when the box boots up i see first only "/media/net/Share1". Then the Share1 goes away and i see only "/media/net/Share2". Then it also goes away and i see only "/media/net/Share3".

Share3 stays then under "/media/net/Share3", but the Share1 and Share2 are gone (deleted).

I tested this when my nas was powered off (to try if the shares where created if the nas is not available).

Better explained?



Re: Why are the NAS shares deleted after a reboot? #23 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 7 March 2015 - 09:38

What if you create the shares elsewhere, i.e. NOT in /media/net/ but just in /media/ for example?

My guess is that you also have share1/2/3 entries in enigma2, which then replaces them.

Edited by MiLo, 7 March 2015 - 09:39.

Real musicians never die - they just decompose

Re: Why are the NAS shares deleted after a reboot? #24 The_Raven

  • Senior Member
  • 204 posts

+2
Neutral

Posted 7 March 2015 - 11:22

This could be, i try it (as soon i have time).

And yes you are right, the shares are also in e2.



Re: Why are the NAS shares deleted after a reboot? #25 The_Raven

  • Senior Member
  • 204 posts

+2
Neutral

Posted 7 March 2015 - 19:49

Have tested with this entrys in fstab:

#bogus /media/share1 bogus bogus
#bogus /media/share2 bogus bogus
#bogus /media/share3 bogus bogus

The funny thing is now it doesn't work anymore! :huh:

None of the folders where created! WTF?!

May be the thing that i saw before was from e2 mount manager?!

 

Now i thought i found a better way: I mount it whit option auto, nofail.

This way the filesystem should mount if present and not if not present at boot.

NAS-IP:/my/share/share1 /media/net/share1  nfs  tcp,noatime,rw,nolock,auto,nofail  0  0

But the system hangs at boot and trying to mount my shares. I don't know why.

Then i found the "bg" (background) option, and this seems to work.

NAS-IP:/my/share/share1 /media/net/share1  nfs  tcp,noatime,rw,nolock,bg,auto  0  0

 

Now i have to test if everything is working as expected. B)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users