From owner-freebsd-stable@FreeBSD.ORG Sun Jan 16 19:31:10 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA733106566C; Sun, 16 Jan 2011 19:31:10 +0000 (UTC) (envelope-from srandall52@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6AF848FC0A; Sun, 16 Jan 2011 19:31:10 +0000 (UTC) Received: by gyf3 with SMTP id 3so1766114gyf.13 for ; Sun, 16 Jan 2011 11:31:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding; bh=ivddwXqDSKHM7k713fj0GxTscdm2WVGDluLiuRM/lAs=; b=p1l67CxshHkmOtTFc2tz0OawNVhY07d82u7VqY/AL21K0V0n8eHVqgyIw2xqeZOYGb Cp9VTg1loLoF6SEk34TpNt04he/k7XWl3YxOvdm7RHFngrU2oMbYNL6U4fIZCkFrZ2ol QvlejkRj0hDm02wNzpEr55bdCeKzBu0ZqJDF0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=XaskfMPES6XLa9RZFl9OlW0oyBkhgNjW9vQj1L+Hjp4o+41mGQDuedl1CAKkQxkeLd KfOwsam/DxWOlWoUNNCnYj1S2vcCb6JJOQnq39C/htALOLk1HeyWyPNOlWJnZ0wdAaIV YnjxN6sMZZsTeJS47IPpVTlwayO4G2i+WjhDw= Received: by 10.90.79.4 with SMTP id c4mr3691464agb.100.1295204375535; Sun, 16 Jan 2011 10:59:35 -0800 (PST) Received: from locust.local (adsl-68-88-175-232.dsl.wchtks.swbell.net [68.88.175.232]) by mx.google.com with ESMTPS id i10sm4412825anh.32.2011.01.16.10.59.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 16 Jan 2011 10:59:34 -0800 (PST) Date: Sun, 16 Jan 2011 12:59:31 -0600 From: Steve Randall To: Warren Block Message-ID: <20110116125931.76472050@locust.local> In-Reply-To: References: <659F3C99-CA41-4685-B981-115802734D02@optusnet.com.au> <4d329926.9Qq/rSteVFLlBlYm%perryh@pluto.rain.com> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; i386-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, quakenet1@optusnet.com.au, perryh@pluto.rain.com, freebsd-usb@freebsd.org Subject: Re: USB Drive not showing up correctly in 8.1 (works in 7.3) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jan 2011 19:31:10 -0000 On Sun, 16 Jan 2011 11:00:01 -0700 (MST) Warren Block wrote: > On Sat, 15 Jan 2011, perryh@pluto.rain.com wrote: > > > Jerahmy Pocott wrote: > > > >> I have a USB Drive that was working fine under 7.3, but since > >> updating to 8.1 no longer has the correct /dev entries. Under > >> 7.3 it was da0s1, in 8.1 there is now only da0 and da0a, which > >> shouldn't exist... > > da0s1 is MBR, da0a is "dangerously dedicated". I would not expect > differences between 7 and 8 USB to show that on an existing drive. If > the drive was reworked during the 7-to-8 upgrade--maybe with "bsdlabel > auto"--that would be a more likely explanation. The actual explanation is the new geom partitioners introduced in 8.0. The disk has an MBR in block 0 and a forgotten BSD label (dangerously dedicated) in block 1. 8.x sensibly ignores one of them; unfortunately it ignores the MBR, not the unwanted BSD label. The solution is: # dd if=/dev/zero of=/dev/da0 seek=1 count=1