SMART data "Bad sectors" reports "-1" bad sectors

Bug #905806 reported by arrange
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-disk-utility (Ubuntu)
New
Undecided
Unassigned

Bug Description

What happened:
The "Bad sectors" and "Current Pending" report "-1", but smartctl reports this raw value at 4294967295.

What I expected to happen:
The reported raw value should be as reported by the disk (4294967295).

What seems to be the problem is that this raw value (pretty_value) is of uint64_t type in libatasmart/atasmart.h (typedef struct SkSmartAttributeParsedData), but is casted to gint when printed by gnome-disk-utility (gnome-disk-utility-2.30.1/src/gdu-gtk/gdu-ata-smart-dialog.c: 1615). Some SMART data seems not to keep the real count of sectors, but their own raw value.

smartctl output:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate 0x000f 108 094 006 Pre-fail Always - 242254234
  3 Spin_Up_Time 0x0003 094 093 000 Pre-fail Always - 0
  4 Start_Stop_Count 0x0032 097 097 020 Old_age Always - 3596
  5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
  7 Seek_Error_Rate 0x000f 084 060 030 Pre-fail Always - 300356656
  9 Power_On_Hours 0x0032 091 091 000 Old_age Always - 8720
 10 Spin_Retry_Count 0x0013 100 100 034 Pre-fail Always - 0
 12 Power_Cycle_Count 0x0032 097 097 020 Old_age Always - 3637
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
189 High_Fly_Writes 0x003a 001 001 000 Old_age Always - 11112
190 Airflow_Temperature_Cel 0x0022 057 046 045 Old_age Always - 43 (Min/Max 21/44)
192 Power-Off_Retract_Count 0x0032 097 097 000 Old_age Always - 7157
193 Load_Cycle_Count 0x0032 001 001 000 Old_age Always - 289579
194 Temperature_Celsius 0x0022 043 054 000 Old_age Always - 43 (0 10 0 0)
195 Hardware_ECC_Recovered 0x001a 048 047 000 Old_age Always - 37723365
197 Current_Pending_Sector 0x0012 001 001 000 Old_age Always - 4294967295
198 Offline_Uncorrectable 0x0010 001 001 000 Old_age Offline - 4294967295
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 Data_Address_Mark_Errs 0x0032 100 253 000 Old_age Always - 0

Revision history for this message
arrange (samozrejmost) wrote :
arrange (samozrejmost)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.