One thing ive been wondering for a long while
Bill Hacker
wbh at conducive.org
Wed Mar 12 03:14:22 PDT 2008
elekktretterr at exemail.com.au wrote:
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.
Cheers,
Petr
Couple of 'convenient' ways, as they provide a good deal of info in one go:
(n)atacontrol list
- 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.
HTH,
Bill
More information about the Users
mailing list