Debian This forum is for the discussion of Debian Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-09-2007, 01:17 AM
|
#1
|
|
Member
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 426
Rep:
|
Disk might not be spun down properly. Update shutdown utility
Hi!
I am getting the following error message while shutdown since I upgraded to kernel 2.6.22 on my Debian etch install -
Can anyone suggest a way out? I visited that site but debian specific instructions are not available.
|
|
|
|
09-09-2007, 07:20 AM
|
#2
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474
|
Edit /etc/init.d/halt, find the hddown="-h" and
change it to hddown="".
|
|
|
|
09-14-2007, 07:53 AM
|
#3
|
|
Member
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 426
Original Poster
Rep:
|
Ok, that works! Thanks a lot friend!
|
|
|
|
10-12-2007, 01:08 PM
|
#4
|
|
Member
Registered: Jan 2004
Location: UK
Distribution: Debian
Posts: 194
Rep:
|
How do you know that! (in amazed tone)
|
|
|
|
10-12-2007, 02:03 PM
|
#5
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474
|
I had the same problem and Googled it.
|
|
|
|
10-12-2007, 07:17 PM
|
#6
|
|
LQ Newbie
Registered: Jun 2005
Location: Muskoka, Ontario, Canada
Distribution: Debian Sid
Posts: 14
Rep:
|
I had been meaning to get around to that issue, thanx for reminding me
Cheers
|
|
|
|
10-16-2007, 01:34 PM
|
#7
|
|
Member
Registered: Nov 2006
Distribution: Lots of Debian
Posts: 165
Rep:
|
Quote:
Originally Posted by AlucardZero
Edit /etc/init.d/halt, find the hddown="-h" and
change it to hddown="".
|
I have 2 hddown entries:
Code:
# Don't shut down drives if we're using RAID.
hddown="-h"
if grep -qs '^md.*active' /proc/mdstat
then
hddown=""
fi
Should I just change the top one then?
|
|
|
|
10-16-2007, 03:54 PM
|
#8
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474
|
yes, that is correct.
|
|
|
|
10-17-2007, 05:26 AM
|
#9
|
|
Member
Registered: Apr 2007
Distribution: Gentoo
Posts: 337
Rep:
|
Quote:
Originally Posted by justaguynpc
I had been meaning to get around to that issue, thanx for reminding me
Cheers
|
Double thanks.
|
|
|
|
10-17-2007, 10:24 AM
|
#10
|
|
Member
Registered: Nov 2006
Distribution: Lots of Debian
Posts: 165
Rep:
|
Quote:
Originally Posted by AlucardZero
yes, that is correct.
|
Yea that's what I did. I think it fixed the problem. Something flashes on the screen in place of the previous error when the computer is halting. It displays a split second before the computer shuts off so I can't read it. I don't think it is an error though.
|
|
|
|
11-07-2007, 06:43 AM
|
#11
|
|
LQ Newbie
Registered: Oct 2007
Posts: 13
Rep:
|
Same problem
Hi!
Have the same problem and I have fixed using the explanation above. But I newbie at linux and I would like to know if I have to reinstall my linux again? Did that problem damage my computer?
Thanks,
COYOTE34
|
|
|
|
11-07-2007, 06:58 AM
|
#12
|
|
Member
Registered: May 2007
Distribution: Debian
Posts: 754
Rep:
|
You should not have to reinstall. Even if the problem goes on without being fixed, it would most likely only damage your hardware after hundreds of bad shutdowns. Also, if your particular hardware really minded, then you would most likely know. What I mean is that people who reported significant problems with this could hear a loud thunk as the hard-drive spun down, then up, then down again a little too quickly. If you are really concerned and you don't especially need a 2.6.22 kernel, then you could downgrade your kernel to 2.6.21 or 2.6.18 (which didn't have this problem).
|
|
|
|
11-13-2007, 12:36 PM
|
#13
|
|
LQ Newbie
Registered: Oct 2007
Posts: 1
Rep:
|
Hello,
Can you tell me more about the problem with shutdown? I'm getting the warning before power-off, but I cannot hear _any_ parking sound. However on other forums I have found reports, that the bug causes the drive to do parking twice very quickly.
Quote:
Originally Posted by AlucardZero
Edit /etc/init.d/halt, find the hddown="-h" and
change it to hddown="".
|
What does this line do? I would just like to know what am I doing  I googled a bit, and couldn't find a clear answer.
I am using Debian testing (Lenny). Should I update my `shutdown`?
To sum up, I just want to know if anything may happen to my drive. It's a new 250GB disk, and I have quite important data on it.
Regards,
Piotr Dąbrowski
Last edited by ultr; 11-13-2007 at 04:48 PM.
|
|
|
|
11-13-2007, 07:11 PM
|
#14
|
|
Member
Registered: May 2007
Distribution: Debian
Posts: 754
Rep:
|
As I said above, if you are very nervous, then the easiest complete fix is to downgrade your kernel (say to 2.6.18-5 from Etch). I'm not an expert on the issue, but here's my rough understanding: the kernel (as of 2.6.22) issues a shutdown sequence and the operating system also initiates a shutdown sequence (as it always used to). The two overlapping sequences get f&*$%ed up (that's the technical term), and the system can (1) get told (by one side) to spindown, (2) get a command (from the other side) that causes it to spin up again and then (3) get a final command to shut down entirely (and quickly?!?). The result is a hard change in direction that can cause a noticeable clunk on some drives. You do that enough times and your drive is f&*$%ed. However, a few people on a kernel irc channel said that "enough times" means in the hundreds.
For me, it's not worth the worry, so I left the kernel on both my boxes at 2.6.21 (the last version before the trouble started for me).
Removing the "-h" from that file manually would seem to remove the Debian system calling for "halt" - that's certainly what the -h flag does in, eg, "shutdown -h now". Perhaps that fixes the conflicting messages and the problem. Again, I don't know enough to trust it, so I stuck with an earlier kernel.
Last edited by Telemachos; 11-13-2007 at 07:17 PM.
|
|
|
|
11-14-2007, 01:58 AM
|
#15
|
|
LQ Newbie
Registered: Mar 2006
Distribution: Debian/Ubuntu
Posts: 26
Rep:
|
I am also having this problem on my Debian Testing (Lenny) installation. I have made the change to /etc/init.d/halt and am about to see if it works.
I hope the Debain guys can figure out how to fix this in the current default install of Lenny.
Edit: The edit to /etc/init.d/halt seems to have done the trick 
Last edited by Schalken; 11-14-2007 at 06:36 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:30 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|