[talk] help with sd0 target for dd on netbsd

Sujit K M kmsujit at gmail.com
Tue Aug 9 00:26:12 EDT 2016

On Tue, Aug 9, 2016 at 9:52 AM, fire crow <fire at firecrow.com> wrote:
> On Tue, Aug 9, 2016 at 4:07 AM, Sujit K M <kmsujit at gmail.com> wrote:
>> On Tue, Aug 9, 2016 at 9:25 AM, fire crow <fire at firecrow.com> wrote:
>>> Hi,
>>> Does anyone know how to get access to a usb disk directly in NebBSD,
>>> not just going through the subpartitions. I'm trying to create
>>> bootable media with dd, and it seams like i can only get ahold of the
>>> partitions, e.g dev/sd0a, sd0b... etc, as apposed to the main
>>> /dev/sd0.
>>> it appears the sd0 target does not exist in /dev, or the MAKEDEV
>>> makefile. however there is a usb target that doesn't seam to respond
>>> to mount.
>>> here are some command line results to give an idea of things I've tried.
>>> $ dmesg | grep sd0
>>> sd0 at scsibus0 target 0 lun 0: disk removable
>>> sd0: 29812 MB, 60571 cyl, 16 head, 63 sec, 512 bytes/sect x 61056064 sectors
>>> but ls /dev | grep sd0 is not present
>> I donot think there is any /dev/sd0, i.e /dev/sd0a is the device.
>> Try lsusb:- run it without device and then run it with the device you
>> will get the device.
>> Please mount the device and you can access.
>> https://www.freebsd.org/cgi/man.cgi?query=lsusb&sektion=8&manpath=freebsd-release-ports
> It appears that lsusb does not come standard with NetBSD, looking into
> getting that set up now...

Try using /proc filesystem.

More information about the talk mailing list