From owner-freebsd-questions Sat Dec 26 21:00:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA09492 for freebsd-questions-outgoing; Sat, 26 Dec 1998 21:00:05 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA09447 for ; Sat, 26 Dec 1998 21:00:00 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id PAA22656; Sun, 27 Dec 1998 15:27:46 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id PAA27687; Sun, 27 Dec 1998 15:27:48 +1030 (CST) Message-ID: <19981227152747.R12346@freebie.lemis.com> Date: Sun, 27 Dec 1998 15:27:47 +1030 From: Greg Lehey To: woju@bbs.ee.ntu.edu.tw, freebsd-questions@FreeBSD.ORG Subject: Re: Howto re-probe hardware in multiuser mode? References: <19981227044347.14182.qmail@bbs.ee.ntu.edu.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19981227044347.14182.qmail@bbs.ee.ntu.edu.tw>; from woju@bbs.ee.ntu.edu.tw on Sun, Dec 27, 1998 at 04:43:47AM -0000 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sunday, 27 December 1998 at 4:43:47 -0000, woju@bbs.ee.ntu.edu.tw wrote: > Hi: > In SunOS, the "format" command probe and show info about online disks. > Is there any tool in FreeBSD that can do similar thing? > > > Searching for disks...done > > AVAILABLE DISK SELECTIONS: > 0. sd3 at esp0 slave 0 > sd3: > Specify disk (enter its number): > > > Furthermore, is it possible to "re-probe hardware" in multiuser-mode > like kernel do in boot-stage? I wish to get hardware info in multiuser- > mode. > > > CPU: AMD-K6tm w/ multimedia extensions (200.46-MHz 586-class CPU) > Origin = "AuthenticAMD" Id = 0x562 Stepping=2 > Features=0x8001bf > real memory = 134217728 (131072K bytes) > avail memory = 129781760 (126740K bytes) > Probing for devices on PCI bus 0: > ... > > > Although dmesg/syslog can show/log the info, the info would very likely > fade out after long uptime. > > If anyone know the "some-tool" mentioned above, please let me know, > thanks. It's probably never going to be possible to re-probe everything without crashing the system: each piece of hardware has its own problems, and each driver would require major modifications to support this feature. On the other hand, it *is* possible to reprobe disks with the CAM driver in 3.0. The command is # camcontrol rescan 0 Re-scan of bus 0 was successful # camcontrol devlist at scbus0 target 0 lun 0 (pass0,da0) at scbus0 target 2 lun 0 (pass1,da1) at scbus0 target 3 lun 0 (pass2,sa0) at scbus0 target 4 lun 0 (pass3,sa1) at scbus0 target 4 lun 1 (pass4) at scbus0 target 5 lun 0 (pass5,sa2) at scbus0 target 6 lun 0 (pass6,cd0) at scbus0 target 6 lun 1 (pass7,cd1) at scbus0 target 6 lun 2 (pass8,cd2) at scbus0 target 6 lun 3 (pass9,cd3) at scbus0 target 6 lun 4 (pass10,cd4) at scbus0 target 6 lun 5 (pass11,cd5) at scbus0 target 6 lun 6 (pass12,cd6) As far as I know, nothing similar is planned for IDE. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message