DragonFly users List (threaded) for 2008-03
Re: One thing ive been wondering for a long while
How does one list all diskdrives connected to the system (the ones mounted
AND unmounted) on a BSD system without looking at dmesg? Normally, id look
into dmesg to find that ie. my usb drive is on da0 or da1, but there must
be a much better way to find out.
Couple of 'convenient' ways, as they provide a good deal of info in one go:
- covers ATAPI
camcontrol [devlist | periphlist]
- handles similar functionality for SCSI.
NB: You would still need to look at dmesg if/as/when there is one or
more controllers that report on scan but get no driver assigned.
As happens ...
Likewise, depending on OS, there are a number of not-really-SCSI devices
- usually USB or FW, but even PATA/SATA on some controllers - that are
mapped to 'scsibus' and may not be reported by either of the above 'coz
they don't buy into the charade.