From owner-freebsd-stable@FreeBSD.ORG Sun Jul 4 05:55:29 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E8D1106564A for ; Sun, 4 Jul 2010 05:55:29 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 023ED8FC14 for ; Sun, 4 Jul 2010 05:55:28 +0000 (UTC) Received: by gxk24 with SMTP id 24so9948gxk.13 for ; Sat, 03 Jul 2010 22:55:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type:content-transfer-encoding; bh=xbBwuLpEpS0O84wuZf2OcYuCHziitmGV2rdjlWCbP40=; b=WlWsPyQiBSM+Ki/IbjrcYkRfBVXBRmm8CIe0c18ulyAsutsy6v73I78wQiQwjUVH/r YfIREKxNL9yCNBQfmJu4VzYlEKPCRgqGqN4SxjYzjHI+Xpo9oIwtuWPKVvxGQSy1uiJV nTKB2j1eg7D5iXhGhiPsZzLKwqKdPOjk1Wze4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding; b=FsJMWACUjWkuiEfVl0skdp5v+ZShNSleM/jSgSMnAFFV9CxTkm4Zid8ICOJwdamEuu SXvBh+KxXUn0cEvh5Aty1+JqBt1FbFuKu8TO43Z6G4NDNtiCgOmM3SDnIm2wYz9J15EH bvZk5fWO5cPpJrEyuVOgrluYKX7ygzf5Lwbcc= Received: by 10.100.119.14 with SMTP id r14mr1379811anc.18.1278222921857; Sat, 03 Jul 2010 22:55:21 -0700 (PDT) Received: from centel.dataix.local (adsl-99-181-128-180.dsl.klmzmi.sbcglobal.net [99.181.128.180]) by mx.google.com with ESMTPS id r7sm23937393anb.15.2010.07.03.22.55.20 (version=SSLv3 cipher=RC4-MD5); Sat, 03 Jul 2010 22:55:21 -0700 (PDT) Sender: "J. Hellenthal" Message-ID: <4C302248.1020509@dataix.net> Date: Sun, 04 Jul 2010 01:55:20 -0400 From: jhell User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.10) Gecko/20100626 Thunderbird MIME-Version: 1.0 To: Kevin Oberman References: <20100703205111.97CF51CC0D@ptavv.es.net> In-Reply-To: <20100703205111.97CF51CC0D@ptavv.es.net> X-Enigmail-Version: 1.0.1 OpenPGP: id=89D8547E Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: stable@freebsd.org Subject: Re: Odd behavior of labels on different filesystem types 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, 04 Jul 2010 05:55:29 -0000 On 07/03/2010 16:51, Kevin Oberman wrote: > I have run into an odd behavior in 8-stable that I can't see a reason > for. > > If I have a FAT32 formatted removable drive, I get /dev entries for it > as both /dev/msdosfs/LABEL and /dev/ufsid/ID. When I mount the > filesystem, the /dev/ufsid label is removed, but the other two remain. > > If I have a UFS filesystem on the disk, I have similar devices except > that the LABEL is /dev/ufs/LABEL. But, when the UFS device is mounted, > the /dev/ufsid/ID AND the /dev/ufs/LABEL devs are both deleted. > > I'm not sure which is "right", but I can't see the reason for the > different behavior and it has caused a fair bit of trouble when working > with gnome-mount as I can't unmount a ufs device. When the > /dev/ufs/LABEL device is created again on the umount, gnome-mount sees a > new device and immediately re-mounts it. > > Can this inconsistency be corrected? Can you try to zero out that disk first i.e. dd if=/dev/zero of=/dev/DISK bs=4m Then format your msdos fat part and relabel it. You should not see a dev/ufsid/ label for this anymore. I believe that for some reason the ufsid metadata or whatever you want to call it some how has been left behind and is still being read for whatever reason and can be confirmed by this. As for /dev/ufs/LABEL /dev/ufsid/ID /dev/device when you mount one the others should disapear so this is correct behavior. -- +-+-+-+-+-+ |j|h|e|l|l| +-+-+-+-+-+