SNAP Plugin updated for unRAID Version 5.0


Recommended Posts

Hi, I'm having a problem with SNAP on unRaid 5.05.  I can mount and share the drive from unRaid, but I can't connect from my Mac or Android phone.  I get a message saying the account doesn't have permissions on my phone.  On my Mac I get a slightly different error.  When I try opening the folder: The operation can't be completed because the original item for "snapfolder" can't be found.

 

Any hints?

Link to comment
  • 2 weeks later...
  • Replies 188
  • Created
  • Last Reply

Top Posters In This Topic

hi dlandon,

 

could you help me to activate automount for exfat drives?

i installed exfat tools from piotrasd (http://lime-technology.com/forum/index.php?topic=24850.0).

https://app.dumptruck.goldenfrog.com/p/Vq3zpArAKB/fuse-exfat-1.0.0-i686-1PTr.txz

https://app.dumptruck.goldenfrog.com/p/Vq3zpArAKB/exfat-utils-1.0.0-i686-1PTr.txz

 

i can write to a connected and manually mounted usb2.0 drive formated with exfat. i use mount -t exfat /dev/sdf1 /mnt/temp to get access.

how can snap.sh be updated to support exfat?

 

can you help me with that?

 

I don't think it's a good idea to have SNAP mount a file format that is not supported in unRAID.  That being said, you can edit the /boot/config/plugins/snap/snap.sh script and add the exfat mount.  Look in the script for a case statement with the other file formats and you'll see how its done.  That should be all that is necessary.

 

So I'm in the same boat as phenomeus.  I'd like to try and modify the snap.sh but I'm no linux / script expert.  Is there something I can reference that can explain what's going on in the script?  Even simply a reference to what scripting language I should look up would be useful.  I just don't want to be blindly making updates to the script and not understand what I'm doing. 

Link to comment
  • 1 month later...

Hello, I am using Snap on my unraid 5.0.6 to mount 1 internal sata drive that I am using to run my plex media server on.  I have manually mounted the drive and created a share name through the snap gui with good success.  The only problem is when I reboot the system I have to go into the gui and manually mount the drive again.  Is there a way to get it to mount automatically when the system reboots?  Sorry I'm quite new to this setup.  Thanks

Link to comment

Thanks, that helped.  This is what i did.

 

IN the webgui it is working fine, but i didnt want to mount it manually each time.

I just tested an extra line in the GO script and that worked:

 

Code: [select]

/boot/config/plugins/snap/snap.sh -enable

/boot/config/plugins/snap/snap.sh -ms K438T7C2D0KR

 

But i will place it after the emhttp lines. To see if that works too.

Link to comment
  • 1 month later...
  • 2 weeks later...

A bit unclear on something and have done all the reading.  Thought someone might have the answer for me.  Do hotswap events work for internal SATA drives?  Here is my scenario.  I have an icydock sata bay (MB453IPF-B) and enclosure (MB559U3S-1SB) coming that will allow me to pull a drive from the unraid server and put into my enclosure to take with me on the road.  I want to format that drive with a file system like NTFS so I can access the contents on the go.  what I would like to do, on connect to server (and periodically via cron when the drive is connected, which will be most of the time) is copy a bunch of files from protected array to this drive (one way, I don't ever want to bring files back from this drive to array).  Then, if I need to be on the go, I just go pull the drive from the bay and pop in the enclosure and am on the way. 

Link to comment
  • 3 months later...

I'm trying to update my SNAP plugin from an old 5.08 version.

I'm getting the same problem as loady below

 

This will not seem to download and i cant see where the problem might be...

 

root@warptower:~# cd /boot/config/plugins
root@warptower:/boot/config/plugins# installplg snap.plg
installing plugin: snap
file /tmp/SnapPrepare: successfully wrote INLINE file contents
  /bin/bash /tmp/SnapPrepare ... success
file /boot/packages/inotify-tools-3.14-i486-1.txz: already exists
  upgradepkg --install-new /boot/packages/inotify-tools-3.14-i486-1.txz ...
+==============================================================================
| Skipping package inotify-tools-3.14-i486-1 (already installed)
+==============================================================================


success
file /tmp/preSnapInstallCleanup.sh: successfully wrote INLINE file contents
  /bin/bash /tmp/preSnapInstallCleanup.sh ... success
file /tmp/prepareForSnapInstall.sh: successfully wrote INLINE file contents
  /bin/bash /tmp/prepareForSnapInstall.sh ... Error: Unable to download LatestSnapVersion information from GitHub.
success
file /tmp/SnapInstall.sh: successfully wrote INLINE file contents
  /bin/bash /tmp/SnapInstall.sh ... /tmp/SnapInstall.sh: line 14: /boot/config/plugins/snap/snap.sh: No such file or directory
success
file /etc/rc.d/rc.snap: successfully wrote INLINE file contents
  successfully changed file mode
file /usr/local/emhttp/plugins/snap/snap.png: downloading from -q --no-check-certificate https://github.com/dlandon/unraid-snap/raw/master/snap.png ... bad download, deleting
root@warptower:/boot/config/plugins#
root@warptower:/boot/config/plugins#

 

Link to comment

I'm trying to update my SNAP plugin from an old 5.08 version.

I'm getting the same problem as loady below

 

This will not seem to download and i cant see where the problem might be...

 

root@warptower:~# cd /boot/config/plugins
root@warptower:/boot/config/plugins# installplg snap.plg
installing plugin: snap
file /tmp/SnapPrepare: successfully wrote INLINE file contents
  /bin/bash /tmp/SnapPrepare ... success
file /boot/packages/inotify-tools-3.14-i486-1.txz: already exists
  upgradepkg --install-new /boot/packages/inotify-tools-3.14-i486-1.txz ...
+==============================================================================
| Skipping package inotify-tools-3.14-i486-1 (already installed)
+==============================================================================


success
file /tmp/preSnapInstallCleanup.sh: successfully wrote INLINE file contents
  /bin/bash /tmp/preSnapInstallCleanup.sh ... success
file /tmp/prepareForSnapInstall.sh: successfully wrote INLINE file contents
  /bin/bash /tmp/prepareForSnapInstall.sh ... Error: Unable to download LatestSnapVersion information from GitHub.
success
file /tmp/SnapInstall.sh: successfully wrote INLINE file contents
  /bin/bash /tmp/SnapInstall.sh ... /tmp/SnapInstall.sh: line 14: /boot/config/plugins/snap/snap.sh: No such file or directory
success
file /etc/rc.d/rc.snap: successfully wrote INLINE file contents
  successfully changed file mode
file /usr/local/emhttp/plugins/snap/snap.png: downloading from -q --no-check-certificate https://github.com/dlandon/unraid-snap/raw/master/snap.png ... bad download, deleting
root@warptower:/boot/config/plugins#
root@warptower:/boot/config/plugins#

 

 

Looks like you don't have Internet access.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.