From owner-freebsd-stable@FreeBSD.ORG Sun Nov 20 00:49:53 2005 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7401316A41F for ; Sun, 20 Nov 2005 00:49:53 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4840543D46 for ; Sun, 20 Nov 2005 00:49:53 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 34C7C72DDB; Sat, 19 Nov 2005 16:49:53 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 2F7E072DCB for ; Sat, 19 Nov 2005 16:49:53 -0800 (PST) Date: Sat, 19 Nov 2005 16:49:53 -0800 (PST) From: Doug White To: freebsd-stable@FreeBSD.ORG In-Reply-To: <200511171337.jAHDbG6I096394@lurza.secnetix.de> Message-ID: <20051119164938.S88861@carver.gumbysoft.com> References: <200511171337.jAHDbG6I096394@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Subject: Re: CF card and /dev filesystem entries 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, 20 Nov 2005 00:49:53 -0000 On Thu, 17 Nov 2005, Oliver Fromme wrote: > Brian Candler wrote: > > However, when I insert a CF card with normal partioning I need /dev/da0s1, > > and this is not present in the /dev filesystem because the partition table > > has not been read. > > > > # mount -t msdos /dev/da0s1 /mnt/cf > > mount_msdosfs: /dev/da0s1: No such file or directory > > > > Just reading the first block is not sufficient: > > > > # dd if=/dev/da0 of=/dev/null count=1 > > 1+0 records in > > 1+0 records out > > 512 bytes transferred in 0.040984 secs (12493 bytes/sec) > > # mount -t msdos /dev/da0s1 /mnt/cf > > mount_msdosfs: /dev/da0s1: No such file or directory > > I think devfs is updated when a descriptor on the device > which was opended for writing is closed. But you don't > actually have to write anything. That means, the following > command should do it: > > # dd if=/dev/null of=/dev/da0 count=0 Or "fdisk da0" or "bsdlabel da0" or something like that :-) -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org