mirror of
https://github.com/007revad/Synology_HDD_db.git
synced 2026-04-25 13:45:59 +03:00
[GH-ISSUE #37] Unknown database type #521
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Synology_HDD_db#521
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @d4v2 on GitHub (Mar 25, 2023).
Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/37
Hello,
Thanks for your work!
I've tried the script on a 2421rp+ and I get this :
ERROR Unknown database type rs2421rp+_host_v7.db!
WD120EFBX-68B0EN0 already exists in rs2421rp+_host_v7.db.new
ERROR Unknown database type rs2421rp+_host_v7.db!
WD4003FFBX-68MU3N0 already exists in rs2421rp+_host_v7.db.new
ERROR Unknown database type rs2421rp+_host_v7.db!
SNV3510-800G already exists in rs2421rp+_host_v7.db.new
Any idea?
If I run the script with -f at the end, it's working perfectly!
@007revad commented on GitHub (Mar 26, 2023):
It's strange that the
rs2421rp+_host_v7.db.newfile was of a known database type, yet thers2421rp+_host_v7.dbwas not.Can you run the following command and reply with the output:
cat "/var/lib/disk-compatibility/rs2421rp+_host_v7.db" | cut -c1-30@d4v2 commented on GitHub (Mar 26, 2023):
Thanks for your answer.
I've found that the -f changes support_disk_compatibility to no as well and that works.
I've typed your command and here is the output : "disk_compatbility_info":{"WD4
@007revad commented on GitHub (Mar 26, 2023):
It's strange that the output was
"disk_compatbility_info":{"WD4as it should have been{"disk_compatbility_info":{"WDFor some reason it's missing the curly brace at the start of the file. I wonder how many of your other .db files are the same.
Can you run this command which will output the first 30 characters of each db file and their name.
for f in /var/lib/disk-compatibility/*_v7.db*; do b="$(basename "$f")"; a=$(cat "$f" | cut -c1-30); echo "$a $b"; done@d4v2 commented on GitHub (Mar 26, 2023):
You were right! Here is the output :
I've corrected the file adding the curly brace, applied your script again and done, all working perfectly now.
Thanks again your your job and help!
@007revad commented on GitHub (Mar 26, 2023):
Excellent.