Difference between revisions of "Western Digital Green - Drive Fix - Linux"

Rearrange and implement recommended approach; formatting; spelling
(Marked this version for translation)
(Rearrange and implement recommended approach; formatting; spelling)
Tags: Mobile web edit Mobile edit
Line 22: Line 22:


<!--T:7-->
<!--T:7-->
If you have a Western Digital Green drive, please check your '''SMART''' information before it's too late. To do this you will need to install the package called '''smartmontools''' :
If you have a Western Digital Green drive, please check your '''SMART''' information before it's too late. To do this you will need to install the package called '''smartmontools''' with pamac, octopi, or pacman:


<!--T:8-->
<!--T:8-->
$ sudo pacman -S smartmontools
{{UserCmd|command=sudo pacman -S smartmontools}}


<!--T:9-->
<!--T:10-->
or install via pamac or octopi.
Now check like this changing '''sda''' to whatever your Green drive is. <br>
(Use lsblk in terminal or gparted or i-nex or something to work out which drive it is.):


<!--T:10-->
<!--T:11-->
Now check like this changing '''sda''' to whatever your Green drive is. (Use lsblk in terminal or gparted or i-nex or something to work out which drive it is.):
{{UserCmd|command=sudo smartctl -A /dev/sda | grep "^193"}}


<!--T:11-->
$ sudo smartctl -A /dev/sda | grep "^193"
  193 Load_Cycle_Count        0x0032  253  253  
  193 Load_Cycle_Count        0x0032  253  253  
  000    Old_age  Always      -      1991353
  000    Old_age  Always      -      1991353
Line 45: Line 43:
Here is how the output should look when this isn't a problem:
Here is how the output should look when this isn't a problem:


<!--T:14-->
<!--T:14-->
$ sudo smartctl -A /dev/sdb | grep "^193"
{{UserCmd|command=sudo smartctl -A /dev/sdb | grep "^193"}}


<!--T:15-->
<!--T:15-->
193 Load_Cycle_Count        0x0032  200  200   
193 Load_Cycle_Count        0x0032  200  200   
  000    Old_age  Always      -      721
  000    Old_age  Always      -      721


Line 59: Line 57:


<!--T:18-->
<!--T:18-->
But we arn't going to use that. Instead we are going to use a Linux unnofficial alternative called '''idle3-tools'''. It is already packaged in Manjaro so no need to compile it. but here is the source [http://idle3-tools.sourceforge.net]
But we aren't going to use that. Instead we are going to use a Linux unofficial alternative called '''idle3-tools'''. It is already packaged in Manjaro so no need to compile it. but here is the source [http://idle3-tools.sourceforge.net]


<!--T:19-->
<!--T:19-->
Install '''idle3-tools''' with pamac or octopi or like this in the terminal:
Install '''idle3-tools''' with pamac or octopi or like this in the terminal:


<!--T:20-->
<!--T:20-->
$ sudo pacman -S idle3-tools
{{UserCmd|command=sudo pacman -S idle3-tools}}
 


<!--T:21-->
<!--T:21-->
Now check what your drives timer is currently set as. (Replace sda if needed with your own drive.):
Now check what your drives timer is currently set as. (replace sda if needed with your own drive.):


<!--T:22-->
<!--T:22-->
$ sudo idle3ctl -g /dev/sda
{{UserCmd|command=sudo idle3ctl -g /dev/sda}}


<!--T:23-->
<!--T:23-->
It will likely say it's set to 80 [8sec]
It will likely say it's set to 80 [8sec]


<!--T:24-->
==Modify the timer==
Now really we want to just disable the timer altogether like it is on a black drive, and just let our systems power management handle the drive.
 
If you want to just increase the time, then goto [http://idle3-tools.sourceforge.net] and read the instructions.
In-depth instructions and source of the tool can be found [http://idle3-tools.sourceforge.net| here].
 
The advisable approach is to simply set the timer to the linux default of 30 seconds (replace sda if needed with your own drive):
 
{{UserCmd|command=sudo idle3ctl -s 129 /dev/sda}}
 
'''Disable the timer (not recommended)'''


<!--T:25-->
To just let the system power management handle the drive disable the timer (replace sda if needed with your own drive):
To disable the timer (Replace sda if needed with your own drive):


<!--T:26-->
<!--T:26-->
$ sudo idle3ctl -d /dev/sda
{{UserCmd|command=sudo idle3ctl -d /dev/sda}}


==Power off and verify==


<!--T:27-->
<!--T:27-->
Line 93: Line 96:


<!--T:28-->
<!--T:28-->
Now check again:
Now verify the status:
 
<!--T:29-->
$ sudo idle3ctl -g /dev/sda


<!--T:30-->
<!--T:29-->
and it should say disabled.
{{UserCmd|command=sudo idle3ctl -g /dev/sda}}


==Optional step== <!--T:31-->  
==Optional step== <!--T:31-->  
Line 106: Line 106:
Remove idle3-tools and smartmontools with octopi or pamac or in a terminal:
Remove idle3-tools and smartmontools with octopi or pamac or in a terminal:


<!--T:33-->
<!--T:33-->
$ sudo pacman -R idle3-tools smartmontools
{{UserCmd|command=sudo pacman -R idle3-tools smartmontools}}