Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eSATA harddisk corrupting data
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
tomblue
n00b
n00b


Joined: 29 Jul 2008
Posts: 14
Location: Ilmenau / Germany

PostPosted: Tue Feb 17, 2009 4:29 pm    Post subject: eSATA harddisk corrupting data Reply with quote

Hi all,

I've got a Seagate ST3160023AS harddisk (160GB) in an Enermax JAZZ HDD enclosure attached to a MSI P7N mainboard via eSATA.

If I copy a file bigger than round about 700MB, the data (haven't figured out the exact threshold) is getting corrupted. MD5 sums of the original and the copy differ. Smaller files seem to be ok though.

I'm running Gentoo (kernel 2.6.25.9) as have tested with several live CDs (e.g. knoppix [kernel 2.6.28] or systemrescuecd [kernel 2.6.27]). They all show the same problem. The puzzling twist is: A parallel installed Vista64 does NOT show such odd problems!? That makes a hardware issue unlikely I suppose.

Has someone seen such an behaviour? Anyone an idea what might cause this?

Some more hardware details:

Intel Q9450@2,66GHz
MSI P7N Bios 1.3 (latest available at the moment)

eSATA controller
Code:
lspci | grep Micron
06:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 03)
06:00.1 IDE interface: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 03)


kernel
Code:
uname -a
Linux hades 2.6.25.9 #1 SMP Sat Nov 15 19:39:00 CET 2008 x86_64 Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz GenuineIntel GNU/Linux


Time for a small update:

I connected the harddisk via USB. This works perfect! All data is copied without any problems or corruption. Is it possible that I've run into some kernel module glitch? Does anyone have similar hardware working?
Back to top
View user's profile Send private message
petlab
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 290
Location: Armpit, Oregon

PostPosted: Wed Feb 18, 2009 7:04 pm    Post subject: Reply with quote

Its possible you just have cable problems. I know that answer sucks, but I have read about and experienced random problems with sata cables in general. If you have another cable, try that.
_________________
Get Serious - Get JAWA CZ
Back to top
View user's profile Send private message
tomblue
n00b
n00b


Joined: 29 Jul 2008
Posts: 14
Location: Ilmenau / Germany

PostPosted: Wed Feb 18, 2009 7:18 pm    Post subject: Reply with quote

Hi petlab,

I don't have a spare cable unfortunately. As the drive works fine with Windows Vista, using the very same cable, I would rule out hardware issues.

I was looking for new, longer cable anyway, but has not yet arrived. I'll definitely give it a go once I've got it in my hands. :)


Cheers
Back to top
View user's profile Send private message
SysGhost
n00b
n00b


Joined: 24 Apr 2007
Posts: 48
Location: Stockholm

PostPosted: Thu Feb 19, 2009 6:25 pm    Post subject: Ntfs? Reply with quote

Well. You have ruled out the hardware as a source of failure.

Kernel module for serial ATA is highly unlikely to fail.

So whats left?

The filesystem

Are you using NTFS ?

If so try another filesystem as I believe that the NTFS module included in the kernel have a somewhat "troubled" write support.
It is after all marked "EXPERIMENTAL".
Back to top
View user's profile Send private message
tomblue
n00b
n00b


Joined: 29 Jul 2008
Posts: 14
Location: Ilmenau / Germany

PostPosted: Thu Feb 19, 2009 6:59 pm    Post subject: Reply with quote

I received the new eSATA cable today - no change in behaviour.

Filesystem could have been a problem, good point. I checked with several different ones though: NTFS, ext3 and jfs. Still the same problem... :cry:
Back to top
View user's profile Send private message
SysGhost
n00b
n00b


Joined: 24 Apr 2007
Posts: 48
Location: Stockholm

PostPosted: Thu Feb 19, 2009 7:14 pm    Post subject: AHCI or hardware specific module? Reply with quote

This is strange.

Works fine under Windows.
Hardware works fine.
Filesystem seems not to be the matter.

Conclusion: Kernel module.

Are you using the general AHCI SATA kernel module or a hardware-specific kernel module?

I would suggest to use AHCI as far as you can if the hardware supports AHCI mode.
I believe the hardware-specific modules for many controller chips/cards are not working too well with the hardware since some modules are related or even themselves reverse-engineered and thus "experimental".
Back to top
View user's profile Send private message
tomblue
n00b
n00b


Joined: 29 Jul 2008
Posts: 14
Location: Ilmenau / Germany

PostPosted: Sat Feb 21, 2009 2:40 pm    Post subject: Reply with quote

The AHCI module is supposed to power the eSATA drive. I've enabled AHCI for the controller in BIOS.
The NV (Nvidia) module supports the internal SATA interfaces and currently manages to work fine with 3 attached hard disks.

Code:

 cat .config | grep SATA
CONFIG_SATA_AHCI=y
CONFIG_SATA_NV=y
Back to top
View user's profile Send private message
SysGhost
n00b
n00b


Joined: 24 Apr 2007
Posts: 48
Location: Stockholm

PostPosted: Sun Feb 22, 2009 9:51 pm    Post subject: Reply with quote

If possible, try using AHCI on all devices.
I'm not sure if the sata_nv works well with AHCI, but once upon a time I tried the nv module took over everything leaving the AHCI without "work".
Later on I disabled the nv module and I was lucky enough to have hardware that was fully compatible with AHCI. It solved some trouble for me back then.

If your onboard nividia sata is AHCI-compatible, consider it.
Back to top
View user's profile Send private message
tomblue
n00b
n00b


Joined: 29 Jul 2008
Posts: 14
Location: Ilmenau / Germany

PostPosted: Mon Feb 23, 2009 7:15 am    Post subject: Reply with quote

I'll give it a go and post an update asap.

Thanks for the help so far!
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