You are not logged in.

#1 2007-04-21 14:36:16

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Harddisk making a noise on shutdown

Hi there!

I am running a laptop with a SATA hdd an Arch installed on it. Nearly evertime I shut down the system there is this noise. I already found a bugreport on the ubuntu launchpad, i hope that archlinux devs will take care about that too.

https://bugs.launchpad.net/ubuntu/+sour … +bug/67810

Last edited by IsSuE (2007-04-21 14:46:28)

Offline

#2 2007-04-21 14:42:41

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Harddisk making a noise on shutdown

How can noise be silent?

Offline

#3 2007-05-01 01:04:46

lionlee
Member
Registered: 2007-05-01
Posts: 2

Re: Harddisk making a noise on shutdown

yes, I also meet with this problem, it is said that only some brand of harddisk would suffer this, can anyone help?

Offline

#4 2007-05-01 16:25:43

Lontronics
Member
Registered: 2006-08-28
Posts: 121

Re: Harddisk making a noise on shutdown

I do have the same problem here with my Dell Inspiron 9400 laptop (Core duo, 120Gb harddisk)

Kernel 2.6.20.6-ck


@lionlee;

I have read the topic IsSue mentioned, and found this workaround, but did not test it already;

In your rc.local.shutdown add:

for disk in /sys/class/scsi_disk/* ; do 
    echo 1 > $disk/stop_on_shutdown
done

Jan.

Offline

#5 2007-05-03 12:30:12

stinkytofoo
Member
Registered: 2006-12-11
Posts: 17

Re: Harddisk making a noise on shutdown

I'm having the same problem here with my Acer Aspire 5053WXMi (AMD Turion 64x2, SATA 80GB).
I'm using the stock kernel.


An indispensable phrase in Latin:

"Sentio aliquos togatos contra me conspirare."
(I think some people in togas are plotting against me.)

Offline

#6 2007-05-03 12:37:19

stinkytofoo
Member
Registered: 2006-12-11
Posts: 17

Re: Harddisk making a noise on shutdown

Oh by the way, I've found this
http://bbs.archlinux.org/viewtopic.php?id=27592

In that thread, someone mentions that that's supposedly "perfectly normal"... I personally prefer a workaround the "click issue".


An indispensable phrase in Latin:

"Sentio aliquos togatos contra me conspirare."
(I think some people in togas are plotting against me.)

Offline

#7 2007-05-08 14:27:15

lionlee
Member
Registered: 2007-05-01
Posts: 2

Re: Harddisk making a noise on shutdown

http://www.linuxsir.org/bbs/showthread.php?p=1698185
yes,this does solve the problem :-)!!

Offline

#8 2007-05-09 10:30:46

IceHand
Member
From: Germany
Registered: 2007-05-06
Posts: 53
Website

Re: Harddisk making a noise on shutdown

Hm, when I add the code Lontronics posted to my rc.local.shutdown I get the message "error in rc.local.shutdown -  /sys/class/scsi_disk/0:0:0:0/stop_on_shutdown: Permission denied".

When I try the stuff lionlee posted (at least what I understand of it tongue), the system just halts with the message "System halted." without shutting down. Could you give a translation of the important part, lionlee? Maybe I missed something ...

Last edited by IceHand (2007-05-09 18:54:21)

Offline

#9 2007-05-10 06:18:23

henryouly
Member
Registered: 2007-05-03
Posts: 19

Re: Harddisk making a noise on shutdown

IceHand wrote:

Hm, when I add the code Lontronics posted to my rc.local.shutdown I get the message "error in rc.local.shutdown -  /sys/class/scsi_disk/0:0:0:0/stop_on_shutdown: Permission denied".

When I try the stuff lionlee posted (at least what I understand of it tongue), the system just halts with the message "System halted." without shutting down. Could you give a translation of the important part, lionlee? Maybe I missed something ...

Replace the line in rc.shutdown

/sbin/poweroff -d -f  -h -i

with these three lines

/sbin/halt -d -h -i
sleep 8
/sbin/poweroff -f

If the things not being better, try to increase the number of seconds to sleep.

However I don't think it is an ideal solution though, since an upgrade of initscripts will overwrite the changes.


Lenovo Sunrise 125C Laptop
Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04)
Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 04)
Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)

Offline

#10 2007-05-10 12:19:51

IceHand
Member
From: Germany
Registered: 2007-05-06
Posts: 53
Website

Re: Harddisk making a noise on shutdown

That is exactly what I did -- and as I said, the system halts without shutting down, so I have to press the power button of my notebook several seconds to shut it down. But then it shuts down without the click, which is kind of a workaround I guess ...

Offline

#11 2007-05-10 13:32:07

stinkytofoo
Member
Registered: 2006-12-11
Posts: 17

Re: Harddisk making a noise on shutdown

Thanks for the workaround!


An indispensable phrase in Latin:

"Sentio aliquos togatos contra me conspirare."
(I think some people in togas are plotting against me.)

Offline

#12 2007-05-10 17:54:00

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Harddisk making a noise on shutdown

I'm having the same problem.

Relpacing the line as henryouly stated change the behaviour of shutdown a litle bit. At the end of shutdown, I get a new string (Power halted or something similar...) but the laptop doesn't poweroff. I need to manually power-it off.

I found a bug on the kernel's bugzilla:
http://bugzilla.kernel.org/show_bug.cgi?id=7838

That patch add the files Lontronics is talking about (/sys/class/scsi_disk/*/stop_on_shutdown)

The patch submited should be included in 2.6.22-rc1. In the meantime, I could be nice to have it in arch... I'm patching it write now to test. I will report back.

EDIT: It does work!
1) Patch the kernel with http://bugzilla.kernel.org/show_bug.cgi?id=7838
2) Put :

for disk in /sys/class/scsi_disk/* ; do
    echo 1 > $disk/stop_on_shutdown
done

in /etc/rc.local.shutdown

Last edited by big_gie (2007-05-10 18:07:57)

Offline

#13 2007-05-11 02:06:29

henryouly
Member
Registered: 2007-05-03
Posts: 19

Re: Harddisk making a noise on shutdown

Someone on the original forum also reported the similar problem with this modification. And I even wondered if the lines pending to "halt" command can guarantee to be executed. But incredibly, the work around did poweroff my laptop automatically.

And I agree the kernel patching is the best way of doing so.

Last edited by henryouly (2007-05-11 02:07:47)


Lenovo Sunrise 125C Laptop
Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04)
Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 04)
Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)

Offline

#14 2007-05-11 13:00:13

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Harddisk making a noise on shutdown

henryouly wrote:

And I even wondered if the lines pending to "halt" command can guarantee to be executed. But incredibly, the work around did poweroff my laptop automatically.

It didn't executed on mine. After "/sbin/halt -d -h -i" nothing was executed.

The only way I got it working was with the patch.

Offline

Board footer

Powered by FluxBB