Date: Sun, 27 Dec 1998 15:27:47 +1030 From: Greg Lehey <grog@lemis.com> To: woju@bbs.ee.ntu.edu.tw, freebsd-questions@FreeBSD.ORG Subject: Re: Howto re-probe hardware in multiuser mode? Message-ID: <19981227152747.R12346@freebie.lemis.com> 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 References: <19981227044347.14182.qmail@bbs.ee.ntu.edu.tw>
next in thread | previous in thread | raw e-mail | index | archive | help
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? > > <SunOS "format"> > Searching for disks...done > > AVAILABLE DISK SELECTIONS: > 0. sd3 at esp0 slave 0 > sd3: <Quantum_1.08G cyl 2110 alt 2 hd 16 sec 63> > Specify disk (enter its number): > </SunOS "format"> > > 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. > > <some-tool> > CPU: AMD-K6tm w/ multimedia extensions (200.46-MHz 586-class CPU) > Origin = "AuthenticAMD" Id = 0x562 Stepping=2 > Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX> > real memory = 134217728 (131072K bytes) > avail memory = 129781760 (126740K bytes) > Probing for devices on PCI bus 0: > ... > </some-tool> > > 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 <IBM DORS-32160 WA0A> at scbus0 target 0 lun 0 (pass0,da0) <CONNER CFP4207S 4.28GB 2847> at scbus0 target 2 lun 0 (pass1,da1) <EXABYTE EXB-8505SMBANSH2 0793> at scbus0 target 3 lun 0 (pass2,sa0) <ARCHIVE Python 28849-XXX 4.CM> at scbus0 target 4 lun 0 (pass3,sa1) <ARCHIVE Python 28849-XXX 4.CM> at scbus0 target 4 lun 1 (pass4) <TANDBERG TDC 3800 -03:> at scbus0 target 5 lun 0 (pass5,sa2) <NRC MBR-7 110> at scbus0 target 6 lun 0 (pass6,cd0) <NRC MBR-7 110> at scbus0 target 6 lun 1 (pass7,cd1) <NRC MBR-7 110> at scbus0 target 6 lun 2 (pass8,cd2) <NRC MBR-7 110> at scbus0 target 6 lun 3 (pass9,cd3) <NRC MBR-7 110> at scbus0 target 6 lun 4 (pass10,cd4) <NRC MBR-7 110> at scbus0 target 6 lun 5 (pass11,cd5) <NRC MBR-7 110> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981227152747.R12346>