From owner-freebsd-current@FreeBSD.ORG Thu Feb 12 12:38:01 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADCD3106564A for ; Thu, 12 Feb 2009 12:38:01 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (brucec-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:c09::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6D3D08FC16 for ; Thu, 12 Feb 2009 12:38:01 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 7ECFB19256 for ; Thu, 12 Feb 2009 12:37:59 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on muon X-Spam-Level: X-Spam-Status: No, score=-2.6 required=8.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 Received: from gluon (unknown [IPv6:2a01:348:10f:0:240:f4ff:fe57:9871]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA for ; Thu, 12 Feb 2009 12:37:59 +0000 (GMT) Date: Thu, 12 Feb 2009 12:37:53 +0000 From: Bruce Cran To: current@freebsd.org Message-ID: <20090212123753.1602cb81@gluon> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.14.4; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Duplicate slice entries in /dev X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2009 12:38:01 -0000 I'm running -CURRENT from about a week ago, and have noticed that duplicate entries are showing up in /dev before a slice is mounted. For example I created a swap-based md disk, used fdisk to write a partition table containing a single msdos partition and noticed that two /dev/md0s1 entries existed. Today I've just got a new microSD card connected via a card reader. I created a filesystem on /dev/da0s1 and I see the following: tau# fdisk /dev/da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=968 heads=255 sectors/track=63 (16065 blks/cyl) parameters to be used for BIOS calculations are: cylinders=968 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 15550857 (7593 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 967/ head 254/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: tau# ls -l /dev/da0* crw-r----- 1 root operator 0, 85 Feb 12 12:28 /dev/da0 crw-r----- 1 root operator 0, 86 Feb 12 12:28 /dev/da0s1 crw-r----- 1 root operator 0, 86 Feb 12 12:28 /dev/da0s1 tau# mount /dev/da0s1 /mnt tau# ls -l /dev/da0* crw-r----- 1 root operator 0, 85 Feb 12 12:28 /dev/da0 crw-r----- 1 root operator 0, 86 Feb 12 12:28 /dev/da0s1 tau# umount /mnt tau# ls -l /dev/da0* crw-r----- 1 root operator 0, 85 Feb 12 12:28 /dev/da0 crw-r----- 1 root operator 0, 86 Feb 12 12:28 /dev/da0s1 crw-r----- 1 root operator 0, 86 Feb 12 12:28 /dev/da0s1 -- Bruce Cran