Temperature threshold Because Upgrade MyBookLive Green HD to WD Black

Short question:

There is some place where can I disable the temperature or change the threshold?? (because WD Black produces more heat in normal use that WD Green).

Hi:

          Recently I Upgraded the Hard Disk of the MyBookLive 3TB (inside was a WD Green 3TB), to a WD Caviar Black 3TB.

the MBL has only 1 week I use CloneZilla in a PC to do the clone of the entire disk (about 600mb of data with the drive empty).

https://www.google.com/search?q=wd+green+vs+black

http://www.tomshardware.com/answers/id-1718562/1tb-black-blue-green-seagate.html

http://www.legitreviews.com/western-digital-2tb-caviar-green-and-black-hard-drives_1077

http://www.legitreviews.com/western-digital-2tb-caviar-green-and-black-hard-drives_1077/10

Basically it says that the WD Green is silent, slower, less power comsumption, cooler, 3year warrant, 30% cheaper (was 51% last week in my country), and less resistent to failures than the WD Black.

Because the noise of black does not disturb me, and the temperature is less than 10ºC of difference I chose to do the change.

The problem is that now I had 2 times to power off the MBL because the led stays static red and the web interface says that disk has overtemperature…

There is some place where can I disable the temperature or change the threshold?? (because WD Black produces more heat in normal use that WD Green).

I chose to do the change because the useful live of WD Black seems to be better in comparision with WD Green.

But I now had this problem. (may be if I copy 150gb of files with the WD Green it will happen the same, I really dont know).

Also I found that the MBL is very slow… about 15-20MBytes/s writing TO MBL and 8-10Mbytes/s Reading files from… (Strange that is slower reading than writing.)…

Do you recommend me to rollback this thing and put again the WD Green?

Thanks in advance.

Hello braian87b, the My Book Live was designed to be used with WD Green drives and unfortunately there is no option to change the temperature threshold.

Hello Ichigo, even through ssh?

This could work… I will try it.

http://hacksomethingtonight.blogspot.com.ar/2010/02/wd-mybook-hacks-temperature-readings.html

smartctl -a -d ata /dev/sda | awk ‘/Temperature/ {print $10}’

that show temperature, but the

/sys/module/thermAndFan/parameters/

does not exist. **bleep**.

Ok, I got it… I had to do some research to find it:

at the end is the needed file.

paste this in a new file (using nano)

execute “nano” and paste:

#!/bin/bash

System-wide crontab file and cron job directory. Change these for your system.

CRONTAB=’/etc/crontab’
CRONDIR=’/etc/cron.d’

Single tab character. Annoyingly necessary.

tab=$(echo -en “\t”)

Given a stream of crontab lines, exclude non-cron job lines, replace

whitespace characters with a single space, and remove any spaces from the

beginning of each line.

function clean_cron_lines() {
    while read line ; do
        echo “${line}” |
            egrep --invert-match ‘^($|\s*#|\s*[[:alnum:]_]+=)’ |
            sed --regexp-extended “s/\s+/ /g” |
            sed --regexp-extended “s/^ //”
    done;
}

Given a stream of cleaned crontab lines, echo any that don’t include the

run-parts command, and for those that do, show each job file in the run-parts

directory as if it were scheduled explicitly.

function lookup_run_parts() {
    while read line ; do
        match=$(echo “${line}” | egrep -o ‘run-parts (-{1,2}\S+ )*\S+’)

        if [[-z “${match}”]] ; then
            echo “${line}”
        else
            cron_fields=$(echo “${line}” | cut -f1-6 -d’ ')
            cron_job_dir=$(echo  “${match}” | awk ‘{print $NF}’)

            if [[-d “${cron_job_dir}”]] ; then
                for cron_job_file in “${cron_job_dir}”/* ; do  # */
                    [[-f “${cron_job_file}”]] && echo “${cron_fields} ${cron_job_file}”
                done
            fi
        fi
    done;
}

Temporary file for crontab lines.

temp=$(mktemp) || exit 1

Add all of the jobs from the system-wide crontab file.

cat “${CRONTAB}” | clean_cron_lines | lookup_run_parts >"${temp}"

Add all of the jobs from the system-wide cron directory.

cat “${CRONDIR}”/* | clean_cron_lines >>"${temp}"  # */

Add each user’s crontab (if it exists). Insert the user’s name between the

five time fields and the command.

while read user ; do
    crontab -l -u “${user}” 2>/dev/null |
        clean_cron_lines |
        sed --regexp-extended “s/^((\S+ +){5})(.+)$/\1${user} \3/” >>"${temp}"
done < <(cut --fields=1 --delimiter=: /etc/passwd)

Output the collected crontab lines. Replace the single spaces between the

fields with tab characters, sort the lines by hour and minute, insert the

header line, and format the results as a table.

cat “${temp}” |
    sed --regexp-extended “s/^(\S+) +(\S+) +(\S+) +(\S+) +(\S+) +(\S+) +(.*)$/\1\t\2\t\3\t\4\t\5\t\6\t\7/” |
    sort --numeric-sort --field-separator="${tab}" --key=2,1 |
    sed “1i\mi\th\td\tm\tw\tuser\tcommand” |
    column -s"${tab}" -t

rm --force “${temp}”

------------------------------------------------------------------------------------- Paste until here

save as listcron.sh

add x (eXecute) permissions to last file executing:
chmod +x ./listcron.sh

run last created file
./listcron.sh

this will list the crontab

(because if you execute these below 2 lines none of them will show you the current crontab list, I dont know why.)

for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done

or even just “crontab” will not show anything.

but the ./listcron.sh will show some interesting filenames:

nano /usr/local/sbin/monitorSmartStatus.sh
nano /usr/local/sbin/monitorTemperature.sh

actually we are more interested in second one.

I edited as:

TEMP_T1=75    #68      ## Initial Warning Temperature
TEMP_T2=80    #72      ## Shutdown Warning Temperature
TEMP_TF=90    #75      ## Shutdown Immediate Temperature

The 68,72,75 was the previous values.

you can query the temperature using:
smartctl -a -d ata /dev/sda | awk ‘/Temperature/ {print $10}’
cat /tmp/drive_smart_temp

Hope it works and be useful for someone else.

Thanks!

I found this, may be could be useful:

http://mybookworld.wikidot.com/mycheck-temp-mem-cpu-monitoring

I recommend google the filename “monitorTemperature.sh” to read about other posts.

The disk is running quite well (since about 2 hours of continuos read/or/write usage) and indeed is slightly hot but nothing to worry about, I think it is just 2 or 3ºC heating above the normal temperature.

Smart (says celsius) and script temperature but actually I THINK (I repeat I think) that it is in farenheit ()

temp values in constants thresholds in monitorTemperature.sh file

was:

68, 72 y 75 F (20º, 22º, 24º C)

now:

75, 80 y 90 (24º, 27º y 32º C)

Temperature seems to be stable in 72º (which I think is Ok but rather was triggering the warning and drive stopped working with red light and the warning in the web interface)

Thanks.