A pretty expensive (Samsung) USB-drive I have causes weird errors. The problem might be a computer I have connected it to (this computer's SSD broke down in a similar way) but to rule out that it is this USB stick that is broken I would like to perform a hardware test on it. How can I do that on a Mac?
Test a USB-drive/SSD for bad sectors/blocks
hardwaressdusb
Related Question
- MacBook – Should I put the SSD in the Optical or Main Bay when replacing Optical Drive
- MacBook Pro USB Ports Only Work With External Hard Drive
- Implications of using a USB SSD drive to run VM images off
- MacBook – How to Test Stability of your USB Connections
- IMac – Use external USB 3.0 SSD with 2012 iMac for the OS
- MacOS – External USB-C SSD not recognized on MacBook Pro
- MacBook – External NVMe Sabrent SSD not recognised by Catalina Macbook Pro 16″ over USB-C, only USB-A
Best Answer
Open the Terminal.app in Applications/Utilities.
Cut and paste this inside to install Brew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install e2fsprogs with brew:
brew install e2fsprogs
Type
diskutil list
to find your device (/dev/diskX)Run
badblocks
on your device: (replace the X with your device number)/usr/local/Cellar/e2fsprogs/1.44.3/sbin/badblocks -v /dev/diskX