From owner-freebsd-questions@FreeBSD.ORG Mon Mar 10 08:06:21 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B864106566B for ; Mon, 10 Mar 2008 08:06:21 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.93]) by mx1.freebsd.org (Postfix) with ESMTP id D5BC18FC1D for ; Mon, 10 Mar 2008 08:06:20 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from [192.168.0.1] (athedsl-287704.home.otenet.gr [85.73.171.118]) by aiolos.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id m2A86Hpf029049; Mon, 10 Mar 2008 10:06:18 +0200 Message-ID: <47D4EC0C.9010300@otenet.gr> Date: Mon, 10 Mar 2008 10:06:36 +0200 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: "Philip M. Gollucci" References: <47D4E766.6060005@p6m7g8.com> In-Reply-To: <47D4E766.6060005@p6m7g8.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Freebsd Questions Subject: Re: atacontrol mode D PIO4 persist across reboots 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: Mon, 10 Mar 2008 08:06:21 -0000 Philip M. Gollucci wrote: > /var/run/dmesg.boot > ad2: 28667MB at ata1-master UDMA33 > ad2: FAILURE - READ_DMA timed out LBA=58711965 > ad2: TIMEOUT - READ_DMA retrying (1 retry left) LBA=0 > ad2: FAILURE - READ_DMA timed out LBA=58711951 > ad2: TIMEOUT - READ_DMA retrying (0 retries left) LBA=0 > ad2: FAILURE - READ_DMA timed out LBA=58711964 > ad2: FAILURE - READ_DMA timed out LBA=0 > .... > 10-30 minutes later, it finally gets through the boot. > > /etc/fstab: > /dev/ad2s1 /X ufs rw 2 2 > > the problem here is the device needs to be PIO4 > > $ atacontrol mode ad2 PIO4 > current mode = PIO4 > > My problem is how do I get this to persist across reboot ? > > Have a look at man 4 ata Your answer is probably: hw.ata.ata_dma=0 in /boot/loader.conf Are you sure it is not a faulty (or failing) disk though? This size / age drive should have no problem running in DMA mode.