Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2017 18:31:38 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        Chris Hellberg <chris@chrishellberg.com>, freebsd-usb@freebsd.org
Subject:   Re: mount USB device
Message-ID:  <d8655658-4218-20dd-b5e9-c37cb44f4f92@selasky.org>
In-Reply-To: <1485637315.32561.862669136.6A6031BC@webmail.messagingengine.com>
References:  <1485637315.32561.862669136.6A6031BC@webmail.messagingengine.com>

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

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d8655658-4218-20dd-b5e9-c37cb44f4f92>