From owner-freebsd-usb@FreeBSD.ORG Thu Aug 21 15:43:55 2008 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D75581065681 for ; Thu, 21 Aug 2008 15:43:55 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 831098FC0A for ; Thu, 21 Aug 2008 15:43:55 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m7LFhJ7b044671; Thu, 21 Aug 2008 09:43:20 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 21 Aug 2008 09:43:48 -0600 (MDT) Message-Id: <20080821.094348.1257475537.imp@bsdimp.com> To: aminoff@nber.org From: "M. Warner Losh" In-Reply-To: <20080821144826.GD13934@perlw2.nber.org> References: <20080821144826.GD13934@perlw2.nber.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@FreeBSD.org Subject: Re: USB thumb drive does not newfs under FreeBSD 7.0 (but does under 6.2) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2008 15:43:55 -0000 In message: <20080821144826.GD13934@perlw2.nber.org> Alex Aminoff writes: : : : We seem to have a USB thumb drive that works under FreeBSD 6.2 but : does not newfs under 7.0. We hope that there is some package or : library we have failed to upgrade. Any advice on how to proceed to : resolve this would be greatly appreciated. If this is the wrong place : to ask, please point us to the correct place. : : The versions of FreeBSD in question are : : 6.2-RELEASE-p9 : vs : 7.0-RELEASE-p2 : : both are generic kernels. It is the same hardware booted to one or the : other OS. : : dmesg says: : : da1 at umass-sim0 bus 0 target 0 lun 0 : da1: Removable Direct Access SCSI-0 device : da1: 1.000MB/s transfers : da1: 15424MB (31588352 512 byte sectors: 255H 63S/T 1966C) : : # fdisk -I /dev/da1 : : succeeds on both OSs : : # newfs /dev/da1s1 : : On 6.2, this succeeds, and we can mount : and use the filesystem. On 7.0, newfs dies with : : cg 0: bad magic number : : Some searching on that error string turns up stuff about needing to : reserve space at the beginning of a disk for the partition table. We : have tried adjusting the parameters of the slice with fdisk with no : success. In any case it seems strange that this would happen under 7 : but not 6.2. Does something like "dd if=/dev/zero of=/dev/da1s1 bs=1m" work? Warner