#1769 closed defect (invalid)

Getting error when adding a new drive to drivedb.h

Reported by: Cassiano.Silva Owned by:
Priority: minor Milestone:
Component: drivedb Version:
Keywords: Cc:

Description

Hello,

I added a new drive to the drivedb.h file, similarly to another drive we already have in that file.
When I try to run smartctl I get following error message: Syntax error in preset option string.

As I mentioned, it's similar to another drive we already had in the file, but the error appears.
Is it actually possible to add a new drive to the drivedb.h file and run it in the same folder?

Thanks,
Cassiano

Attachments (1)

drivedb.h (244.3 KB ) - added by Cassiano.Silva 13 months ago.
The drive I added goes from line 199 to 233. The error message points to line 202.

Download all attachments as: .zip

Change History (3)

by Cassiano.Silva, 13 months ago

Attachment: drivedb.h added

The drive I added goes from line 199 to 233. The error message points to line 202.

comment:1 by Christian Franke, 13 months ago

Component: alldrivedb
Keywords: smartdb removed

This line exceeds a historic internal 32 char limit for the name:

  -v 237,raw48,Total_Flash_LBAs_Written_Expanded

After fixing this, run this to see more attribute names which are too long:

 /usr/sbin/smartctl [-B /path/to/drivedb.h] -P showall SFSA032GM2AK1TA-I-6B-11P-STD

Note that it is not recommented to change drivedb.h locally. Create a local drive databbase file instead, see the FAQ.

comment:2 by Christian Franke, 13 months ago

Resolution: invalid
Status: newclosed

This is not a smartctl bug.

Note: See TracTickets for help on using tickets.