LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 08-03-2008, 03:27 PM   #1
roberto02
LQ Newbie
 
Registered: Nov 2003
Location: Italy
Distribution: SuSE, Archlinux
Posts: 2

Rep: Reputation: 0
kernel panic reading specific sectors of sata hard disk


Hi everybody,
since yesterday I get consistently a kernel panic message when reading from some sectors of a partition of my sata hd. Those sectors belong to a file (which I was trying to back up yesterday), so any read, even a simple "cat FILENAME", provokes a kernel panic, every time (be it after hours of use or just after a fresh boot after a long rest).
I get the exact same problem with the same file (and so far only with that file) using archlinux (kernel 2.6.25), opensuse 10.3 (kernel 2.6.22), mandriva 2008.1 live (kernel 2.6.24) and systemrescuecd 0.4.2 (kernel 2.6.23).
The latter distro gives me the most info about what happens before freezing (I found nothing in /var/log/messages; caps-lock and scroll-lock lights blink):

ata4: timeout waiting for ADMA IDLE, stat=0x440
ata4: timeout waiting for ADMA LEGACY, stat=0x440
ata4.00: exception Emask 0x1 SAct 0x0 SErr 0x0 action 0x0
ata4.00: CPB resp_flags 0x11: , CMD error
ata4.00: cmd c8/00:00:f4:83:ed/00:00:00:00:00/e8 tag 0 cdb 0x0 data 131072 in
res 51/40:00:ef:84:ed/00:00:00:00:00/e8 Emask 0x9 (media error)
CPU 0: Machine Check Exception: 0000000000000004
CPU 0: Bank 4: b200000000070f0f
Kernel panic - not syncing: CPU context corrupt
Clocksource tsc unstable (delta = 4686082248 ns)

My guess was a hardware failure from the disk, possibly because of bad blocks
(but shouldn't I get only errors in the logs in this case?). However trying to run
badblocks on the (unmounted) partition produces the same kind of panic: not a way to fix the problem.
Also, the file got written to disk at some point in the past, and that gave no error!

I tried booting with option 'nomce': the machine keeps freezing at the same point, I just do not see the kernel panic message.

The hardware: Athlon 64 3200+ on an ASUS motherboard with the nvidia chipset. The kernel is 32bit (x86). The SATA drive is from Maxtor. I have been using this hardware for almost three years, and the opensuse 10.3 kernel for more than six months, without problems.

Any help or advice is appreciated.
 
Old 08-03-2008, 03:43 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
This does sound like the disk is having trouble. Go to the vendor's site, and see if they have any diagnostics utilities that you can run on the disk. These will probably be dos command line or bootable floppy images.
 
Old 08-04-2008, 04:04 AM   #3
roberto02
LQ Newbie
 
Registered: Nov 2003
Location: Italy
Distribution: SuSE, Archlinux
Posts: 2

Original Poster
Rep: Reputation: 0
Smile

The problem was solved.
Thanks for the advice, Mr. C. I downloaded the Seagate/Maxtor utility (iso9660 format) and ran it: it found one error and offered to repair it, which I let it do. Indeed, now reading the file provokes no panic nor errors.
I still have to find out whether the repair was destructive or not (it's an avi, I'll have to watch it).
 
Old 08-04-2008, 12:59 PM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
Excellent. Remember, backups are your friends!
 
Old 07-02-2009, 07:58 PM   #5
rickardh
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
Solved my problems too

Great advice! It fixed the issue for me as well. Symptoms and configuration was very similar to the original poster's.

I was getting kernel messages like
ata1: timeout waiting for ADMA IDLE, stat=0x440
ata1: timeout waiting for ADMA LEGACY, stat=0x440
during an fsck, after which the kernel would freeze. I downloaded SeaTools for DOS and burned it to a CD, booted from it, ran the long test, which found 2 errors, repaired them (overwrote them with zeros) when asked if I wanted to, and after a reboot it worked again. The errors were only on one drive from a RAID5 set, so I hope that all data is still there.

The disk is a Seagate Barracuda 7200.8, ST3250823AS. No SMART errors had been reported, and it said "SMART values NOT tripped" or something similar in SeaTools. AMD AthlonX2 3800+, nVidia CK804 chipset, ASUS motherboard here too. Debian unstable, kernel version 2.6.24-1-amd64.

Last edited by rickardh; 07-02-2009 at 08:05 PM. Reason: Added more info on my HW.
 
  


Reply

Tags
kernel, panic


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changed Hard disk and now Kernel panic thorfinn Fedora - Installation 5 06-02-2007 11:35 PM
"kernel panic" on sata hard disk brazilian_user Linux - General 3 08-30-2006 01:40 PM
External hard disk causes kernel panic blimbo Linux - Hardware 5 01-23-2006 11:30 AM
Fedora C4 Kernel Panic root= SATA Hard disk fieldyweb Linux - General 1 08-22-2005 09:09 AM
Reading raw hard disk sectors villie Programming 4 05-13-2004 12:18 AM


All times are GMT -5. The time now is 05:15 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration