From owner-freebsd-stable@FreeBSD.ORG Thu Dec 9 12:04:26 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE1F216A4CE for ; Thu, 9 Dec 2004 12:04:26 +0000 (GMT) Received: from lp1001.snu.ac.kr (lp1001.snu.ac.kr [147.46.70.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F5AC43D31 for ; Thu, 9 Dec 2004 12:04:26 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from [147.46.44.181] (cisr.snu.ac.kr [147.46.44.181]) (authenticated (0 bits)) by lp1001.snu.ac.kr (8.13.1/8.11.6) with ESMTP id iB9C2EmH022520 for ; Thu, 9 Dec 2004 21:02:14 +0900 Message-ID: <41B83F43.3060102@yahoo.com> Date: Thu, 09 Dec 2004 21:04:19 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <41B7E193.4090807@yahoo.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: hw.ata.ata_dma="0": can I do this during bootup at the loader prompt? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2004 12:04:26 -0000 Arjan Van Leeuwen wrote: > On Thu, 09 Dec 2004 14:24:35 +0900, Rob wrote: > >>Hi, >> >>In /boot/loader.conf, I have >> hw.ata.ata_dma="0" >>to prevent a WRITE_DMA failure crash at bootup. >>Unfortunately, this forces my UDMA100 harddisk to operate >>at PIO4 speed. >> >>There are patches flying around on this mailing list that might >>solve the problem. I'm very keen on testing such patches, but I >>should remove the line in loader.conf. However, if the patch does >>not work, I end up with an unbootable disk. >> >>It would be nice if I can set hw.ata.ata_dma="0" at the loader >>prompt during bootup, so that the system at least will boot from >>harddisk. Is that possible? >> > > > I'm not sure if I understand what you want, but you can use eg > 'atacontrol mode udma33 udma33' to set your hard drive to > UDMA-33 after the system has booted. No, that's no option. The situation is this: I have a harddisk with FreeBSD 5.3, which fails to boot. It would boot if I had hw.ata.ata_dma="0" in /boot/loader.conf; however, that file is empty, so the bootup crashes with a WRITE_DMA failure when the kernel loads. I can get at the bootloader prompt during the boot. What I want to know is: can I type something here that has the same effect as hw.ata.ata_dma="0" in /boot/loader.conf? Then I can continue loading the kernel. Thanks, Rob.