From owner-freebsd-usb@freebsd.org Sat Jan 28 21:01:57 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC783CC6623 for ; Sat, 28 Jan 2017 21:01:57 +0000 (UTC) (envelope-from chris@chrishellberg.com) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B5B2F12F2 for ; Sat, 28 Jan 2017 21:01:57 +0000 (UTC) (envelope-from chris@chrishellberg.com) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2D45122145 for ; Sat, 28 Jan 2017 16:01:56 -0500 (EST) Received: from web4 ([10.202.2.214]) by compute5.internal (MEProxy); Sat, 28 Jan 2017 16:01:56 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=chrishellberg.com; h=content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=DN6R/XstpQuFL0NJ4c/pL5zhfX4=; b=nBKkDw/x/m40jgBEKfwM9 93KE5QPF90ycT+U3QHwnDohwA53wHFCKKbXX87sl6svkKSLHeyPYPaw1wmofiw6z 9jmpUn2udPGRmcx8ejf3Tm9d2ZhKMs+NCVMIIzf3sd/1EPwsrS4vdlPUrxMoRKXr 5PPcC8+cCn0FcBwmlX5ubE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=smtpout; bh=DN6R/XstpQuFL0NJ4c/pL5zhf X4=; b=KRg+C3oHOnpclOQASLYNaHV7QLomFxa1ftSvQ54mY2ff3Vj1TqdQ6r2cJ jSeII0K0T0xBpuo2wvlpkgEPr6kgxZqfU7WGkGxE+qvQNvE8KR7Aqh2X7LtYgayF 3kIhcqbNUPBzXZrgs7xi3QAJOoOD7BN75GM0ABFGj9AJMyv8NY= X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 0123FBAB4D; Sat, 28 Jan 2017 16:01:55 -0500 (EST) Message-Id: <1485637315.32561.862669136.6A6031BC@webmail.messagingengine.com> From: Chris Hellberg To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-37809a74 Subject: mount USB device Date: Sat, 28 Jan 2017 21:01:55 +0000 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jan 2017 21:01:58 -0000 Hi, I have a freebsd guest in a VM that receives a USB controller via PCI passthrough. There was a USB drive inserted in the port when the host and freebsd guest were booted. I'd like to be able to mount that drive. The device is detected with usbdevs: root@NYCD-5K% usbdevs addr 1: UHCI root hub, Intel addr 1: EHCI root hub, Intel addr 2: product 0x0020, vendor 0x8087 addr 3: B-READE, GENERICU root@NYCD-5K% However the kernel does not detect the drive (normally there would be /dev/da0s1 present as well as the block device): root@NYCD-5K% ls -la /dev/da* crw-r----- 1 root operator 0, 73 Jan 27 23:30 /dev/da0 root@NYCD-5K% Fdisk can't get at the device: root@NYCD-QFX5100-48S-2:RE:0% fdisk /dev/da0 fdisk: cannot open disk /dev/da0: Device not configured root@NYCD-QFX5100-48S-2:RE:0% Unfortunately the system does not have the camcontrol binary nor lsusb nor gpart. There is /usr/sbin/usbd installed on the system but I don't know if that helps. And unfortunately the system only allows signed binaries so it's essentially a locked environment from the perspective of installing any other binaries. Any ideas how I can get at the disk. I can easily get everything working fine if I pull out and reinsert the USB drive. Thanks, Chris