Giter Site home page Giter Site logo

007revad / synology_dsm_reinstall Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 0.0 467 KB

Easily re-install the same DSM version without losing any data or settings

License: MIT License

Shell 100.00%
diskstation rackstation synology synology-disk-station synology-dsm synology-nas dsm

synology_dsm_reinstall's Introduction

Synology DSM re-install

Donate committers.top badge

Description

Easily re-install the same DSM version without losing any data or settings

  • If you need to re-install the same full release DSM version this is much easier than resetting the Synology.
  • It can also be used to roll back from an update version to the same full release version.

Important

You must download a full version pat file. If you download a small update pat file you will get an error saying:
The update that you are applying is not compatible with this version of DSM

How to tell if a .pat file is a full release or a small update

  • Full release DSM pat files are:
    • Normally named DSM_model_build.pat like DSM_DS224+_64570.pat
    • Are 270MB or larger and always much larger than small updates.
  • Small update pat files are:
    • Always named synology_arch_model.pat like synology_geminilake_224+.pat
    • Are 1MB to 130MB and always much smaller than full updates.
  • Note: Sometimes a full release is named like a small update .pat file when Synology messes up the file naming.

Steps to reinstall DSM

  1. Disable DSM Auto Update via "Control Panel > Update & Restore > Update Settings > Notify me... > OK".
  2. Download the same DSM full release build version from Synology's download site.
  3. Run this script via SSH or from Task Scheduler.
  4. Go to "Control Panel > Update & Restore > Manual DSM Update".
  5. Browse to the DSM .pat file you downloaded in step 2 and click Open then OK.
  6. Optionally unplug your router from the Internet after DSM has started installing to prevent DSM updating to the latest update version.
  7. Click Update.
  8. Wait for the Synology NAS to finished updating and rebooting.
  9. If you unpluged your router from the Internet in step 6, reconnect it now.

Download the script

  1. Download the latest version Source code (zip) from https://github.com/007revad/Synology_DSM_reinstall/releases
  2. Save the download zip file to a folder on the Synology.
  3. Unzip the zip file.

How to run the script

You can run the script either via SSH or in Task Scheduler.

Scheduling the script in Synology's Task Scheduler

Running the script via SSH

How to enable SSH and login to DSM via SSH

Note: Replace /volume1/scripts/ with the path to where the script is located.

sudo -s /volume1/scripts/syno_dsm_reinstall.sh

Screenshots

Here's the result after running the script.

The script has edited DSM's VERSION file to a lower build number

Select your downloaded DSM .pat file

No complaints from DSM

synology_dsm_reinstall's People

Contributors

007revad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

synology_dsm_reinstall's Issues

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.