visit Haymarket Interactive  Atomic  |  PC Authority  |  CRN Australia  |  iTNews  |  PC Authority Business Centre  |  SC Magazine | careers  
Home
Friday, 3 September 2010
01:31:54 AM
Users online: 0   You are here >> Home > Open Source OS
LOGIN PASSWORD   forgot my details
Open source OS
D.I.Y and do it right
Forums | Open Source OS Forums search
Forum FAQ
   
  1  
Ubuntu 7.10 Laptop Hard Drive Killer (Fault)
AccessDenied 
1/11/07 05:22:22 PM
Hero
Titan


https://launchpad.net/bug59695.html
(Workaround included in link and also pasted below)

Bug description

When switching to battery power, /etc/acpi/power.sh issues the command hdparm -B 1 to all block devices. This leads to extremely frequent load cycles. For example, my new thinkpad has already done well over 7000 load cycles -- in only 100 hours. That's at least one unloading per minute. Googling for "load unload cycles notebook OR laptop" shows that most laptop drives handle up to 600,000 such cycles. As these values clearly show, this issue is of high importance and should be fixed sooner rather than later.

Please see for yourself how often your drive is load cycling:
smartctl -d ata -a /dev/sda
(This command is for an SATA drive; you'll need to install the smartmontools package first.)

See also http://paul.luon.net/journal/hacking/BrokenHDDs.html for a rather dramatic account of the effects the current default values may have.

Just in case the load/unload timeout depends on the specific laptop or disk model, here are my system specifications:
ThinkPad Z60m & Hitachi HTS541080G9SA00 disk (80GB)


-------------------------
1) I added the following lines to my hdparm.conf:
/dev/sda {
apm = 255
}

2) I created a file /etc/acpi/resume.d/99-stop-hitachi-madness.sh
with the following contents:
#!/bin/sh
hdparm -B 255 /dev/sda

(Workaround posted by Gilles Schintgen in the above linkie)

------------------------

AD

-----
173 points
SaltyPeanut, Mills, Lanzer, Damo, Bastard DiStOrTeD, Leonid
-1:Logicprobe
1 donated:800_series
99% of girls on the internet are interested in sex. The rest ARE Mills.
I'm a sex object. I ask for sex and she objects.

B82R3S 
1/11/07 09:44:35 PM
Titan

This isnt a fresh hdd disk but im going to do that, just installed 7.10 yesterday haha


Thanks:)

-----
E4400 @ 3.1ghz (388x8 w 1.39v) | P35-DS3 F6| 2GB Lemel DDR2 800 | Powercolor X1950pro 512mb | 250gb Maxtor Sata HDD | DVR 212
Ubuntu Server 7.04 | AM2 X2 3800+ | 1GB DDR2 667 | 1TB Raid5 (6x200gb)

Deserted 
2/11/07 09:16:14 AM
Champion

thanks for the heads up AD, nasty little find

-----
Quote by Redhatter
It's aimed at people wanting a job as a Unix network admin, not point-and-click Windows Cowboys.



Quote by Takoma
Looks like you're the man Deserted.


dave_blob 
2/11/07 10:59:23 AM
Champion

Well, that would be a problem on my asus laptop - if the 2.6.22 kernel in gutsy didn't totally fuck up acpi so much that I have to boot with acpi=off!

No power management = no problem :)


PS im a little annoyed at this regression - it worked fine on feisty and earlier kernels. (yes yes bug report - there's heaps already filed and no progress I can see) :)

-----
Your comeback shames me

Phelan:
You exist. You are born and you die. That's it.
What matters is life before death - enjoy your time here, be nice to others and have some fun.

B82R3S 
3/11/07 08:39:36 PM
Titan

How do i check what the -B value is? just want to verify if it worked.

104000 load cycles here :D old disk

-----
E4400 @ 3.1ghz (388x8 w 1.39v) | P35-DS3 F6| 2GB Lemel DDR2 800 | Powercolor X1950pro 512mb | 250gb Maxtor Sata HDD | DVR 212
Ubuntu Server 7.04 | AM2 X2 3800+ | 1GB DDR2 667 | 1TB Raid5 (6x200gb)

  1  
Forums | Open Source OS