[GH-ISSUE #29] -s/--showedits argument not working #729

Closed
opened 2026-03-12 16:17:12 +03:00 by kerem · 4 comments
Owner

Originally created by @apkehoe on GitHub (Mar 22, 2023).
Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/29

Using the -s argument does not show edits, only runs the script as if it had no command line parameters.

root@DS1:~# /volume1/Data/syno_hdd_db.sh -n -f -r
Synology_HDD_db v1.2.21
DS2415+-j DSM 7.1.1
Using model: ds2415+

HDD/SSD models found: 4
SSD 850 EVO 250GB,EMT0
SSD 860 EVO 1TB,RVT0
ST12000VN0007-2GS116,SC60
ST12000VN0008-2YS101,SC60

No M.2 drives found

No Expansion Units found

SSD 850 EVO 250GB already exists in ds2415+_host_v7.db
SSD 850 EVO 250GB already exists in ds2415+_host_v7.db.new
SSD 860 EVO 1TB already exists in ds2415+_host_v7.db
SSD 860 EVO 1TB already exists in ds2415+_host_v7.db.new
ST12000VN0007-2GS116 already exists in ds2415+_host_v7.db
ST12000VN0007-2GS116 already exists in ds2415+_host_v7.db.new
ST12000VN0008-2YS101 already exists in ds2415+_host_v7.db
ST12000VN0008-2YS101 already exists in ds2415+_host_v7.db.new

DSM successfully checked disk compatibility.
root@DS1:~# /volume1/Data/syno_hdd_db.sh -s
Synology_HDD_db v1.2.21
DS2415+-j DSM 7.1.1
Using model: ds2415+

HDD/SSD models found: 4
SSD 850 EVO 250GB,EMT0
SSD 860 EVO 1TB,RVT0
ST12000VN0007-2GS116,SC60
ST12000VN0008-2YS101,SC60

No M.2 drives found

No Expansion Units found

SSD 850 EVO 250GB already exists in ds2415+_host_v7.db
SSD 850 EVO 250GB already exists in ds2415+_host_v7.db.new
SSD 860 EVO 1TB already exists in ds2415+_host_v7.db
SSD 860 EVO 1TB already exists in ds2415+_host_v7.db.new
ST12000VN0007-2GS116 already exists in ds2415+_host_v7.db
ST12000VN0007-2GS116 already exists in ds2415+_host_v7.db.new
ST12000VN0008-2YS101 already exists in ds2415+_host_v7.db
ST12000VN0008-2YS101 already exists in ds2415+_host_v7.db.new

Re-enabled support disk compatibility.

DSM successfully checked disk compatibility.
root@DS1:~# /volume1/Data/syno_hdd_db.sh --showedits
Synology_HDD_db v1.2.21
DS2415+-j DSM 7.1.1
Using model: ds2415+

HDD/SSD models found: 4
SSD 850 EVO 250GB,EMT0
SSD 860 EVO 1TB,RVT0
ST12000VN0007-2GS116,SC60
ST12000VN0008-2YS101,SC60

No M.2 drives found

No Expansion Units found

SSD 850 EVO 250GB already exists in ds2415+_host_v7.db
SSD 850 EVO 250GB already exists in ds2415+_host_v7.db.new
SSD 860 EVO 1TB already exists in ds2415+_host_v7.db
SSD 860 EVO 1TB already exists in ds2415+_host_v7.db.new
ST12000VN0007-2GS116 already exists in ds2415+_host_v7.db
ST12000VN0007-2GS116 already exists in ds2415+_host_v7.db.new
ST12000VN0008-2YS101 already exists in ds2415+_host_v7.db
ST12000VN0008-2YS101 already exists in ds2415+_host_v7.db.new

Re-enabled support disk compatibility.

DSM successfully checked disk compatibility.
root@DS1:~#
Originally created by @apkehoe on GitHub (Mar 22, 2023). Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/29 Using the -s argument does not show edits, only runs the script as if it had no command line parameters. ``` root@DS1:~# /volume1/Data/syno_hdd_db.sh -n -f -r Synology_HDD_db v1.2.21 DS2415+-j DSM 7.1.1 Using model: ds2415+ HDD/SSD models found: 4 SSD 850 EVO 250GB,EMT0 SSD 860 EVO 1TB,RVT0 ST12000VN0007-2GS116,SC60 ST12000VN0008-2YS101,SC60 No M.2 drives found No Expansion Units found SSD 850 EVO 250GB already exists in ds2415+_host_v7.db SSD 850 EVO 250GB already exists in ds2415+_host_v7.db.new SSD 860 EVO 1TB already exists in ds2415+_host_v7.db SSD 860 EVO 1TB already exists in ds2415+_host_v7.db.new ST12000VN0007-2GS116 already exists in ds2415+_host_v7.db ST12000VN0007-2GS116 already exists in ds2415+_host_v7.db.new ST12000VN0008-2YS101 already exists in ds2415+_host_v7.db ST12000VN0008-2YS101 already exists in ds2415+_host_v7.db.new DSM successfully checked disk compatibility. root@DS1:~# /volume1/Data/syno_hdd_db.sh -s Synology_HDD_db v1.2.21 DS2415+-j DSM 7.1.1 Using model: ds2415+ HDD/SSD models found: 4 SSD 850 EVO 250GB,EMT0 SSD 860 EVO 1TB,RVT0 ST12000VN0007-2GS116,SC60 ST12000VN0008-2YS101,SC60 No M.2 drives found No Expansion Units found SSD 850 EVO 250GB already exists in ds2415+_host_v7.db SSD 850 EVO 250GB already exists in ds2415+_host_v7.db.new SSD 860 EVO 1TB already exists in ds2415+_host_v7.db SSD 860 EVO 1TB already exists in ds2415+_host_v7.db.new ST12000VN0007-2GS116 already exists in ds2415+_host_v7.db ST12000VN0007-2GS116 already exists in ds2415+_host_v7.db.new ST12000VN0008-2YS101 already exists in ds2415+_host_v7.db ST12000VN0008-2YS101 already exists in ds2415+_host_v7.db.new Re-enabled support disk compatibility. DSM successfully checked disk compatibility. root@DS1:~# /volume1/Data/syno_hdd_db.sh --showedits Synology_HDD_db v1.2.21 DS2415+-j DSM 7.1.1 Using model: ds2415+ HDD/SSD models found: 4 SSD 850 EVO 250GB,EMT0 SSD 860 EVO 1TB,RVT0 ST12000VN0007-2GS116,SC60 ST12000VN0008-2YS101,SC60 No M.2 drives found No Expansion Units found SSD 850 EVO 250GB already exists in ds2415+_host_v7.db SSD 850 EVO 250GB already exists in ds2415+_host_v7.db.new SSD 860 EVO 1TB already exists in ds2415+_host_v7.db SSD 860 EVO 1TB already exists in ds2415+_host_v7.db.new ST12000VN0007-2GS116 already exists in ds2415+_host_v7.db ST12000VN0007-2GS116 already exists in ds2415+_host_v7.db.new ST12000VN0008-2YS101 already exists in ds2415+_host_v7.db ST12000VN0008-2YS101 already exists in ds2415+_host_v7.db.new Re-enabled support disk compatibility. DSM successfully checked disk compatibility. root@DS1:~# ```
kerem closed this issue 2026-03-12 16:17:18 +03:00
Author
Owner

@007revad commented on GitHub (Mar 22, 2023):

It only shows the edits for the <model>_host_v7.db and <model>_host_v7.db.new files and all of your drives are already exists in those db files so no there was no edits to show.

<!-- gh-comment-id:1480398416 --> @007revad commented on GitHub (Mar 22, 2023): It only shows the edits for the `<model>_host_v7.db` and `<model>_host_v7.db.new` files and all of your drives are already exists in those db files so no there was no edits to show.
Author
Owner

@apkehoe commented on GitHub (Mar 22, 2023):

I tried this on my DS720+ and got the same output. The first time I ran the script it made updates as I had drives not in the db. I've only been using the script for a few days but I've never been able to see the showedits data.

-rw-r--r-- 1 root root 74K Mar 20 14:31 /var/lib/disk-compatibility/ds720+_host_v7.db
-rw-r--r-- 1 root root 73K Mar 20 06:07 /var/lib/disk-compatibility/ds720+_host_v7.db.bak
-rw-r--r-- 1 root root 74K Mar 20 14:31 /var/lib/disk-compatibility/ds720+_host_v7.db.new
-rw-r--r-- 1 root root   8 Sep 22 03:11 /var/lib/disk-compatibility/ds720+_host_v7.release
-rw-r--r-- 1 root root   4 Mar 20 06:07 /var/lib/disk-compatibility/ds720+_host_v7.version

root@DS3:~# /volume1/Data/syno_hdd_db.sh -s
Synology_HDD_db v1.2.21
DS720+ DSM 7.1.1

HDD/SSD models found: 1
WD80EFZX-68UW8N0,0A83

M.2 drive models found: 1
WD_BLACK SN770 2TB,731100WD

No Expansion Units found

WD80EFZX-68UW8N0 already exists in ds720+_host_v7.db
WD80EFZX-68UW8N0 already exists in ds720+_host_v7.db.new
WD_BLACK SN770 2TB already exists in ds720+_host_v7.db
WD_BLACK SN770 2TB already exists in ds720+_host_v7.db.new

Re-enabled support disk compatibility.

Re-enabled support memory compatibility.

M.2 volume support already enabled.

DSM successfully checked disk compatibility.
root@DS3:~# /volume1/Data/syno_hdd_db.sh -n -f -r
Synology_HDD_db v1.2.21
DS720+ DSM 7.1.1

HDD/SSD models found: 1
WD80EFZX-68UW8N0,0A83

M.2 drive models found: 1
WD_BLACK SN770 2TB,731100WD

No Expansion Units found

WD80EFZX-68UW8N0 already exists in ds720+_host_v7.db
WD80EFZX-68UW8N0 already exists in ds720+_host_v7.db.new
WD_BLACK SN770 2TB already exists in ds720+_host_v7.db
WD_BLACK SN770 2TB already exists in ds720+_host_v7.db.new

Disabled support disk compatibility.

Disabled support memory compatibility.

M.2 volume support already enabled.

DSM successfully checked disk compatibility.
root@DS3:~#

<!-- gh-comment-id:1480401366 --> @apkehoe commented on GitHub (Mar 22, 2023): I tried this on my DS720+ and got the same output. The first time I ran the script it made updates as I had drives not in the db. I've only been using the script for a few days but I've never been able to see the showedits data. ``` -rw-r--r-- 1 root root 74K Mar 20 14:31 /var/lib/disk-compatibility/ds720+_host_v7.db -rw-r--r-- 1 root root 73K Mar 20 06:07 /var/lib/disk-compatibility/ds720+_host_v7.db.bak -rw-r--r-- 1 root root 74K Mar 20 14:31 /var/lib/disk-compatibility/ds720+_host_v7.db.new -rw-r--r-- 1 root root 8 Sep 22 03:11 /var/lib/disk-compatibility/ds720+_host_v7.release -rw-r--r-- 1 root root 4 Mar 20 06:07 /var/lib/disk-compatibility/ds720+_host_v7.version ``` ``` root@DS3:~# /volume1/Data/syno_hdd_db.sh -s Synology_HDD_db v1.2.21 DS720+ DSM 7.1.1 HDD/SSD models found: 1 WD80EFZX-68UW8N0,0A83 M.2 drive models found: 1 WD_BLACK SN770 2TB,731100WD No Expansion Units found WD80EFZX-68UW8N0 already exists in ds720+_host_v7.db WD80EFZX-68UW8N0 already exists in ds720+_host_v7.db.new WD_BLACK SN770 2TB already exists in ds720+_host_v7.db WD_BLACK SN770 2TB already exists in ds720+_host_v7.db.new Re-enabled support disk compatibility. Re-enabled support memory compatibility. M.2 volume support already enabled. DSM successfully checked disk compatibility. root@DS3:~# /volume1/Data/syno_hdd_db.sh -n -f -r Synology_HDD_db v1.2.21 DS720+ DSM 7.1.1 HDD/SSD models found: 1 WD80EFZX-68UW8N0,0A83 M.2 drive models found: 1 WD_BLACK SN770 2TB,731100WD No Expansion Units found WD80EFZX-68UW8N0 already exists in ds720+_host_v7.db WD80EFZX-68UW8N0 already exists in ds720+_host_v7.db.new WD_BLACK SN770 2TB already exists in ds720+_host_v7.db WD_BLACK SN770 2TB already exists in ds720+_host_v7.db.new Disabled support disk compatibility. Disabled support memory compatibility. M.2 volume support already enabled. DSM successfully checked disk compatibility. root@DS3:~# ```
Author
Owner

@apkehoe commented on GitHub (Mar 23, 2023):

Update added to ds720+_host_v7.db:

"WD80EFZX-68UW8N0":{"default":{"compatibility_interval":[{"compatibility":"support","not_yet_rolling_status":"support","fw_dsm_update_status_notify":false,"barebone_installable":true}]}},"WD_BLACK SN770 2TB":{"default":{"compatibility_interval":[{"compatibility":"support","not_yet_rolling_status":"support","fw_dsm_update_status_notify":false,"barebone_installable":true}]}}

<!-- gh-comment-id:1480405515 --> @apkehoe commented on GitHub (Mar 23, 2023): Update added to ds720+_host_v7.db: `"WD80EFZX-68UW8N0":{"default":{"compatibility_interval":[{"compatibility":"support","not_yet_rolling_status":"support","fw_dsm_update_status_notify":false,"barebone_installable":true}]}},"WD_BLACK SN770 2TB":{"default":{"compatibility_interval":[{"compatibility":"support","not_yet_rolling_status":"support","fw_dsm_update_status_notify":false,"barebone_installable":true}]}} `
Author
Owner

@apkehoe commented on GitHub (Mar 23, 2023):

Okay, I understand now. It will only show edits if you run it with -s AND it needs to make changes. I thought it would show what edits had been previously made to the existing files.

<!-- gh-comment-id:1480414376 --> @apkehoe commented on GitHub (Mar 23, 2023): Okay, I understand now. It will only show edits if you run it with -s AND it needs to make changes. I thought it would show what edits had been previously made to the existing files.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Synology_HDD_db#729
No description provided.