Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED and Above solved!]Does my HD gone kaput???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
guru369
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 225

PostPosted: Mon Jan 08, 2007 3:07 pm    Post subject: [SOLVED and Above solved!]Does my HD gone kaput??? Reply with quote

Hey Gentoo's,

Looking at my dmesg I noticed a lot of these errors:

Code:

end_request: I/O error, dev hdg, sector 70
end_request: I/O error, dev hdg, sector 63
end_request: I/O error, dev hdg, sector 64
end_request: I/O error, dev hdg, sector 65
end_request: I/O error, dev hdg, sector 66
end_request: I/O error, dev hdg, sector 67
end_request: I/O error, dev hdg, sector 68
end_request: I/O error, dev hdg, sector 69
end_request: I/O error, dev hdg, sector 70
end_request: I/O error, dev hdg, sector 63
end_request: I/O error, dev hdg, sector 64
end_request: I/O error, dev hdg, sector 65
end_request: I/O error, dev hdg, sector 66
end_request: I/O error, dev hdg, sector 67
end_request: I/O error, dev hdg, sector 68
end_request: I/O error, dev hdg, sector 69
end_request: I/O error, dev hdg, sector 70
end_request: I/O error, dev hdg, sector 63
end_request: I/O error, dev hdg, sector 64
end_request: I/O error, dev hdg, sector 65
end_request: I/O error, dev hdg, sector 66
end_request: I/O error, dev hdg, sector 67


And the list goes on..

This is dev/ide/hdg/model:
Code:

monster dekela # cat /proc/ide/hdg/model
Maxtor 6L200M0
monster dekela #


TI am running windows on this drive as well as one extended partition with FAT32 on it:

Code:

monster dekela # fdisk /dev/sda -l

Disk /dev/sda: 203.9 GB, 203927027200 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1436    11534638+   7  HPFS/NTFS
/dev/sda2           14622       24792    81698557+   f  W95 Ext'd (LBA)
/dev/sda3            1437       14621   105908512+   c  W95 FAT32 (LBA)
/dev/sda5           14622       24792    81698526    7  HPFS/NTFS

Partition table entries are not in disk order


On sda1 I have my windows installation, Should I load windows and chkdsk the disks?
Maybe theres error on the FAT or NTFS FS that are unrecoverable from Gentoo?

Thanks in advance for all you help.

Dekel
_________________
Gentoo Rulz!!!


Last edited by guru369 on Fri Jan 12, 2007 8:06 am; edited 2 times in total
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Mon Jan 08, 2007 3:44 pm    Post subject: Reply with quote

You can check the hdd from linux as well. However, I'd make a backup of all data *now* as it looks like that hdd is going to die soon.
_________________
KDE
Back to top
View user's profile Send private message
bLUEbYTE84
Guru
Guru


Joined: 21 Jul 2006
Posts: 566
Location: universe.tar.gz, src/earth.h, struct homo_sapiens_table

PostPosted: Wed Jan 10, 2007 7:10 pm    Post subject: Reply with quote

emerge smartmontools and check with it.
Back to top
View user's profile Send private message
guru369
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 225

PostPosted: Wed Jan 10, 2007 7:49 pm    Post subject: Reply with quote

bLUEbYTE84 wrote:
emerge smartmontools and check with it.


Thanks!.

Here is a list of the troubleshooting steps I did:
Reminder:
Code:

Disk /dev/sda: 203.9 GB, 203927027200 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1436    11534638+   7  HPFS/NTFS
/dev/sda2           14622       24792    81698557+   f  W95 Ext'd (LBA)
/dev/sda3            1437       14621   105908512+   c  W95 FAT32 (LBA)
/dev/sda5           14622       24792    81698526    7  HPFS/NTFS

Partition table entries are not in disk order


1. Booted windows.
2. Run Partition magic Surface test and file Structure check on /dev/sda3 and /dev/sda5.
3. Check using Windows default Disk Checking partition: /dev/sda3 and /dev/sda5.
4.Marked /dev/sda1 for a check during boot and rebooted.
5.Unfortunately I was unable to check the check report because I had to go to work.. ;-(
6. Booted back to Gentoo..
7.Check dmesg -- Still errors.
8. Clear dmesg and reboot -- still errors.
9. emerge smartmontools and execute:
Code:

 smartctl -H /dev/sda
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

SMART Health Status: OK

And:
Code:

monster dekela # smartctl --test=long /dev/sda
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Extended Background Self Test has begun
Please wait 0 minutes for test to complete.
Estimated completion time: Wed Jan 10 21:46:34 2007

Use smartctl -X to abort test

And:
Code:

monster dekela # smartctl --all /dev/sda
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Device: ATA      Maxtor 6L200M0   Version: BANC
Serial number: L40TQPRG
Device type: disk
Local Time is: Wed Jan 10 21:46:54 2007 IST
Device does not support SMART

Error Counter logging not supported

[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
Device does not support Self Test logging


Its fairly a new drive (200GB) and I am surprised it dosent support smart!
I am planing to do some checks with windows and see whats up with the drive.

Any suggestions are welcome.

Thanks,
Dekel
_________________
Gentoo Rulz!!!
Back to top
View user's profile Send private message
guru369
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 225

PostPosted: Thu Jan 11, 2007 12:02 pm    Post subject: Reply with quote

A Quick Update:
I was running chkdsk on each of the partitions I have on that disk and found out that the Windows System Partition: C: is having errors on it.

I scheduled a fix on the next reboot, However I am connected from remote and if I will reboot my Gentoo Linux will kick in (As it is first on Grub)

So It will wait till I'll get home.

Anyway, At least I didnt see any bad sectors which means the HD isnt kaput...

Dekel
_________________
Gentoo Rulz!!!
Back to top
View user's profile Send private message
downey
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2004
Posts: 107
Location: Calgary, Canada

PostPosted: Thu Jan 11, 2007 4:39 pm    Post subject: Reply with quote

I don't think smartmontools works for SATA drives yet. The sata drivers don't support the calls yet. There was a patch to add in support for SATA drives around but I don't know if it has made it in yet. Anyways, you would need to enable SMART on the hard drive before you can do anything with it. You need to run smartctl -s on /dev/sda. That will enable SMART on the hard drive. I haven't tried running smartctl on a SATA drive for quite some time so it may not work yet.

Hope that helps.
Back to top
View user's profile Send private message
elvanor
Developer
Developer


Joined: 11 Oct 2004
Posts: 178
Location: France

PostPosted: Thu Jan 11, 2007 4:48 pm    Post subject: Reply with quote

smartmontools work with SATA drives. You just need to add -d ata when calling smartctl. Eg, run smartctl -a -d ata /dev/sda.

Then look if you have any SMART errors reported by the drive.
Back to top
View user's profile Send private message
Inodoro_Pereyra
Advocate
Advocate


Joined: 03 Nov 2006
Posts: 2631
Location: En la otra punta del cable

PostPosted: Thu Jan 11, 2007 6:24 pm    Post subject: Reply with quote

You should try some low level surface scanners like MHDD: http://hddguru.com/content/en/software/2005.10.02-MHDD/
It will give you a clue about the real disk surface status and (if you wish) could move any deffective areas to the P-LIST or G-LIST of your hard drive so you can continue using it normally tought.

Regards
_________________
Mi Blog.

Si no fuera por C, estaríamos escribiendo programas en BASI, PASAL y OBOL.
Back to top
View user's profile Send private message
guru369
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 225

PostPosted: Thu Jan 11, 2007 6:54 pm    Post subject: Reply with quote

Update:

I used Perfect Disk to check and defrag my drive, Apparently My C drive was reporting errors about the MFT (free space is marked as allocated)
So the good news it seems to be SW related issue and not HW.

I did all the defargmentation I could (Offline and On-line until I reached a stage in which chkdsk was reporting 0 errors! ;-)

Now I booted into gentoo and the first thing checked dmesg... But.. Still I saw the errors ;-(
I think those errors are old errors so I did dmesg -c.

Q 1: Do you know of anyway to add timestamps to dmesg messages?
Q 2: I am mounting the drive as ro (Read Only) So n changes are being done to the file system structure. Could it be a problem with the NTFS support in the kernel? currently 2.6.18 r6?

Appreciate all the help.
Dekel

Update:
I launched qpart and here is what I see (Pictures are better then words ;-):
[img=http://img403.imageshack.us/img403/299/qparthdgsa2.th.png]

And:
[img=http://img405.imageshack.us/img405/9461/qpartsda1og9.th.png]

What the hell? /dev/sda is /dev/hdg ... Does my kernel recognize my drive twice??

Dekel
_________________
Gentoo Rulz!!!


Last edited by guru369 on Thu Jan 11, 2007 11:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
guru369
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 225

PostPosted: Thu Jan 11, 2007 9:48 pm    Post subject: Reply with quote

Resolution:
1. The drive is clean and no HW issues where found.
2. I changed the SATA connectors on my motherboard to use the Primary first and the secondary first.
/dev/sda is the first Master.

3. I own a Gigabyte P965 DS-4 with Intel ICH8. So I have 6 SATA inputs. 2 of them are the purple ones (3/GBps)
So now Gentoo recognize my drives as:
/dev/hda and /dev/hdc
I guess it uses the ide interface now and not the sata.

But the good news is that I don't have the errors no more.

I will have to do some performance testing to see if I am loosing any performance due to the move.

I will keep this post updated.

Anyway, Thanks everyone for the help!!

Dekel


Update:

Ok I made some investigation, It seems that my drives were using non-dma mode and I was unable to change it with hdparm.
So I did some searching on any kernel settings I may need:
Removed:
Code:

    Include IDE/ATA-2 DISK support                                                             

Leave as is:
Code:

<*>   Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
<*>     Include IDE/ATAPI CDROM support

    [*]     PCI IDE chipset support                                                                                                                 
       <*>       Generic PCI IDE Chipset Support
        [*]       Generic PCI bus-master DMA support             
        [*]         Use PCI DMA by default when available                                   
        <*>         Intel PIIXn chipsets support

SCSI:
Code:

[*]   legacy /proc/scsi/ support
<*>   SCSI disk support
SCSI low-level drivers  --->
    <*> Serial ATA (SATA) support
    <*>   AHCI SATA support
    <*>   Intel PIIX/ICH SATA support
   


Thats it , Now my partition table looks like this:
Code:

monster linux # fdisk -l

Disk /dev/sda: 203.9 GB, 203927027200 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1436    11534638+   7  HPFS/NTFS
/dev/sda2           14622       24792    81698557+   f  W95 Ext'd (LBA)
/dev/sda3            1437       14621   105908512+   c  W95 FAT32 (LBA)
/dev/sda5           14622       24792    81698526    7  HPFS/NTFS

Partition table entries are not in disk order

Disk /dev/sdb: 160.0 GB, 160040803840 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       14358   115330603+   7  HPFS/NTFS
/dev/sdb2   *       14359       14363       40162+  83  Linux
/dev/sdb3           14364       14488     1004062+  82  Linux swap / Solaris
/dev/sdb4           14489       19457    39913492+  83  Linux
monster linux #


Some hdparm stats:
Code:

monster linux # hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   5200 MB in  2.00 seconds = 2599.70 MB/sec
 Timing buffered disk reads:  188 MB in  3.02 seconds =  62.19 MB/sec
monster linux # hdparm -tT /dev/sdb

/dev/sdb:
 Timing cached reads:   5092 MB in  2.00 seconds = 2546.62 MB/sec
 Timing buffered disk reads:  180 MB in  3.00 seconds =  59.95 MB/sec
monster linux #


I am not sure if I need to enable dma as it dosent include in the output of hdparm. But I think the numbers are nice.. ;-)

Any comments are welcome, I hope others would benefit from my investigation as well.

Dekel

P.S.

Does anybody knows what this message means? (From dmesg)
Code:
kobject_add failed for pwc with -EEXIST, don't try to register things with the same name in the same directory.
 [<c021260a>] kobject_add+0x146/0x16c
 [<c0212716>] kobject_register+0x19/0x30
 [<c013254d>] sys_init_module+0x129f/0x1708
 [<c014da95>] do_sync_read+0x0/0xf1
 [<c0102809>] sysenter_past_esp+0x56/0x79
kobject_add failed for pwc with -EEXIST, don't try to register things with the same name in the same directory.
 [<c021260a>] kobject_add+0x146/0x16c
 [<c0212716>] kobject_register+0x19/0x30
 [<c013254d>] sys_init_module+0x129f/0x1708
 [<c014da95>] do_sync_read+0x0/0xf1
 [<c0102809>] sysenter_past_esp+0x56/0x79

_________________
Gentoo Rulz!!!
Back to top
View user's profile Send private message
bLUEbYTE84
Guru
Guru


Joined: 21 Jul 2006
Posts: 566
Location: universe.tar.gz, src/earth.h, struct homo_sapiens_table

PostPosted: Fri Jan 12, 2007 9:47 pm    Post subject: Reply with quote

Wow nice throughput stats you got over there.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum