The port smartmontools includes the command line tool. The port gsmartcontrol provides a GUI on top of that, if you want (I've never tried the latter).
It won't work on USB drives without a kernel driver (not available in MacPorts). https://binaryfruit.com/drivedx/usb-drive-support <https://binaryfruit.com/drivedx/usb-drive-support> may have links and instructions (that site is for a paid product but the kernel driver is open source). I haven't tried that, and in particular don't have High Sierra to try it on. > On May 17, 2024, at 18:57, Riccardo Mottola via macports-users > <macports-users@lists.macports.org> wrote: > > Hi, > > Horst Simon wrote: >> I had todo a re-install on my 2010 MacBook Pro with High Sierra from >> scratch, my copy of High sierra I had was corrupted and caused my all kind >> of grief. I finally downloaded a new copy on my iMac using the command line > Got a new disk. > > Using recovery partition I tried to dump/restore the partiton... but half > during the process I got a disk error and the process aborted. Proof that it > is gone. > > at the end, I changed hard disk and had to reinstall. Now salvaging data. > I will reinstall MacPorts from scratch. Safer... and also a "test" like being > a new user. > > I still am a bit disappointed by SMART. > > Does Macports have a tool to get SMART details? On linux there is one quite > comprehensive! > > Riccardo >