From owner-freebsd-usb@FreeBSD.ORG Thu Aug 21 15:27:36 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 25324106564A for ; Thu, 21 Aug 2008 15:27:36 +0000 (UTC) (envelope-from aminoff@perlw2.nber.org) Received: from mail2.nber.org (mail2.nber.org [66.251.72.79]) by mx1.freebsd.org (Postfix) with ESMTP id B64D88FC0C for ; Thu, 21 Aug 2008 15:27:35 +0000 (UTC) (envelope-from aminoff@perlw2.nber.org) Received: from perlw2.nber.org (perlw2.nber.org [66.251.72.172]) by mail2.nber.org (8.14.1/8.13.8) with ESMTP id m7LEmROi052136 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 21 Aug 2008 10:48:28 -0400 (EDT) (envelope-from aminoff@perlw2.nber.org) Received: from perlw2.nber.org (localhost [127.0.0.1]) by perlw2.nber.org (8.14.1/8.12.8) with ESMTP id m7LEmRW0023464 for ; Thu, 21 Aug 2008 10:48:27 -0400 Received: (from aminoff@localhost) by perlw2.nber.org (8.14.1/8.14.1/Submit) id m7LEmQYa023463 for freebsd-usb@freebsd.org; Thu, 21 Aug 2008 10:48:26 -0400 Date: Thu, 21 Aug 2008 10:48:26 -0400 From: Alex Aminoff To: freebsd-usb@freebsd.org Message-ID: <20080821144826.GD13934@perlw2.nber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) X-Anti-Virus: Kaspersky Anti-Virus for Sendmail with Milter API 5.6.20, bases: 20080821 #997686, check: 20080821 clean Subject: 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:27:36 -0000 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. Thanks, - Alex Aminoff BaseSpace.net National Bureau of Economic Research (nber.org)