Coder Social home page Coder Social logo

votanvotan / exfat-synology Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luckylz2git/exfat-synology

0.0 1.0 0.0 560 KB

Perfect shell scripts to auto mount exfat disk partition on Synology DiskStation NAS (x86 platform), and more post-mount functions are coming soon! Use this at your own risks.

Shell 100.00%

exfat-synology's Introduction

#exfat-synology auto mount

Perfect shell scripts to automatic mount/unmount exfat disk partition on Synology DiskStation NAS (x86 platform). Currently support only one exfat partition, and don't try to write data into the exfat partition! Which will have unexpected problems.

Tested on VitualBox + Jun's Mod V1.02-alpha + DS3615xs + DSM 6.1-15047 Update 1, use this at your own risks.

##How-To Guide

Initialize Setup

[ 1 ] Enabled Telnet service on Synology DiskStation, [Control Panel] -> [Terminal & SNMP]: [Enable Telnet service] & [Enable SSH service];

[ 2 ] SSH to NAS & enable root account;

ssh admin@ipaddress

sudo su -
synouser --setpw root your_new_root_password

[ 3 ] Login NAS via SSH or Telnet, using root account :

wget -P /tmp/ http://mirrors.kernel.org/ubuntu/pool/universe/f/fuse-exfat/exfat-fuse_1.2.3-1_amd64.deb
dpkg -x /tmp/exfat-fuse_1.2.3-1_amd64.deb /tmp/exfat-fuse/
cp /tmp/exfat-fuse/sbin/mount.exfat-fuse /bin/

P.S.

It been tested Synology x86 platform, can directly use ubuntu amd64 version exfat-fuse bin file to mount exfat disk partition.

I also keep exfat-fuse_1.2.3-1_amd64.deb file in my repository.

[ 4 ] Go back to Synology DiskStation, [Control Panel] -> [Shared Folder], create a shared folder on volume1, e.g. usbexfat.

This will create a sub-dir /volume1/usbexfat/usbshare[1...n] will be used as mountpoint, usbshare[1...n] same as the volumeUSB[1...n] mountpoint.

e.g.

volumeUSB1/usbshare will be mapped to /volume1/usbexfat/usbshare1

volumeUSB2/usbshare will be mapped to /volume1/usbexfat/usbshare2

...

volumeUSB[n]/usbshare will be mapped to /volume1/usbexfat/usbshare[n]

P.S.

It will automatically check any direction named: usbexfat in the system as the following orders:

  1. samba shared folder named: usbexfat;
  2. the first volume which does contain the dir name: usbexfat, if not No.1;
  3. the first volume which does not contain the dir name: usbexfat, if not No.2.

No matter what, the dir /volume*/usbexfat will be created. If it is not shared, then it stays invisible.

P.S.

If your own mountpoint does not look like /volume1/usbexfat/usbshare[1...n], you need to modify mountpoint in the mount.sh!

...
MOUNTPOINT="/volume1/usbexfat/usbshare$n"
...

[ 5 ] Copy the files from this repository, and override some system files

wget -P /tmp/ https://github.com/luckylz2git/exfat-synology/raw/master/mount.sh --no-check-certificate
chmod 755 /tmp/mount.sh
mv /bin/mount /bin/mount.bin
mv /tmp/mount.sh /bin/mount

wget -P /tmp/ https://github.com/luckylz2git/exfat-synology/raw/master/synocheckshare.sh --no-check-certificate
chmod 755 /tmp/synocheckshare.sh
mv /usr/syno/bin/synocheckshare /usr/syno/bin/synocheckshare.bin
mv /tmp/synocheckshare.sh /usr/syno/bin/synocheckshare

[ 6 ] Now the exfat partition can be automatically mount! And also can eject the disk from DiskStation Webpage.

[ 7 ] Post-Mount automatically functions

  1. Incremental import for DSLR Photos & Videos, visit: usbsync.

  2. Automatically Rename Photos & Videos, visit: exifname.

##Upgrade

SSH or Telnet:

wget -P /tmp/ https://github.com/luckylz2git/exfat-synology/raw/master/upgrade.sh --no-check-certificate
chmod 755 /tmp/upgrade.sh
/tmp/upgrade.sh

##Uninstall

SSH or Telnet:

if [ -f /usr/syno/bin/synocheckshare.bin ]; then
    rm /usr/syno/bin/synocheckshare
    mv /usr/syno/bin/synocheckshare.bin /usr/syno/bin/synocheckshare
fi
if [ -f /bin/mount.bin ]; then
    rm /bin/mount
    mv /bin/mount.bin /bin/mount
fi

exfat-synology's People

Contributors

luckylz2git avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.