Comment 6 for bug 1773150

Revision history for this message
Brendan Johnson (brendan.r.johnson) wrote : Re: [2.4.0~rc1] smartctl verify fails due to Unicode in Disk Vendor Name

I am also having the problem.

-----------------------------------------
INFO: Veriying SMART support for the following drive: /dev/sdf
INFO: Running command: sudo -n smartctl --all /dev/sdf
Traceback (most recent call last):
  File "/tmp/user_data.sh.WYaUVg/scripts/testing/smartctl-validate", line 338, in <module>
    if not execute_smartctl(args.blockdevice, args.test):
  File "/tmp/user_data.sh.WYaUVg/scripts/testing/smartctl-validate", line 275, in execute_smartctl
    device_type, bus_ids = check_SMART_support(blockdevice)
  File "/tmp/user_data.sh.WYaUVg/scripts/testing/smartctl-validate", line 168, in check_SMART_support
    blockdevice, ['--all'], device, output=True, stderr=STDOUT)
  File "/tmp/user_data.sh.WYaUVg/scripts/testing/smartctl-validate", line 69, in run_smartctl
    return check_output(cmd, timeout=TIMEOUT, **kwargs).decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x99 in position 358: invalid start byte

When I run sudo -n smartctl --all /dev/sdX on one of drives returning the above error I see the following for product ID:

Add. Product Id: DELLâ–’ EQ