To install smartctl
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install smartmontools
find /usr -name smartctl
cd /Users/admin/
mkdir .bin
cd /.bin
cd /Users/admin/.bin/
mkdir shell-tools
cd shell-tools/
mkdir smartctl
find /usr -name smartctl
*Check the first location, it will not be the same. This is from the find command above.*
ln -s /usr/local/Cellar/smartmontools/6.5/bin/smartctl /Users/admin/.bin/shell-tools/smartctl/smartctl
nano /Users/admin/.bash_profile
\-> add: PATH=“$PATH:$HOME/.bin/shell-tools/smartctl”
*Close Terminal App and reopen.
Now you can use the smartctl command.
Ex:
df
smartctl -a disk1
No comments:
Post a Comment