One thing ive been wondering for a long while

km b kmb810 at gmail.com
Wed Mar 12 01:27:33 PDT 2008


On Wed, Mar 12, 2008 at 6:08 PM,  <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.

hi mate,

I don't know about DragonFly but on FreeBSD you can dig out such
information by iterating over
dev.ad or dev.da sysctl nodes.

Cheers
kmb810



-- 
Something is wrong up on cloud # 9!





More information about the Users mailing list