*New 12.1 series Release:
2020-04-17: XigmaNAS - released

*New 11.3 series Release:
2020-04-16: XigmaNAS - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Check if HDD has spun down?

Hard disks, HDD, RAID Hardware, disk controllers, SATA, PATA, SCSI, IDE, On Board, USB, Firewire, CF (Compact Flash)
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Posts: 1
Joined: 12 Aug 2012 12:51
Status: Offline

Check if HDD has spun down?


Post by kurjak »

How can I check if HDD has spun down?

User avatar
Advanced User
Advanced User
Posts: 201
Joined: 23 Jun 2012 11:37
Location: Bielefeld, Germany
Status: Offline

Re: Check if HDD has spun down?


Post by lux »

i use this script:

Code: Select all


echo "Checking HDD's activity..."

for i in $(sysctl -n kern.disks);
do smartctl -n standby -q silent -H /dev/$i;
case $? in 2)msg=StandBy;;
echo $i $msg;
Home:11.3.x.7014/emb@32GB USB|1270v2@X9SCA-F|ECC32GB|i340-T4[lagg@GS108Tv2&smb-mch]|M1015@IT|9HDD~40TB@3xRaidZ1+1HDD+2SSD i335&i520+1xi800P@ZIL|~44W idle@SS-400FL2|Nanoxia Deep Silence 6B|24/7
Services: CIFS, FTP, TFTP, SSH, NFS, Rsync, Syncthing, Webserver, BitTorrent, VirtualBox | Extensions: OBI, TheBrig[certbot, Asterisk] | Extensions via vBox: Pi-hole & Jellyfin @DebianVM's
Test:12.x/emb@16GB USB|X3 420e@M4A88TD-V|16GB|i350-T2|M1015@IT|8xHDD+3xSSD[different Size&Brand]RaidZ1+2|for TESTing only

Post Reply

Return to “Hard disk & controller”