Files corrupt after copy!!!

Bigbrother bigbrother at bonbon.net
Sat May 28 07:53:40 PDT 2005





> I just copied my entire "home" directory from my Windows XP harddrive
(ad6)
> running NTFS over to my FreeBSD harddrive (ad4) running UFS2:
> ..

In the past I had faced a similar program. I found out that the errors were
caused by the DMA controller.
So I have disabled DMA hard disc and no write errors occur.

So In the rc.d directory I have created a script that runs 'atacontrol mode
[0-3] pio4 pio4' .

Thus I make all hard discs to operate in PIO4 mode. Even though it is a bit
slow I do not have any write errors at any disc any more. My machine has the
following two controllers:

atapci0: <VIA 82C686 ATA66 controller> port 0xd800-0xd80f at device 4.1 on
pci0
atapci1: <Promise ATA100 controller> port
0x8400-0x843f,0x8800-0x8803,0x9000-0x9007,0x9400-0x9403,0x
9800-0x9807 mem 0xda000000-0xda01ffff irq 10 at device 17.0 on pci0


So try to use PIO4 mode for your discs and see if your data is ok.



---
Give a man fire, and he'll be warm for a day; set a man on fire, and he'll
be warm for the rest of his life 



More information about the freebsd-questions mailing list