Difference between revisions of "Hwinfo"

From Linuxintro
imported>WikiSysop
imported>ThorstenStaerk
Line 21: Line 21:
 
   log file the debug level is implicitly set to a reasonable value.)
 
   log file the debug level is implicitly set to a reasonable value.)
  
= Example =  
+
= Examples =  
 +
* find out what eth0, eth1 and the like stands for
 +
hwinfo --netcard --short
 +
network:
 +
  eth0                Dell Broadcom BCM5700 1000Base-T
 +
  eth1                Dell Broadcom BCM5700 1000Base-T
 +
 
 +
* find out your hdd controllers
 
  hwinfo --storage --short
 
  hwinfo --storage --short
 
  storage:
 
  storage:
Line 27: Line 34:
 
                         Intel 82801I (ICH9 Family) 2 port SATA IDE Controller
 
                         Intel 82801I (ICH9 Family) 2 port SATA IDE Controller
 
                         Intel 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller
 
                         Intel 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller
 +
 +
* find out your harddisks and partitions
 
  hwinfo --block --short
 
  hwinfo --block --short
 
  disk:
 
  disk:

Revision as of 13:55, 6 April 2009

The program hwinfo allows you to gather information about your hardware:

# hwinfo --help
Usage: hwinfo [options]
Probe for hardware.
  --short        just a short listing
  --log logfile  write info to logfile
  --debug level  set debuglevel
  --version      show libhd version
  --dump-db n    dump hardware data base, 0: external, 1: internal
  --hw_item      probe for hw_item
  hw_item is one of:
   all, bios, block, bluetooth, braille, bridge, camera, cdrom, chipcard,
   cpu, disk, dsl, dvb, fingerprint, floppy, framebuffer, gfxcard, hub,
   ide, isapnp, isdn, joystick, keyboard, memory, modem, monitor, mouse,
   netcard, network, partition, pci, pcmcia, pcmcia-ctrl, pppoe, printer,
   scanner, scsi, smp, sound, storage-ctrl, sys, tape, tv, usb, usb-ctrl,
   vbe, wlan, zip

  Note: debug info is shown only in the log file. (If you specify a
  log file the debug level is implicitly set to a reasonable value.)

Examples

  • find out what eth0, eth1 and the like stands for
hwinfo --netcard --short
network:
  eth0                 Dell Broadcom BCM5700 1000Base-T
  eth1                 Dell Broadcom BCM5700 1000Base-T
  • find out your hdd controllers
hwinfo --storage --short
storage:
                       Floppy disk controller
                       Intel 82801I (ICH9 Family) 2 port SATA IDE Controller
                       Intel 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller
  • find out your harddisks and partitions
hwinfo --block --short
disk:
  /dev/sdb             WDC WD3200AAKS-7
  /dev/sda             SAMSUNG HD103UJ
partition:
  /dev/sdb1            Partition
  /dev/sdb2            Partition
  /dev/sda1            Partition
cdrom:
  /dev/sr1             TSSTcorp DVD+-RW TS-H653B
  /dev/sr0             HL-DT-ST DVD-ROM GDRH20N