From d5fadf4056da4fc438ba4729302b748ed962e22e Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 7 May 2025 05:35:43 +1000 Subject: [PATCH 01/11] Create 2025_plus_models.md --- 2025_plus_models.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 2025_plus_models.md diff --git a/2025_plus_models.md b/2025_plus_models.md new file mode 100644 index 0000000..0461ded --- /dev/null +++ b/2025_plus_models.md @@ -0,0 +1,41 @@ +## 2025 series DS Plus models + +### Deleting and recreating your storage pool on unverified HDDs + +You obviously can't download Synology HDD db to a volume because you've just deleted your storage pool. So you'd first need to download Synology HDD db to a system folder and run it from there. + +1. Create and cd to /opt + ``` + sudo mkdir /opt && sudo chmod 775 /opt + ``` + +2. Create /opt + ``` + sudo mkdir -m775 /opt + ``` + +2. cd to /opt + ``` + cd /opt || (echo "Failed to CD to /opt"; exit 1) + ``` + +3. Download syno_hdd_db.sh to /opt + ``` + sudo curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_db.sh" + ``` + +4. Download syno_hdd_vendor_ids.txt to /opt + ``` + sudo curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_vendor_ids.txt" + ``` + +5. Then set permissions on /opt/syno_hdd_db.sh + ``` + sudo chmod 750 /opt/syno_hdd_db.sh + ``` + +6. Finally run + ```sudo -s /opt/syno_hdd_db.sh``` + +7. You can now create your storage pool from Storage Manager + From 70e33cc7d2b450f4e65cce50824d55ff4540e0ec Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 7 May 2025 05:36:48 +1000 Subject: [PATCH 02/11] Update 2025_plus_models.md --- 2025_plus_models.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2025_plus_models.md b/2025_plus_models.md index 0461ded..c7aee28 100644 --- a/2025_plus_models.md +++ b/2025_plus_models.md @@ -2,7 +2,7 @@ ## 2025 series DS Plus models ### Deleting and recreating your storage pool on unverified HDDs -You obviously can't download Synology HDD db to a volume because you've just deleted your storage pool. So you'd first need to download Synology HDD db to a system folder and run it from there. +You can't download Synology HDD db to a volume because you've just deleted your storage pool. So you'd first need to download Synology HDD db to a system folder and run it from there. 1. Create and cd to /opt ``` From dc70051410497e42aedd180f976716f8e315ef01 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 7 May 2025 05:39:04 +1000 Subject: [PATCH 03/11] Update 2025_plus_models.md --- 2025_plus_models.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/2025_plus_models.md b/2025_plus_models.md index c7aee28..f0f163a 100644 --- a/2025_plus_models.md +++ b/2025_plus_models.md @@ -34,8 +34,10 @@ ### Deleting and recreating your storage pool on unverified HDDs sudo chmod 750 /opt/syno_hdd_db.sh ``` -6. Finally run - ```sudo -s /opt/syno_hdd_db.sh``` +6. Finally run syno_hdd_db. You don't need any options at this point. + ``` + sudo -s /opt/syno_hdd_db.sh + ``` -7. You can now create your storage pool from Storage Manager +8. You can now create your storage pool from Storage Manager From 5fa2d5b753e4658a52863f44abda4123773b3167 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 7 May 2025 05:39:39 +1000 Subject: [PATCH 04/11] Update 2025_plus_models.md --- 2025_plus_models.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/2025_plus_models.md b/2025_plus_models.md index f0f163a..b614492 100644 --- a/2025_plus_models.md +++ b/2025_plus_models.md @@ -4,6 +4,8 @@ ### Deleting and recreating your storage pool on unverified HDDs You can't download Synology HDD db to a volume because you've just deleted your storage pool. So you'd first need to download Synology HDD db to a system folder and run it from there. +#### Via SSH + 1. Create and cd to /opt ``` sudo mkdir /opt && sudo chmod 775 /opt From a6231f86c68b53e11ead379624a2ad763fe36472 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 7 May 2025 05:41:49 +1000 Subject: [PATCH 05/11] Update 2025_plus_models.md --- 2025_plus_models.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/2025_plus_models.md b/2025_plus_models.md index b614492..05b9eac 100644 --- a/2025_plus_models.md +++ b/2025_plus_models.md @@ -4,6 +4,8 @@ ### Deleting and recreating your storage pool on unverified HDDs You can't download Synology HDD db to a volume because you've just deleted your storage pool. So you'd first need to download Synology HDD db to a system folder and run it from there. +You can do this via SSH or via a scheduled task. + #### Via SSH 1. Create and cd to /opt @@ -43,3 +45,17 @@ #### Via SSH 8. You can now create your storage pool from Storage Manager +#### Via a scheduled task + + +``` +sudo mkdir -m775 /opt +cd /opt || (echo "Failed to CD to /opt"; exit 1) +sudo curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_db.sh" +sudo curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_vendor_ids.txt" +sudo chmod 750 /opt/syno_hdd_db.sh +sudo -s /opt/syno_hdd_db.sh +``` + +You can now create your storage pool from Storage Manager + From b3b10703fcf62b4153b0fe15272d17d1d6a9cfb0 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 7 May 2025 05:42:45 +1000 Subject: [PATCH 06/11] Update 2025_plus_models.md --- 2025_plus_models.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/2025_plus_models.md b/2025_plus_models.md index 05b9eac..5b16db0 100644 --- a/2025_plus_models.md +++ b/2025_plus_models.md @@ -49,12 +49,12 @@ #### Via a scheduled task ``` -sudo mkdir -m775 /opt +mkdir -m775 /opt cd /opt || (echo "Failed to CD to /opt"; exit 1) -sudo curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_db.sh" -sudo curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_vendor_ids.txt" -sudo chmod 750 /opt/syno_hdd_db.sh -sudo -s /opt/syno_hdd_db.sh +curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_db.sh" +curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_vendor_ids.txt" +chmod 750 /opt/syno_hdd_db.sh +/opt/syno_hdd_db.sh ``` You can now create your storage pool from Storage Manager From dd8fd54a992375186d3eaf33eae115f62734ec21 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 7 May 2025 05:49:22 +1000 Subject: [PATCH 07/11] Update 2025_plus_models.md --- 2025_plus_models.md | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/2025_plus_models.md b/2025_plus_models.md index 5b16db0..5f7ae7a 100644 --- a/2025_plus_models.md +++ b/2025_plus_models.md @@ -47,15 +47,21 @@ #### Via SSH #### Via a scheduled task - -``` -mkdir -m775 /opt -cd /opt || (echo "Failed to CD to /opt"; exit 1) -curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_db.sh" -curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_vendor_ids.txt" -chmod 750 /opt/syno_hdd_db.sh -/opt/syno_hdd_db.sh -``` +1. Go to **Control Panel** > **Task Scheduler** > click **Create** > **Scheduled Task** > **User-defined script**. +2. Enter a task name. +3. Select **root** as the user (The script needs to run as root). +4. Untick **Enable**. +5. Click **Task Settings**. +6. In the box under **User-defined script** paste the following: + ``` + mkdir -m775 /opt + cd /opt || (echo "Failed to CD to /opt"; exit 1) + curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_db.sh" + curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_vendor_ids.txt" + chmod 750 /opt/syno_hdd_db.sh + /opt/syno_hdd_db.sh + ``` +7. Click **OK** to save the settings. You can now create your storage pool from Storage Manager From 3298971e79225ed92cc2c016c40ed37ac5d3ebb3 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 7 May 2025 05:58:18 +1000 Subject: [PATCH 08/11] Update 2025_plus_models.md --- 2025_plus_models.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/2025_plus_models.md b/2025_plus_models.md index 5f7ae7a..2196002 100644 --- a/2025_plus_models.md +++ b/2025_plus_models.md @@ -43,7 +43,8 @@ #### Via SSH sudo -s /opt/syno_hdd_db.sh ``` -8. You can now create your storage pool from Storage Manager +8. If Storage Manager is already open close then open it, or refresh the web page. +9. You can now create your storage pool from Storage Manager. #### Via a scheduled task @@ -52,7 +53,8 @@ #### Via a scheduled task 3. Select **root** as the user (The script needs to run as root). 4. Untick **Enable**. 5. Click **Task Settings**. -6. In the box under **User-defined script** paste the following: +6. Tick **Send run details by email** and enter your email address. +7. In the box under **User-defined script** paste the following: ``` mkdir -m775 /opt cd /opt || (echo "Failed to CD to /opt"; exit 1) @@ -61,7 +63,8 @@ #### Via a scheduled task chmod 750 /opt/syno_hdd_db.sh /opt/syno_hdd_db.sh ``` -7. Click **OK** to save the settings. - -You can now create your storage pool from Storage Manager - +8. Click **OK** > **OK** > type your password > **Submit** to save the scheduled task. +9. Now select the scheduld task and click RUn. +10. Check your emails to make sure the schedule task ran without any error. +11. If Storage Manager is already open close then open it, or refresh the web page. +12. You can now create your storage pool from Storage Manager. From d0d166f741772d552ca9037b9d6537b1183f1fc3 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 7 May 2025 06:08:00 +1000 Subject: [PATCH 09/11] Update 2025_plus_models.md --- 2025_plus_models.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/2025_plus_models.md b/2025_plus_models.md index 2196002..8117d0c 100644 --- a/2025_plus_models.md +++ b/2025_plus_models.md @@ -48,6 +48,12 @@ #### Via SSH #### Via a scheduled task +First setup email notifications (if you haven't already): + +1. Go to **Control Panel** > **Notification** > **Email** > click **Setup**. + +Then create the scheduled task: + 1. Go to **Control Panel** > **Task Scheduler** > click **Create** > **Scheduled Task** > **User-defined script**. 2. Enter a task name. 3. Select **root** as the user (The script needs to run as root). From 27fcdf0814a305030a4e2b0bc235970d8da99553 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 7 May 2025 06:08:54 +1000 Subject: [PATCH 10/11] Update 2025_plus_models.md --- 2025_plus_models.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2025_plus_models.md b/2025_plus_models.md index 8117d0c..de3e49a 100644 --- a/2025_plus_models.md +++ b/2025_plus_models.md @@ -70,7 +70,7 @@ #### Via a scheduled task /opt/syno_hdd_db.sh ``` 8. Click **OK** > **OK** > type your password > **Submit** to save the scheduled task. -9. Now select the scheduld task and click RUn. -10. Check your emails to make sure the schedule task ran without any error. +9. Now select the scheduld task and click **Run** > **OK**. +10. Check your emails to make sure the scheduled task ran without any error. 11. If Storage Manager is already open close then open it, or refresh the web page. 12. You can now create your storage pool from Storage Manager. From 6b35f5517aafdc631094145070d69a07f54cd855 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 7 May 2025 06:11:23 +1000 Subject: [PATCH 11/11] Update 2025_plus_models.md --- 2025_plus_models.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2025_plus_models.md b/2025_plus_models.md index de3e49a..f6ec618 100644 --- a/2025_plus_models.md +++ b/2025_plus_models.md @@ -67,7 +67,7 @@ #### Via a scheduled task curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_db.sh" curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_vendor_ids.txt" chmod 750 /opt/syno_hdd_db.sh - /opt/syno_hdd_db.sh + /opt/syno_hdd_db.sh -e ``` 8. Click **OK** > **OK** > type your password > **Submit** to save the scheduled task. 9. Now select the scheduld task and click **Run** > **OK**.