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?
-
did you try using the Disk Utility in your utility folder– RuskesCommented Oct 13, 2018 at 20:18
-
1Sorry, I should have mentioned that. Yes I have "Erased" it using DU but as far as I know that doesn't include a "quality check", it just writes a new partition table.– d-bCommented Oct 13, 2018 at 20:29
-
it is called First Aid in DU– RuskesCommented Oct 13, 2018 at 21:01
-
But that just tests the file system, not the hardware, doesn't it?– d-bCommented Oct 13, 2018 at 21:10
-
how do you test hardware ? in testing the disk consistency– RuskesCommented Oct 13, 2018 at 21:14
Add a comment
|
1 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
-
-
2On newer Brew version it is located at
/opt/homebrew/opt/e2fsprogs/sbin/badblocks
– challetCommented Jan 4, 2022 at 11:25