Page 1 of 1
big noise when shutting down (ubuntu)
Posted: Wed May 09, 2007 9:53 am
by amwus
Hi all !
I'm a bit worried about a problem with my R52 (1846-3WG). When i shut down the computer, it makes a big noise (i think it's the hard drive). In windows, no problem, the computer turned off very quietly. I don't know if it's very good for my hard drive... Do you think it's possible to fix that problem... Apart from that, my computer runs very well with Ubuntu...
Thank you !

Posted: Thu May 10, 2007 10:57 am
by Volker
The pop from the hdd is probably the emergency head retract. There is a bug in sata code that either is fixed already or will be fixed in the next kernel release. Just keep updating and it'll be gone in 2 months...
While the emergency head park is more stressful to the hard disk than a normal shutdown, it can still do around 100,000 of them. I bet you won't shutdown that often in your thinkpad's lifetime.
Posted: Thu May 10, 2007 2:36 pm
by amwus
thank you for your answer. But i resolved the problem ! I just created a simple script and all works fine !
It's trully amazing how ubuntu can be configured ! Very nice !
Posted: Fri May 11, 2007 7:01 am
by frankausmtank
So.. what did you do? Now that I think about it, I get this "twack" sound too.
Posted: Fri May 11, 2007 11:23 am
by amwus
I just created a script in this location :
"/etc/rc0.d/S00hdd-shutdown-workaround"
Then i wrote the following lines in the file
#!/bin/sh
echo 1 > /sys/class/scsi_disk/0\:0\:0\:0/stop_on_shutdown
Finally i gave the good rights to the script :
sudo chmod +x /etc/rc0.d/S00hdd-shutdown-workaround
And it works very well !

Posted: Fri May 11, 2007 6:51 pm
by K0LO
amwus:
Thanks for posting this fix. I found that it works fine when shutting down. However, if you hibernate the machine then apparently the script doesn't run because the loud "clunk" from the emergency head retract is still present.
Does anybody know a way to make this script run when suspending to disk (hibernation)?
Posted: Fri May 11, 2007 10:53 pm
by frankausmtank
amwus wrote:I just created a script in this location :
"/etc/rc0.d/S00hdd-shutdown-workaround"
Then i wrote the following lines in the file
#!/bin/sh
echo 1 > /sys/class/scsi_disk/0\:0\:0\:0/stop_on_shutdown
Finally i gave the good rights to the script :
sudo chmod +x /etc/rc0.d/S00hdd-shutdown-workaround
And it works very well !

awesome - that worked, thanks!
Posted: Fri May 11, 2007 11:08 pm
by frankausmtank
k0lo wrote:Does anybody know a way to make this script run when suspending to disk (hibernation)?
I'd try to insert the "echo 1 .." line somewhere into /etc/acpi/hibernate.sh, maybe line 14 or 16.. but I'm too lazy do do experiments right now

Posted: Sat May 12, 2007 1:56 pm
by K0LO
frankausmtank wrote:I'd try to insert the "echo 1 .." line somewhere into /etc/acpi/hibernate.sh, maybe line 14 or 16.. but I'm too lazy do do experiments right now

Alas, not quite. If the command is executed at line 16 (after running prepare.sh) then the disk shuts down before the hibernation file is written. I also tried it near the end of the file just before "$LAPTOP_MODE stop" and it hibernates OK but the disk gets disabled when it wakes back up and is starting to reload the hibernation file into RAM.
Maybe I'll just wait for the next kernel patch......
Posted: Sat May 12, 2007 2:56 pm
by amwus
Yes, just don't use hibernation if you don't want to hear that sound

Posted: Sat Aug 11, 2007 4:49 am
by frankausmtank
Sorry for reviving an old thread!
I had the script amwus described for a few months now, and while it works most of the time, it doesn't work always - on some shutdowns, I still get the "clunk". I haven't been able to find out why this happens so randomly.
amwus, does it work on your machine on every shutdown?