From owner-freebsd-current Sat Nov 2 0:50:53 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4460F37B401; Sat, 2 Nov 2002 00:50:52 -0800 (PST) Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id E205E43E8A; Sat, 2 Nov 2002 00:50:48 -0800 (PST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: from zibbi.icomtek.csir.co.za (localhost [IPv6:::1]) by zibbi.icomtek.csir.co.za (8.12.6/8.12.6) with ESMTP id gA28ohD8086474; Sat, 2 Nov 2002 10:50:43 +0200 (SAT) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: (from jhay@localhost) by zibbi.icomtek.csir.co.za (8.12.6/8.12.6/Submit) id gA28ohm4086473; Sat, 2 Nov 2002 10:50:43 +0200 (SAT) (envelope-from jhay) From: John Hay Message-Id: <200211020850.gA28ohm4086473@zibbi.icomtek.csir.co.za> Subject: fdisk -BI ob clean disk broken To: current@freebsd.org Date: Sat, 2 Nov 2002 10:50:42 +0200 (SAT) Cc: phk@freebsd.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 4.x I have been using a slightly modified version of Warner's diskprep to write new compact flashes. On -current fdisk die with signal 8 (Floating point exception) when this part of the script runs: $dev = "/dev/r${drive}"; system "/bin/dd if=/dev/zero of=$dev count=128 > /dev/null 2>&1"; system "/sbin/fdisk -BI $drive"; $dev is normally da0, which is the compact flash plugged into a Sandisk usb CF reader. So is there a better way in the GEOM world to achieve the same thing? John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message