Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

hwinfo(8) [suse man page]

HWINFO(8)						       System configuration							 HWINFO(8)

NAME
hwinfo - probe for hardware SYNOPSIS
hwinfo [ OPTIONS ] DESCRIPTION
hwinfo is used to probe for the hardware present in the system. It can be used to generate a system overview log which can be later used for support. OPTIONS
Note that running hwinfo without any options is roughly equivalent to 'hwinfo --all --log=-'. --<HARDWARE_ITEM> This option can be given more than once. Probe for a particular HARDWARE_ITEM. Available hardware items are: all, arch, 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, pcm- cia-ctrl, pppoe, printer, redasd, reallyall, scanner, scsi, smp, sound, storage-ctrl, sys, tape, tv, uml, usb, usb-ctrl, vbe, wlan, xen, zip --short Show only a summary. Use this option in addition to a hardware probing option. --listmd Normally hwinfo does not report RAID devices. Add this option to see them. --only DEVNAME This option can be given more than once. If you add this option, only data about devices with DEVNAME will be shown. --save-config SPEC Store config for a particular device below /var/lib/hardware. SPEC can be a device name, an UDI, or 'all'. This option must be given in addition to a hardware probing option. --show-config UDI Show saved config data for a particular device. --map If disk names have changed (e.g. after a kernel update) this prints a list of disk name mappings. Note that you must have used --save-config at some point before for this can work. --debug N Set debug level to N. The 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. --verbose Increase verbosity. Only together with --map. --log FILE Write log info to FILE. --dump-db N Dump hardware data base. N is either 0 for the external data base in /var/lib/hardware, or 1 for the internal data base. --version Print libhd version. --help Print usage. ENVIRONMENT
hwprobe can hold a comma-separated list of probing flags preceded by '+' or '-' to be turned on or off. To get a complete list of supported flags, run 'hwinfo -all' (note: not '--all') and look at the top of the output. hwinfo also looks at /proc/cmdline for a hwprobe option. EXAMPLES
- show all disks hwinfo --disk - just an overview hwinfo --short --block - show a particular disk hwinfo --disk --only /dev/sdb - save disk config state hwinfo --disk --save-config=all - try 4 graphics card ports for monitor data (default: 3) hwprobe=bios.ddc.ports=4 hwinfo --monitor - monitor detection runs the Video BIOS to get the monitor data; dump a complete BIOS code execution trace to the log hwprobe=bios.ddc.ports=1,x86emu=trace:dump:trace.only=0:dump.only=0 hwinfo --monitor --log=foo FILES
/var/lib/hardware/hd.ids External hardware data base (in readable text form). Try the --dump-db option to see the format. /var/lib/hardware/udi Directory where persistent config data are stored (see --save-config option). BUGS
Not all hardware can be detected. SEE ALSO
More documentation in /usr/share/doc/packages/hwinfo. Source repository: git://git.opensuse.org/projects/hwinfo.git. hwinfo June 2009 HWINFO(8)

Check Out this Related Man Page

addbadsec(1M)						  System Administration Commands					     addbadsec(1M)

NAME
addbadsec - map out defective disk blocks SYNOPSIS
addbadsec [-p] [-a blkno [blkno]...] [-f filename] raw_device DESCRIPTION
addbadsec is used by the system administrator to map out bad disk blocks. Normally, these blocks are identified during surface analysis, but occasionally the disk subsystem reports unrecoverable data errors indicating a bad block. A block number reported in this way can be fed directly into addbadsec, and the block will be remapped. addbadsec will first attempt hardware remapping. This is supported on SCSI drives and takes place at the disk hardware level. If the target is an IDE drive, then software remapping is used. In order for software remapping to succeed, the partition must contain an alternate slice and there must be room in this slice to perform the mapping. It should be understood that bad blocks lead to data loss. Remapping a defective block does not repair a damaged file. If a bad block occurs to a disk-resident file system structure such as a superblock, the entire slice might have to be recovered from a backup. OPTIONS
The following options are supported: -a Adds the specified blocks to the hardware or software map. If more than one block number is specified, the entire list should be quoted and block numbers should be separated by white space. -f Adds the specified blocks to the hardware or software map. The bad blocks are listed, one per line, in the specified file. -p Causes addbadsec to print the current software map. The output shows the defective block and the assigned alternate. This option can- not be used to print the hardware map. OPERANDS
The following operand is supported: raw_device The address of the disk drive (see FILES). FILES
The raw device should be /dev/rdsk/c?[t?]d?p0. See disks(1M) for an explanation of SCSI and IDE device naming conventions. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |x86 | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
disks(1M), diskscan(1M), fdisk(1M), fmthard(1M), format(1M), attributes(5) NOTES
The format(1M) utility is available to format, label, analyze, and repair SCSI disks. This utility is included with the addbadsec, diskscan(1M), fdisk(1M), and fmthard(1M) commands available for x86. To format an IDE disk, use the DOS "format" utility; however, to label, analyze, or repair IDE disks on x86 systems, use the Solaris format(1M) utility. SunOS 5.11 24 Feb 1998 addbadsec(1M)
Man Page