From owner-freebsd-usb@FreeBSD.ORG Sat Mar 11 20:13:03 2006 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F5BD16A41F; Sat, 11 Mar 2006 20:13:03 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 259F943D49; Sat, 11 Mar 2006 20:13:03 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (zfvnnbfb1elzj8ec@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id k2BKD2cs066483; Sat, 11 Mar 2006 12:13:02 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id k2BKD2gB066482; Sat, 11 Mar 2006 12:13:02 -0800 (PST) (envelope-from jmg) Date: Sat, 11 Mar 2006 12:13:02 -0800 From: John-Mark Gurney To: Alex Dupre Message-ID: <20060311201302.GJ840@funkthat.com> Mail-Followup-To: Alex Dupre , freebsd-usb@FreeBSD.org References: <441312B7.8010700@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <441312B7.8010700@FreeBSD.org> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-usb@FreeBSD.org Subject: Re: Problem with 16-in-1 card reader X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Mar 2006 20:13:03 -0000 Alex Dupre wrote this message on Sat, Mar 11, 2006 at 19:11 +0100: > The problem arise when I replace the inserted CF with another one (with > different size and filesystem, for example an MSDOS formatted card) and > try to mount it. Fdisk can correctly > sees the new partition table, but devfs is not updated and I cannot > mount the new media. I tried to issue all sort of camcontrol commands > (rescan the bus, eject and load the device, ...) but the dev entries > remain unchanged (equal as boot time) even if the card is inserted or > removed (camcontrol tur can see if the media is ready or not). If I > issue new fdisk and bsdlabel write commands, the dev entries are updated > (I created the boot CF exactly in this way), but I can't find a way to > update them based on what is actually inserted. > The system is a recent 6.1-PRERELEASE. > > Any ideas or suggestions? In there a way to SW unplug/replug the umass0 > device and let FreeBSD recreate the correct device nodes? have you tried: cat /dev/null > /dev/da0 That will force a reprobe of the geom layer for the da0 device by opening it for write, and immediately closing it. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."