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.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
05-27-2013, 11:26 AM
#1
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623
Rep:
Howto fix hard disk errors?
Hi
Every time, during the shutdown process, I have these errors displayed on the screen:
Code:
ata 1.00: exception emask 0x0 sact 0x0 serr 0x0 action 0x6 frozen
ata 1.00: failed command: STANDBY IMMEDIATE
ata 1.00: status {DRDY}
ata1: SRST failed (errno=-16)
Last edited by cccc; 05-30-2013 at 01:45 PM .
05-27-2013, 04:26 PM
#2
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Do your logs tell you anything?
/var/log/messages.log
/var/log/everything.log
05-27-2013, 04:41 PM
#3
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623
Original Poster
Rep:
Quote:
Originally Posted by
teckk
Do your logs tell you anything?
/var/log/messages.log
/var/log/everything.log
No, in the logs I cannot find these error messages from ata1:
Code:
# sudo cat /var/log/messages | grep ata1
May 19 14:58:38 wheezy kernel: [ 1.461081] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xe700 irq 14
May 19 14:58:38 wheezy kernel: [ 1.646546] ata1.00: ATA-8: WDC WD5000AAKB-00L7B0, 01.03B01, max UDMA/133
May 19 14:58:38 wheezy kernel: [ 1.646552] ata1.00: 976773169 sectors, multi 16: LBA48 NCQ (depth 0/1)
May 19 14:58:38 wheezy kernel: [ 1.656351] ata1.01: ATA-8: WDC WD5000AAKB-00H8A0, 05.04E05, max UDMA/133
May 19 14:58:38 wheezy kernel: [ 1.656356] ata1.01: 976773168 sectors, multi 16: LBA48
May 19 14:58:38 wheezy kernel: [ 1.673017] ata1.00: configured for UDMA/133
May 19 14:58:38 wheezy kernel: [ 1.689105] ata1.01: configured for UDMA/133
May 19 22:57:59 wheezy kernel: [ 1.390793] ata1: SATA max UDMA/133 cmd 0xe100 ctl 0xe200 bmdma 0xe500 irq 20
May 19 22:57:59 wheezy kernel: [ 1.604049] ata1: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
May 20 01:38:14 wheezy kernel: [ 1.457698] ata1: SATA max UDMA/133 cmd 0xe100 ctl 0xe200 bmdma 0xe500 irq 20
May 20 01:38:14 wheezy kernel: [ 1.668053] ata1: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
May 20 04:03:55 wheezy kernel: [ 1.456741] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xe700 irq 14
May 20 04:03:55 wheezy kernel: [ 1.628683] ata1.00: ATA-8: WDC WD5000AAKB-00L7B0, 01.03B01, max UDMA/133
May 20 04:03:55 wheezy kernel: [ 1.628692] ata1.00: 976773169 sectors, multi 16: LBA48 NCQ (depth 0/1)
May 20 04:03:55 wheezy kernel: [ 1.628968] ata1.01: ATA-8: WDC WD5000AAKB-00H8A0, 05.04E05, max UDMA/133
May 20 04:03:55 wheezy kernel: [ 1.628974] ata1.01: 976773168 sectors, multi 16: LBA48
May 20 04:03:55 wheezy kernel: [ 1.644678] ata1.00: configured for UDMA/133
May 20 04:03:55 wheezy kernel: [ 1.660470] ata1.01: configured for UDMA/133
May 20 12:49:45 wheezy kernel: [ 1.456128] ata1: SATA max UDMA/133 cmd 0xe100 ctl 0xe200 bmdma 0xe500 irq 20
May 20 12:49:45 wheezy kernel: [ 1.660038] ata1: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
May 20 15:57:13 wheezy kernel: [ 1.448997] ata1: SATA max UDMA/133 cmd 0xe100 ctl 0xe200 bmdma 0xe500 irq 20
May 20 15:57:13 wheezy kernel: [ 1.652052] ata1: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
May 20 19:33:39 wheezy kernel: [ 1.455433] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xe700 irq 14
May 20 19:33:39 wheezy kernel: [ 1.643926] ata1.00: ATA-8: WDC WD5000AAKB-00L7B0, 01.03B01, max UDMA/133
May 20 19:33:39 wheezy kernel: [ 1.643934] ata1.00: 976773169 sectors, multi 16: LBA48 NCQ (depth 0/1)
May 20 19:33:39 wheezy kernel: [ 1.654016] ata1.01: ATA-8: WDC WD5000AAKB-00H8A0, 05.04E05, max UDMA/133
May 20 19:33:39 wheezy kernel: [ 1.654021] ata1.01: 976773168 sectors, multi 16: LBA48
May 20 19:33:39 wheezy kernel: [ 1.669114] ata1.00: configured for UDMA/133
May 20 19:33:39 wheezy kernel: [ 1.688939] ata1.01: configured for UDMA/133
May 20 22:09:52 wheezy kernel: [ 1.442390] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xe700 irq 14
May 20 22:09:52 wheezy kernel: [ 1.641617] ata1.00: ATA-8: WDC WD5000AAKB-00L7B0, 01.03B01, max UDMA/133
May 20 22:09:52 wheezy kernel: [ 1.641623] ata1.00: 976773169 sectors, multi 16: LBA48 NCQ (depth 0/1)
May 20 22:09:52 wheezy kernel: [ 1.647549] ata1.01: ATA-8: WDC WD5000AAKB-00H8A0, 05.04E05, max UDMA/133
May 20 22:09:52 wheezy kernel: [ 1.647556] ata1.01: 976773168 sectors, multi 16: LBA48
May 20 22:09:52 wheezy kernel: [ 1.661143] ata1.00: configured for UDMA/133
May 20 22:09:52 wheezy kernel: [ 1.676827] ata1.01: configured for UDMA/133
May 21 03:35:51 wheezy kernel: [ 1.463969] ata1: SATA max UDMA/133 cmd 0xe100 ctl 0xe200 bmdma 0xe500 irq 20
May 21 03:35:51 wheezy kernel: [ 1.672054] ata1: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
May 21 01:45:10 wheezy kernel: [ 1.451557] ata1: SATA max UDMA/133 cmd 0xe100 ctl 0xe200 bmdma 0xe500 irq 20
May 21 01:45:10 wheezy kernel: [ 1.664053] ata1: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
May 21 01:47:50 wheezy kernel: [ 1.453603] ata1: SATA max UDMA/133 cmd 0xe100 ctl 0xe200 bmdma 0xe500 irq 20
May 21 01:47:50 wheezy kernel: [ 1.668036] ata1: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
May 21 14:55:36 wheezy kernel: [ 1.465764] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xe700 irq 14
May 21 14:55:36 wheezy kernel: [ 1.657826] ata1.00: ATA-8: WDC WD5000AAKB-00L7B0, 01.03B01, max UDMA/133
May 21 14:55:36 wheezy kernel: [ 1.657832] ata1.00: 976773169 sectors, multi 16: LBA48 NCQ (depth 0/1)
May 21 14:55:36 wheezy kernel: [ 1.664215] ata1.01: ATA-8: WDC WD5000AAKB-00H8A0, 05.04E05, max UDMA/133
May 21 14:55:36 wheezy kernel: [ 1.664220] ata1.01: 976773168 sectors, multi 16: LBA48
May 21 14:55:36 wheezy kernel: [ 1.680524] ata1.00: configured for UDMA/133
May 21 14:55:36 wheezy kernel: [ 1.697113] ata1.01: configured for UDMA/133
May 22 01:05:30 wheezy kernel: [ 1.438502] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xe700 irq 14
May 22 01:05:30 wheezy kernel: [ 1.629410] ata1.00: ATA-8: WDC WD5000AAKB-00L7B0, 01.03B01, max UDMA/133
May 22 01:05:30 wheezy kernel: [ 1.629416] ata1.00: 976773169 sectors, multi 16: LBA48 NCQ (depth 0/1)
May 22 01:05:30 wheezy kernel: [ 1.635126] ata1.01: ATA-8: WDC WD5000AAKB-00H8A0, 05.04E05, max UDMA/133
May 22 01:05:30 wheezy kernel: [ 1.635131] ata1.01: 976773168 sectors, multi 16: LBA48
May 22 01:05:30 wheezy kernel: [ 1.648783] ata1.00: configured for UDMA/133
May 22 01:05:30 wheezy kernel: [ 1.675482] ata1.01: configured for UDMA/133
May 22 01:39:57 wheezy kernel: [ 1.443352] ata1: SATA max UDMA/133 cmd 0xe100 ctl 0xe200 bmdma 0xe500 irq 20
May 22 01:39:57 wheezy kernel: [ 1.648044] ata1: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
May 22 20:02:51 wheezy kernel: [ 1.452411] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xe700 irq 14
May 22 20:02:51 wheezy kernel: [ 1.637430] ata1.00: ATA-8: WDC WD5000AAKB-00L7B0, 01.03B01, max UDMA/133
May 22 20:02:51 wheezy kernel: [ 1.637436] ata1.00: 976773169 sectors, multi 16: LBA48 NCQ (depth 0/1)
May 22 20:02:51 wheezy kernel: [ 1.637705] ata1.01: ATA-8: WDC WD5000AAKB-00H8A0, 05.04E05, max UDMA/133
May 22 20:02:51 wheezy kernel: [ 1.637710] ata1.01: 976773168 sectors, multi 16: LBA48
May 22 20:02:51 wheezy kernel: [ 1.652458] ata1.00: configured for UDMA/133
May 22 20:02:51 wheezy kernel: [ 1.679609] ata1.01: configured for UDMA/133
May 27 00:26:23 wheezy kernel: [ 1.463871] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xe700 irq 14
May 27 00:26:23 wheezy kernel: [ 1.655396] ata1.00: ATA-8: WDC WD5000AAKB-00L7B0, 01.03B01, max UDMA/133
May 27 00:26:23 wheezy kernel: [ 1.655402] ata1.00: 976773169 sectors, multi 16: LBA48 NCQ (depth 0/1)
May 27 00:26:23 wheezy kernel: [ 1.662710] ata1.01: ATA-8: WDC WD5000AAKB-00H8A0, 05.04E05, max UDMA/133
May 27 00:26:23 wheezy kernel: [ 1.662715] ata1.01: 976773168 sectors, multi 16: LBA48
May 27 00:26:23 wheezy kernel: [ 1.682779] ata1.00: configured for UDMA/133
May 27 00:26:23 wheezy kernel: [ 1.696611] ata1.01: configured for UDMA/133
May 27 03:21:39 wheezy kernel: [ 1.450280] ata1: SATA max UDMA/133 cmd 0xe100 ctl 0xe200 bmdma 0xe500 irq 20
May 27 03:21:39 wheezy kernel: [ 1.656041] ata1: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
May 27 20:21:03 wheezy kernel: [ 1.465427] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xe700 irq 14
May 27 20:21:03 wheezy kernel: [ 1.654690] ata1.00: ATA-8: WDC WD5000AAKB-00L7B0, 01.03B01, max UDMA/133
May 27 20:21:03 wheezy kernel: [ 1.654696] ata1.00: 976773169 sectors, multi 16: LBA48 NCQ (depth 0/1)
May 27 20:21:03 wheezy kernel: [ 1.663324] ata1.01: ATA-8: WDC WD5000AAKB-00H8A0, 05.04E05, max UDMA/133
May 27 20:21:03 wheezy kernel: [ 1.663329] ata1.01: 976773168 sectors, multi 16: LBA48
May 27 20:21:03 wheezy kernel: [ 1.677228] ata1.00: configured for UDMA/133
May 27 20:21:03 wheezy kernel: [ 1.692927] ata1.01: configured for UDMA/133
# sudo cat /var/log/syslog | grep ata1
May 27 00:26:23 wheezy kernel: [ 1.463871] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xe700 irq 14
May 27 00:26:23 wheezy kernel: [ 1.655396] ata1.00: ATA-8: WDC WD5000AAKB-00L7B0, 01.03B01, max UDMA/133
May 27 00:26:23 wheezy kernel: [ 1.655402] ata1.00: 976773169 sectors, multi 16: LBA48 NCQ (depth 0/1)
May 27 00:26:23 wheezy kernel: [ 1.662710] ata1.01: ATA-8: WDC WD5000AAKB-00H8A0, 05.04E05, max UDMA/133
May 27 00:26:23 wheezy kernel: [ 1.662715] ata1.01: 976773168 sectors, multi 16: LBA48
May 27 00:26:23 wheezy kernel: [ 1.682779] ata1.00: configured for UDMA/133
May 27 00:26:23 wheezy kernel: [ 1.696611] ata1.01: configured for UDMA/133
May 27 03:21:39 wheezy kernel: [ 1.450280] ata1: SATA max UDMA/133 cmd 0xe100 ctl 0xe200 bmdma 0xe500 irq 20
May 27 03:21:39 wheezy kernel: [ 1.656041] ata1: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
May 27 20:21:03 wheezy kernel: [ 1.465427] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xe700 irq 14
May 27 20:21:03 wheezy kernel: [ 1.654690] ata1.00: ATA-8: WDC WD5000AAKB-00L7B0, 01.03B01, max UDMA/133
May 27 20:21:03 wheezy kernel: [ 1.654696] ata1.00: 976773169 sectors, multi 16: LBA48 NCQ (depth 0/1)
May 27 20:21:03 wheezy kernel: [ 1.663324] ata1.01: ATA-8: WDC WD5000AAKB-00H8A0, 05.04E05, max UDMA/133
May 27 20:21:03 wheezy kernel: [ 1.663329] ata1.01: 976773168 sectors, multi 16: LBA48
May 27 20:21:03 wheezy kernel: [ 1.677228] ata1.00: configured for UDMA/133
May 27 20:21:03 wheezy kernel: [ 1.692927] ata1.01: configured for UDMA/133
05-30-2013, 01:53 PM
#4
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623
Original Poster
Rep:
I have done "check" of ext4 partition using gparted, booting from usb drive, but it stops with errors:
Code:
GParted 0.16.1
Libparted 2.3
Check and repair file system (ext4) on /dev/sda3 00:00:04 ( ERROR )
calibrate /dev/sda3 00:00:00 ( SUCCESS )
path: /dev/sda3
start: 313417728
end: 366665727
size: 53248000 (25.39 GiB)
check file system on /dev/sda3 for errors and (if possible) fix them 00:00:04 ( SUCCESS )
e2fsck -f -y -v /dev/sda3
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
120613 inodes used (7.25%, out of 1664640)
157 non-contiguous files (0.1%)
57 non-contiguous directories (0.0%)
# of inodes with ind/dind/tind blocks: 0/0/0
Extent depth histogram: 108742/67
1086472 blocks used (16.32%, out of 6656000)
0 bad blocks
0 large files
96388 regular files
12380 directories
0 character device files
0 block device files
2 fifos
7618 links
11801 symbolic links (11759 fast symbolic links)
33 sockets
------------
128222 files
e2fsck 1.42.5 (29-Jul-2012)
grow file system to fill the partition 00:00:00 ( ERROR )
resize2fs /dev/sda3
resize2fs 1.42.5 (29-Jul-2012)
resize2fs: /dev/sda3: The combination of flex_bg and
!resize_inode features is not supported by resize2fs.
Even
Code:
fsck.ext4 -cDfty -C 0 /dev/sda3
doesn't help:
Code:
/dev/sda3: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
/dev/sda3: | | 0.3%
/dev/sda3: |= / 1.0%
/dev/sda3: |= - 1.4%
/dev/sda3: |= \ 2.1%
/dev/sda3: |= | 2.4%
/dev/sda3: |== / 2.7%
/dev/sda3: |== - 3.4%
/dev/sda3: |== \ 3.8%
/dev/sda3: |== | 4.1%
/dev/sda3: |== / 4.5%
/dev/sda3: |=== - 5.1%
/dev/sda3: |====== \ 11.3%
Pass 2: Checking directory structure
/dev/sda3: |======================================== | 71.2%
/dev/sda3: |========================================= / 73.0%
/dev/sda3: |=========================================== - 76.2%
/dev/sda3: |============================================ \ 79.0%
/dev/sda3: |============================================== | 81.5%
/dev/sda3: |=============================================== / 83.6%
/dev/sda3: |================================================= - 86.8%
/dev/sda3: |================================================= \ 88.4%
/dev/sda3: |================================================== | 88.9%
/dev/sda3: |================================================== / 89.7%
Pass 3: Checking directory connectivity
Pass 3A: Optimizing directories
Rebuilding directory: | - 0.0% 2
Rebuilding directory: |=== \ 9.9% 11476
Rebuilding directory: |========== | 31.7% 52685
Rebuilding directory: |================== / 56.7% 87578
Rebuilding directory: |========================== - 82.0% 119969
Rebuilding directory: |================================| 100.0% 392712
Pass 4: Checking reference counts
/dev/sda3: |==================================================== | 92.4%
/dev/sda3: |==================================================== / 93.5%
/dev/sda3: |===================================================== - 94.5%
Pass 5: Checking group summary information
/dev/sda3: |===================================================== \ 95.3%
/dev/sda3: |===================================================== | 95.5%
/dev/sda3: |====================================================== / 96.5%
/dev/sda3: |========================================================| 100.0%
/dev/sda3: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda3: 120613/1664640 files (0.2% non-contiguous), 1086472/6656000 blocks
Memory used: 2460k/0k (252k/2209k), time: 310.19/ 2.66/ 0.36
I/O read: 162MB, write: 64MB, rate: 0.73MB/s
http://www.commandlinefu.com/command...-progress-info
BTW the mainboard and IDE cables are OK.
If I try other internal hard disks, don't have this problem.
It must be a problem with my hard disk.
Any idea how to solve this?
Last edited by cccc; 05-30-2013 at 02:25 PM .
05-30-2013, 02:02 PM
#5
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
I recommend to check the health of that drive, either using
Code:
smartctl -a /dev/sda
or using the disk manufacturer's diagnosis tool to rule out hardware errors.
05-30-2013, 02:23 PM
#6
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623
Original Poster
Rep:
I get the following:
Code:
smartctl 5.43 2012-06-05 r3561 [i686-linux-3.2.0-4-486] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar Blue EIDE
Device Model: WDC WD5000AAKB-00L7B0
Serial Number: WD-WCASYF392315
LU WWN Device Id: 5 0014ee 2afd31170
Firmware Version: 01.03B01
User Capacity: 500,107,862,528 bytes [500 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: 8
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Thu May 30 19:15:51 2013 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Disabled
SMART Disabled. Use option -s with argument 'on' to enable it.
BTW it seems to be a problem on Debian, because
ALL Tests using Western Digital Data Lifeguard Diagnostic are OK .
05-30-2013, 02:31 PM
#7
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623
Original Poster
Rep:
Should I try other fsck options, for example fsck.ext4 -fypa ...?
Last edited by cccc; 05-30-2013 at 02:39 PM .
05-30-2013, 04:14 PM
#8
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634
Quote:
Originally Posted by
cccc
Should I try other fsck options, for example fsck.ext4 -fypa ...?
Well, why don't you try what the message you posted says to try??
Quote:
Originally Posted by cccc
SMART Disabled. Use option -s with argument 'on' to enable it.
So, enable SMART, and run the SMART test again.
All times are GMT -5. The time now is 08:55 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