PDA

View Full Version : FC7 can not stop hard disk properly!!!



A_titov82
9th June 2007, 07:40 AM
I have Asus A2800S laptop. FC6 detected my hard disk as IDE (hda) and computer halted normally. FC7 detects hard disk as SATA (sda). When system is halting (just before power off) I hear a suspicious "click" from hard disk. I'm afraid of disk could be damaged if the problem would not be solved... Please, help!!!

A_titov82
9th June 2007, 08:48 AM
Well... I have Windows 2000 on my laptop. When I turn off computer under Windows there is no clicking sounds...

leigh123linux
9th June 2007, 08:59 AM
Well... I have Windows 2000 on my laptop. When I turn off computer under Windows there is no clicking sounds...

Would you like to test a 2.6.18-kernel.rpm + devel that I rebuilt from a FC6 kernel.src . I had sata issues with F7 and it fixed it.

A_titov82
9th June 2007, 09:38 AM
Would you like to test a 2.6.18-kernel.rpm + devel that I rebuilt from a FC6 kernel.src . I had sata issues with F7 and it fixed it.
Interesting suggestion... Where can I get this kernel? Is there any less drastic solution?

leigh123linux
9th June 2007, 10:03 AM
you could test the FC6 one first as it will install and work with no tweaking. ( you have to use --force because rpm doesn't allow downgrade )


su
wget http://linuxmirror.museum.state.il.us/Fedora/core/6/updates/i386/kernel-2.6.18-1.2869.fc6.i686.rpm
wget http://linuxmirror.museum.state.il.us/Fedora/core/6/updates/i386/kernel-devel-2.6.18-1.2869.fc6.i686.rpm
rpm -i --force kernel-2.6.18-1.2869.fc6.i686.rpm kernel-devel-2.6.18-1.2869.fc6.i686.rpm

And they can be removed with yum or the add/remove software option in the menu.

If it works I can upload the custom kernel that I built from a FC6 kernel source rpm

A_titov82
9th June 2007, 11:10 AM
Yes, it woks, thank you! disk stop properly with kernel-2.6.18. But I would like to use kernel-2.6.21, the newest one. Is it possible with Fedora?

leigh123linux
9th June 2007, 02:37 PM
I haven't found a way yet but I am looking.


you will need to edit yum,conf to stop yum replacing it when you update


su
gedit /etc/yum.conf

just add the red bit


[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
exclude=kernel*
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

P.S you can't remove the 2.6.21 F7 kernel as it is needed for deps

leigh123linux
9th June 2007, 02:41 PM
That "clicking" sound you are hearing IS your hard drive going bad. And it has nothing to do with F7 detecting it as "sda" whereas FC6 detected it as "hda".

If the laptop is still under warranty then get them to send you a new drive... otherwise, you need to go and purchase a new one.

Now why would he want to do that ? when its the kernel at fault !! :rolleyes:

A_titov82
9th June 2007, 03:32 PM
Is this a bug in kernel? Should it be reported to fedora developers?

leigh123linux
9th June 2007, 03:45 PM
Yes I would class this as a bug and yes I would report it if I was you

Reporting Bugs

Refer to http://kernel.org/pub/linux/docs/lkml/reporting-bugs.html for information on reporting bugs in the Linux kernel. You may also use http://bugzilla.redhat.com for reporting bugs that are specific to Fedora.

ettlz
9th June 2007, 10:03 PM
This is a known issue, see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=243021 . I don't understand completely whether it's an issue with the kernel itself (talk is that it should be fixed in 2.6.22 --- I'm going to test a patch for 2.6.21.4 later and see what effect it has) or the shutdown program. A_titov82, there's probably nothing wrong with your hard disc, it's doing an emergency unload (which is highly undesirable). In the meantime, you could:

try the most recent FC6 kernel;
obtain the F7 kernel SRPM, or a "vanilla" kernel from kernel.org, and rebuild it using traditional (i.e. non-libata) EIDE support (e.g. by using the /boot/config-(version) from the FC6 kernel package and running make oldconfig);
reboot and shutdown via Windows 2000.

A_titov82
10th June 2007, 06:51 AM
Ok... Thank you for help. And how soon will this bug be fixed? What do you think? Should I build a new kernel or just wait?

ettlz
11th June 2007, 05:41 PM
It's funny, up until the last few years I used to simply power down my machines (those without software-controllable power) simply by halting the OS and pushing the switch, and the disc would usually still be spinning at the time --- I thought modern drives "auto-parked" as a matter of routine! When did the standard design change to requiring proper spin-down?