mount USB device

Hans Petter Selasky hps at selasky.org
Wed Feb 8 17:32:22 UTC 2017


On 01/28/17 22:01, Chris Hellberg wrote:
> 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 at 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 at NYCD-5K%
>
> However the kernel does not detect the drive (normally there would be
> /dev/da0s1 present as well as the block device):
>
> root at NYCD-5K% ls -la /dev/da*
> crw-r-----  1 root  operator    0,  73 Jan 27 23:30 /dev/da0
> root at NYCD-5K%
>
> Fdisk can't get at the device:
>
> root at NYCD-QFX5100-48S-2:RE:0% fdisk /dev/da0
> fdisk: cannot open disk /dev/da0: Device not configured
> root at 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.

Hi,

Some formats don't have a partition label. Did you try to mount /dev/da0 
directly ? Are you expecting labels to be present?

--HPS



More information about the freebsd-usb mailing list