From owner-freebsd-questions@FreeBSD.ORG Sat May 28 14:53:40 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0B0B16A41C for ; Sat, 28 May 2005 14:53:40 +0000 (GMT) (envelope-from bigbrother@bonbon.net) Received: from mail.duth.gr (mail.duth.gr [192.108.114.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20E9243D1F for ; Sat, 28 May 2005 14:53:39 +0000 (GMT) (envelope-from bigbrother@bonbon.net) Received: from bigb3server.ath.cx (b9-117.xan.duth.gr [193.92.211.117]) by mail.duth.gr (8.13.1/8.13.1) with ESMTP id j4SErbxm090869 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 28 May 2005 17:53:37 +0300 (EEST) (envelope-from bigbrother@bonbon.net) Received: from macedon (macedon.ivlsi.gr [192.168.3.226]) by bigb3server.ath.cx (8.13.1/8.13.1) with ESMTP id j4SEoCXH032328 for ; Sat, 28 May 2005 17:50:12 +0300 (EEST) (envelope-from bigbrother@bonbon.net) Message-Id: <200505281450.j4SEoCXH032328@bigb3server.ath.cx> From: "Bigbrother" To: Date: Sat, 28 May 2005 17:50:44 +0300 Organization: Bigbrother Clustered Network MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Thread-Index: AcVjk5kA4rBcJmqqT1+GMkH2TfTNXQ== X-Scanned-By: MIMEDefang 2.51 on 192.108.114.110 X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-1.6 (mail.duth.gr [192.108.114.110]); Sat, 28 May 2005 17:53:38 +0300 (EEST) Subject: Re: Files corrupt after copy!!! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2005 14:53:40 -0000 > 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: port 0xd800-0xd80f at device 4.1 on pci0 atapci1: 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