Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 May 2005 17:50:44 +0300
From:      "Bigbrother" <bigbrother@bonbon.net>
To:        <freebsd-questions@freebsd.org>
Subject:   Re: Files corrupt after copy!!!
Message-ID:  <200505281450.j4SEoCXH032328@bigb3server.ath.cx>

next in thread | raw e-mail | index | archive | help




> 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 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505281450.j4SEoCXH032328>