Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jan 2017 21:01:55 +0000
From:      Chris Hellberg <chris@chrishellberg.com>
To:        freebsd-usb@freebsd.org
Subject:   mount USB device
Message-ID:  <1485637315.32561.862669136.6A6031BC@webmail.messagingengine.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1485637315.32561.862669136.6A6031BC>