Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Apr 2009 09:44:20 -0700 (PDT)
From:      Peter Steele <psteele@maxiscale.com>
To:        #freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Should kern.disks always show currently attached drives?
Message-ID:  <20445545.981239122658390.JavaMail.HALO$@halo>

next in thread | raw e-mail | index | archive | help
I wanted to use the kern.disks sysctl variable but it doesn't seem to work the way I'd expect. When I first inspected this variable it showed the four hard drives I would expect: 

ad4 ad6 ad8 ad10 

Then I inserted a USB stick and checked kern.disks again, and this time the new USB drive was included: 

da0 ad4 ad6 ad8 ad10 

So far so good. Then I removed the USB disk, expecting it to be removed from kern.disks as well, but it was still included in the list. As another test, I removed the hard drive ad8 (it's a hot swappable SATA drive) and like the USB drive, kern.disks still included ad8 in the list. To make matters worse, when I put ad8 back in, an additional entry was added to kern.disks: 

ad8 da0 ad4 ad6 ad8 ad10 

Is this normal behavior? Is there a way to force FreeBSD to refresh this list? 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20445545.981239122658390.JavaMail.HALO$>