LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-20-2012, 11:55 AM   #1
sevs
Member
 
Registered: Jul 2008
Location: Russia, Saratov
Distribution: debian, knoppix, mandriva, asplinux, altlinux
Posts: 110

Rep: Reputation: 20
Question Hard disk question.


Hello. I've got a problem with hard disk.
My computer was running good with debian linux installed. It worked 3 hours a day at much. It stand without a single boot for couple of weeks. Next time I booted I've got error from grub at stage 1.5. Rebooting gives me only another error.
Error I get before stage 1.5
Read error.

Errors at stage 1.5:
Error 18
Error 16

Errors after stage 1.5 (after menu, just before OS boot):
Error 18: selected cylinder exceeds maximum supported by BIOS
Error 16: inconsistent filesystem structure

I've thought about MBR fixing, LBA and rewriting boot loader. Though, I've got a flash drive with debian installer. I've started it in a rescue mode, mounted my /dev/sda1 as root fs and chrooted to it. Then I did following:
Code:
/usr/sbin/grub-install --force-lba /dev/sda
And then looking at 4th terminal (there was kernel messages) I saw following:
Code:
kernel: ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
kernel: ata3.00: BMDMA stat 0x26
kernel: ata3.00: failed command READ DMA
kernel: ata3.00: cmd c8/00:20:00:00:00/00:00:00:00:00/e0 tag 0 dma 16384 in
kernel: ata3.00: res 51/84:0f:11:00:00/84:00:17:00:00/e0 Emask 0x30 (host bus error)
kernel: ata3.00: status: {DRDY ERR}
kernel: ata3.00: error: {ICRC ABRT}
kernel: ata3.00: soft resetting link
kernel: ata3.00: configured for UDMA/33
kernel: ata3.00: EH complete
And these strings a repeating (only number on strings of 'cmd' and 'res' are changing).
Hard disk is WDC WD 2000JS-60NCB1
BIOS data about HDD -
LBA - supported
block mode - 16 sectors
PIO mode - 4
Async DMA - multiword DMA-2
Ultra DMA - ultra DMA-5
SMART - supported

One more thing is that all data on the HDD is readable.
Filesystem check found no errors.

I'll appreciate any help or advice.
Thanks in advance.

Sorry for my broken English.
 
Old 01-20-2012, 12:27 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
1. update bios
2. set dma etc to auto if possible
use ahci

check cables too

you can check drive with 'gsmartcontrol' for all problems

post output of

#sdparm -I /dev/sda

or hdparm
 
1 members found this post helpful.
Old 01-20-2012, 12:37 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I would check the HDD for bad blocks, you can do this with

Code:
smartctl -t long /dev/sda
and wait until it finishes the test, or you can run the manufacturer's utility, probably on this disk:
http://www.ultimatebootcd.com/

I would update the BIOS last, and NEVER from Window$.
 
1 members found this post helpful.
Old 01-20-2012, 12:47 PM   #4
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Quote:
Originally Posted by H_TeXMeX_H View Post
I would check the HDD for bad blocks, you can do this with
But gsmartcontrol would be able to report the output of other options and the drive model is known to cause odd problems.
 
1 members found this post helpful.
Old 01-25-2012, 07:24 AM   #5
sevs
Member
 
Registered: Jul 2008
Location: Russia, Saratov
Distribution: debian, knoppix, mandriva, asplinux, altlinux
Posts: 110

Original Poster
Rep: Reputation: 20
Thanks to everyone, helping me with this problem.
It has been a data cable connection issue.
The only question that is left - Why was data on the HDD readable, while bootloader was not? What is the difference between retrieve precedure of bootloader and regular data. (By and large - bootloader is ordinary data too. The difference is how we use it.).

Thanks in advance.

Sorry for my broken English.
 
  


Reply

Tags
error, grub, hard drives



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard disk clone question the_gripmaster Linux - Hardware 1 03-28-2011 09:58 PM
A question about hard disk usage... trist007 Linux - Newbie 7 12-16-2009 03:39 AM
new hard disk and proftpd question coldy Linux - Software 1 11-11-2004 07:05 PM
Hard Disk question - Making a big hard disk MrAnonym Linux - General 2 09-15-2003 06:08 PM
question about hard disk??? redship Linux - Hardware 2 04-13-2003 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration