From 4d28c84eb721cd701ac553624b3b16384b77ed8b Mon Sep 17 00:00:00 2001 From: dpgilbert <dpgilbert@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Sat, 26 Feb 2022 18:30:35 +0000 Subject: [PATCH] ataprint.cpp: add suggestion when 'Read Device Identity failed: xxx' error generated to look at --device-type=TYPE variants git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5336 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- smartmontools/ChangeLog | 7 +++++++ smartmontools/ataprint.cpp | 2 ++ 2 files changed, 9 insertions(+) diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog index 62379726a..812275209 100644 --- a/smartmontools/ChangeLog +++ b/smartmontools/ChangeLog @@ -1,5 +1,12 @@ $Id$ +2022-02-26 Douglas Gilbert <dgilbert@interlog.com> + + ataprint.cpp: add suggestion when 'Read Device Identity + failed: xxx' error generated to look at + --device-type=TYPE variants. May help with USB-C connected + NVMe enclosures (e.g. with M-2 modules inside) + 2022-02-26 Christian Franke <franke@computer.org> configure.ac: Print 'deprecated' warning for '--with-signal-func'. diff --git a/smartmontools/ataprint.cpp b/smartmontools/ataprint.cpp index 2edefe940..3a64c8b30 100644 --- a/smartmontools/ataprint.cpp +++ b/smartmontools/ataprint.cpp @@ -3480,6 +3480,8 @@ int ataPrintMain (ata_device * device, const ata_print_options & options) if (retid < 0) { pout("Read Device Identity failed: %s\n\n", (device->get_errno() ? device->get_errmsg() : "Unknown error")); + pout("If this is a USB connected device, look at the various " + "--device=TYPE variants\n"); failuretest(MANDATORY_CMD, returnval|=FAILID); } else if (!nonempty(&drive, sizeof(drive))) { -- GitLab