big noise when shutting down (ubuntu)

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
amwus
Freshman Member
Posts: 70
Joined: Mon Feb 05, 2007 11:10 am
Location: Belgium

big noise when shutting down (ubuntu)

#1 Post by amwus » Wed May 09, 2007 9:53 am

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 !

8)
Thinkpad T400

Volker
Junior Member
Junior Member
Posts: 482
Joined: Fri Oct 01, 2004 10:21 am
Location: Dublin, Ireland
Contact:

#2 Post by Volker » Thu May 10, 2007 10:57 am

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.

amwus
Freshman Member
Posts: 70
Joined: Mon Feb 05, 2007 11:10 am
Location: Belgium

#3 Post by amwus » Thu May 10, 2007 2:36 pm

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 !
Thinkpad T400

frankausmtank
Freshman Member
Posts: 111
Joined: Thu Aug 03, 2006 5:06 am
Location: Berlin, Germany

#4 Post by frankausmtank » Fri May 11, 2007 7:01 am

So.. what did you do? Now that I think about it, I get this "twack" sound too.

amwus
Freshman Member
Posts: 70
Joined: Mon Feb 05, 2007 11:10 am
Location: Belgium

#5 Post by amwus » Fri May 11, 2007 11:23 am

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 ! :)
Thinkpad T400

K0LO
Senior Member
Senior Member
Posts: 659
Joined: Wed Sep 07, 2005 12:14 pm
Location: State College, PA, USA

#6 Post by K0LO » Fri May 11, 2007 6:51 pm

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)?
Mark

X61T 7764-CTO, Core 2 Duo L7500 LV 1.6 GHz, 4 GB RAM, 120 GB Intel X25M SSD
Multiboot w/Grub4DOS -- Windows 10, MustangPE, PartedMagic
My ex: X41T (2005 - 2009)

frankausmtank
Freshman Member
Posts: 111
Joined: Thu Aug 03, 2006 5:06 am
Location: Berlin, Germany

#7 Post by frankausmtank » Fri May 11, 2007 10:53 pm

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!

frankausmtank
Freshman Member
Posts: 111
Joined: Thu Aug 03, 2006 5:06 am
Location: Berlin, Germany

#8 Post by frankausmtank » Fri May 11, 2007 11:08 pm

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 ;)

K0LO
Senior Member
Senior Member
Posts: 659
Joined: Wed Sep 07, 2005 12:14 pm
Location: State College, PA, USA

#9 Post by K0LO » Sat May 12, 2007 1:56 pm

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......
Mark

X61T 7764-CTO, Core 2 Duo L7500 LV 1.6 GHz, 4 GB RAM, 120 GB Intel X25M SSD
Multiboot w/Grub4DOS -- Windows 10, MustangPE, PartedMagic
My ex: X41T (2005 - 2009)

amwus
Freshman Member
Posts: 70
Joined: Mon Feb 05, 2007 11:10 am
Location: Belgium

#10 Post by amwus » Sat May 12, 2007 2:56 pm

Yes, just don't use hibernation if you don't want to hear that sound :)
Thinkpad T400

frankausmtank
Freshman Member
Posts: 111
Joined: Thu Aug 03, 2006 5:06 am
Location: Berlin, Germany

#11 Post by frankausmtank » Sat Aug 11, 2007 4:49 am

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?

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: axur-delmeria and 1 guest