Linux4UnMe Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

HDD Cycle Count issue in Linux Mint 12

2 posters

Go down

HDD Cycle Count issue in Linux Mint 12 Empty HDD Cycle Count issue in Linux Mint 12

Post  WinonuX Thu Feb 23, 2012 6:46 pm

Thanks to Linuxreview.ir for mentioning this problem and putting a solution for it. They've noticed that on Linux Mint 12, HDD cycle count increases rapidly, which isn't good for PC at all. There is a temporary solution and it is to run this command after system startup (notice that # shows the command should be issued as root):

# hdparm -B 255 /dev/sda

To see that if you have the same problem, you should first install smartmontools package. You can do it this way:

# apt-get install smartmontools

Then issue this command to the Terminal:

# smartctl -a /dev/sda | grep Load_Cycle_Count

And keep the number you see at the end of the line in mind. After five minutes, issue the same command. If the number has increased a lot, then your system has a problem as well.
To solve it, follow these instructions:

Issue this command to the Terminal:

$ nano apm -d.sh

And add this content to it (# should be entered here):

#!/bin/bash

# redirect stdout and stderr to logfile
exec >>/var/log/APM-D.log 2>&1

# announce started
echo "$(date +'%b %d %X') $(uname -n) $(basename $0): starting"

# disable APM
/sbin/hdparm -B 255 /dev/sda

Hit Ctrl + X and then press Y to save it.
Then issue these commands on by one:

$ sudo cp apm-d.sh /etc/init.d/
$ sudo ln -sf /etc/init.d/apm-d.sh /etc/rc2.d/S99apm-d.sh
$ sudo mv /etc/rc2.d/S99acpi-support /etc/rc2.d/S98acpi-support
$ sudo cp /etc/init.d/apm-d.sh /etc/apm/suspend.d/
$ sudo cp /etc/init.d/apm-d.sh /etc/apm/resume.d/
That's it. Check out var/log/APM-D.log file for any errors to make sure anything went well.
Quickly restart your system.

For checking the script and cycle number, use this command. The number that's given should not rise so quick. Do this every 3 seconds to check:

# smartctl -a /dev/sda | grep Load_Cycle_Count

If it was still rising, issue this command after every restart *:

# hdparm -B 255 /dev/sda

If you had any experience with it before, please let me know what it was and what you did to solve it in the comments below.

I hope that solves your problem.


* source: http://community.linuxreview.ir/thread-86-post-1007.htm
WinonuX
WinonuX

Posts : 13
Join date : 2012-01-05
Age : 30
Location : Sweden

http://winonux.blogspot.com

Back to top Go down

HDD Cycle Count issue in Linux Mint 12 Empty Re: HDD Cycle Count issue in Linux Mint 12

Post  kaddy Fri Feb 24, 2012 3:04 am

wow I didn't know about this....

thanx for sharing this info... i've got mint 12 installed on my seperate drive that i'll have to implement this....


cheers


kaddy
kaddy
kaddy
Admin

Posts : 248
Join date : 2011-01-26

https://linux4unme.forumotion.com

Back to top Go down

HDD Cycle Count issue in Linux Mint 12 Empty Re: HDD Cycle Count issue in Linux Mint 12

Post  WinonuX Thu Apr 05, 2012 10:13 am

Cheers friend.

How did it go for you? Did you have this issue?
WinonuX
WinonuX

Posts : 13
Join date : 2012-01-05
Age : 30
Location : Sweden

http://winonux.blogspot.com

Back to top Go down

HDD Cycle Count issue in Linux Mint 12 Empty Re: HDD Cycle Count issue in Linux Mint 12

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum