mount USB device

Chris Hellberg chris at chrishellberg.com
Wed Feb 8 19:16:59 UTC 2017



On Wed, Feb 8, 2017, at 17:31, Hans Petter Selasky wrote:

> 
> 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
> 

I tried to mount da0 directly, but no success and expecting slices to be
present. I guess slices are analogous to labels?

Here is the behavior (refering to da0). 

<=====    Without the drive inserted, da0 isn't present:

root at NYCD-MX480-2-re0:/dev # ls | grep da
ada0
ada0p1
ada0p2
ada0p3
ada1
ada1p1
ada1p2
root at NYCD-MX480-2-re0:/dev # 

<==== Inserting the drive

root at NYCD-MX480-2-re0:/dev # ls | grep da

Inserting th 
ada0
ada0p1
ada0p2
ada0p3
ada1
ada1p1
ada1p2
da0
da0p1 <=== slice
da0p2 <=== slice
root at NYCD-MX480-2-re0:/dev #

<=== reboot the system with the drive inserted. The block device is
present (da0)

root at NYCD-MX480-2-re0:/dev # ls | grep da
ada0
ada0p1
ada0p2
ada0p3
ada1
ada1p1
ada1p2
da0
root at NYCD-MX480-2-re0:/dev #

But mounting fails and no slices present:

root at NYCD-MX480-2-re0:/dev # mount /dev/da0 /mnt/usb
mount: /dev/da0: Device not configured
root at NYCD-MX480-2-re0:/dev #

I tried sending an exit code of 0 (true isn't installed on this system)
to the block device as some other threads have suggested but it still
doesn't detect the device:

root at NYCD-MX480-2-re0:/dev # /bin/csh -i 'exit 0' > /dev/da0
root at NYCD-MX480-2-re0:/dev # ls | grep da
ada0
ada0p1
ada0p2
ada0p3
ada1
ada1p1
ada1p2
da0
root at NYCD-MX480-2-re0:/dev #

I have managed get usbconfig on there but usbconfig power_off / power_on
doesn't change anything.

Thanks,

Chris


More information about the freebsd-usb mailing list