From owner-freebsd-stable@FreeBSD.ORG Thu Nov 17 13:37:19 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 8E96F16A41F for ; Thu, 17 Nov 2005 13:37:19 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id E94AC43D46 for ; Thu, 17 Nov 2005 13:37:18 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (qlwxkl@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id jAHDbGOn096395 for ; Thu, 17 Nov 2005 14:37:16 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id jAHDbG6I096394; Thu, 17 Nov 2005 14:37:16 +0100 (CET) (envelope-from olli) Date: Thu, 17 Nov 2005 14:37:16 +0100 (CET) Message-Id: <200511171337.jAHDbG6I096394@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG In-Reply-To: <20051116101200.GA2823@uk.tiscali.com> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.11-STABLE (i386)) Cc: Subject: Re: CF card and /dev filesystem entries X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2005 13:37:19 -0000 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 Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "Perl will consistently give you what you want, unless what you want is consistency." -- Larry Wall