Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
09-07-2017, 02:23 AM
#1
Member
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268
Rep:
Issues searching hardware
Code:
cnp@unix ~/cnp $ sudo lshw | grep -ie bios -ie efi -ie uefi -ie gpt
capabilities: smbios-2.7 dmi-2.7 smp vsyscall32
description: BIOS
capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
product: 7 Series/C216 Chipset Family High Definition Audio Controller
capabilities: gpt-1.00 partitioned partitioned:gpt
logical name: /boot/efi
configuration: FATs=2 filesystem=fat mount.fstype=vfat mount.options=rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro name=rEFInd state=mounted
cnp@unix ~/cnp $
I need to search the booting hardware systems and devices, but what lshw or grep options are needed if I need to retrieve the full hardware descriptions?
09-07-2017, 03:54 AM
#2
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455
For more hardware, use no grep. It throws up a good rate of stuff then. But lshw is a Red Hat script, iirc. It's not on Slackware, for instance.
What are you searching for? That matters when talking about greps. Everything these days is going to have cpu, gpu, nic, & usb. Why do you need to know more?
09-07-2017, 07:51 AM
#3
Member
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268
Original Poster
Rep:
Honestly I need to probe my EVERY system devices, firstly like processor, BIOS, my filesystems, etc, finally my wifi and audio cards, and my using and available USB devices, EVERY hardware devices which I need to probe them are in their full descriptions. So which grep options within lshw are recommended to me? I am now in Linux Mint.
Quote:
Originally Posted by
business_kid
For more hardware, use no grep. It throws up a good rate of stuff then. But lshw is a Red Hat script, iirc. It's not on Slackware, for instance.
What are you searching for? That matters when talking about greps. Everything these days is going to have cpu, gpu, nic, & usb. Why do you need to know more?
09-07-2017, 07:58 AM
#4
Member
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268
Original Poster
Rep:
Code:
hd_scania@linuxmint ~ $ sudo lshw | grep -ie bios -ie efi -ie uefi -ie esp -ie gpt -ie fw -ie firmware -e /dev/sda -ie ext -ie fat -ie x64 -ie x86_64 -ie amd64 -ie usb -ie wireless -ie wifi -ie audio -ie sound -ie snd
*-usb:0
description: USB controller
product: 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2
description: Audio device
product: 6 Series/C200 Series Chipset Family High Definition Audio Controller
configuration: driver=snd_hda_intel latency=0
description: Wireless interface
product: Centrino Wireless-N 130
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=3.16.0-4-amd64 firmware=18.168.6.1 ip=192.168.0.167 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
*-usb:1
description: USB controller
product: 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1
logical name: /dev/sda
capabilities: gpt-1.00 partitioned partitioned:gpt
description: EXT4 volume
logical name: /dev/sda1
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-14 02:22:10 filesystem=ext4 modified=2017-08-27 14:14:45 mounted=2017-08-27 14:10:55 state=clean
description: EXT4 volume
logical name: /dev/sda2
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-14 02:23:06 filesystem=ext4 modified=2017-08-14 21:30:05 state=clean
description: EXT4 volume
logical name: /dev/sda3
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-14 02:23:48 filesystem=ext4 modified=2017-08-14 21:30:11 state=clean
description: EXT4 volume
logical name: /dev/sda4
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-14 02:24:38 filesystem=ext4 modified=2017-08-14 21:30:11 state=clean
description: Windows FAT volume
vendor: mkfs.fat
logical name: /dev/sda5
logical name: /boot/efi
version: FAT32
capabilities: boot fat initialized
configuration: FATs=2 filesystem=fat label=REFIND mount.fstype=vfat mount.options=rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro name=rEFInd state=mounted
description: EXT4 volume
logical name: /dev/sda6
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-14 02:47:07 filesystem=ext4 modified=2017-08-14 21:30:12 state=clean
description: EXT4 volume
logical name: /dev/sda7
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-14 02:25:33 filesystem=ext4 modified=2017-08-14 21:30:13 state=clean
description: EXT4 volume
logical name: /dev/sda8
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-14 02:26:12 filesystem=ext4 modified=2017-08-14 21:30:13 state=clean
description: EXT4 volume
logical name: /dev/sda9
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-14 02:31:23 filesystem=ext4 modified=2017-08-14 21:30:14 state=clean
logical name: /dev/sda10
description: EXT4 volume
logical name: /dev/sda11
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-21 19:30:02 filesystem=ext4 modified=2017-08-21 19:30:02 state=clean
description: EXT4 volume
logical name: /dev/sda12
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-21 19:30:59 filesystem=ext4 modified=2017-08-21 19:30:59 state=clean
description: EXT4 volume
logical name: /dev/sda13
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-21 19:31:53 filesystem=ext4 modified=2017-08-21 19:31:53 state=clean
description: EXT4 volume
logical name: /dev/sda14
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-21 19:32:52 filesystem=ext4 modified=2017-08-21 19:32:52 state=clean
logical name: /dev/sda15
description: EXT4 volume
logical name: /dev/sda16
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-27 08:33:44 filesystem=ext4 label=parabola lastmountpoint=/ modified=2017-09-06 19:07:33 mounted=2017-08-30 14:46:58 name=parabola state=clean
description: EXT4 volume
logical name: /dev/sda17
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-27 13:45:20 filesystem=ext4 label=IPFire lastmountpoint=/target modified=2017-09-06 19:07:44 mounted=2017-08-27 17:02:56 name=IPFire state=clean
description: EXT4 volume
logical name: /dev/sda18
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-09-06 19:09:18 filesystem=ext4 label=VyOS modified=2017-09-06 19:09:41 name=VyOS state=clean
description: EXT4 volume
logical name: /dev/sda19
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-22 06:12:41 filesystem=ext4 label=trisquel lastmountpoint=/ modified=2017-09-06 18:54:34 mounted=2017-09-06 18:54:34 name=trisquel state=clean
logical name: /dev/sda20
description: EXT4 volume
logical name: /dev/sda21
capabilities: journaled extended_attributes large_files huge_files dir_nlink 64bit extents ext4 ext2 initialized
configuration: created=2017-08-21 19:24:46 filesystem=ext4 label=kali modified=2017-09-06 19:08:10 mounted=2017-08-27 17:03:12 name=kali state=clean
description: EXT4 volume
logical name: /dev/sda22
capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
configuration: created=2017-08-27 10:53:11 filesystem=ext4 label=devuan lastmountpoint=/ modified=2017-09-04 17:12:33 mounted=2017-09-04 17:12:33 name=devuan state=clean
description: EXT4 volume
logical name: /dev/sda23
capabilities: journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
configuration: created=2017-08-23 16:49:23 filesystem=ext4 label=linuxmint lastmountpoint=/ modified=2017-09-07 18:51:11 mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro,data=ordered mounted=2017-09-07 18:51:27 name=linuxmint state=mounted
description: EXT4 volume
logical name: /dev/sda24
capabilities: journaled extended_attributes large_files huge_files dir_nlink recover 64bit extents ext4 ext2 initialized
configuration: created=2017-08-30 15:43:46 filesystem=ext4 label=fedora lastmountpoint=/ modified=2017-09-04 17:14:25 mounted=2017-09-04 17:14:30 name=fedora state=clean
description: EXT3 volume
logical name: /dev/sda25
capabilities: journaled extended_attributes large_files recover ext3 ext2 initialized
configuration: created=2017-08-21 19:38:24 filesystem=ext3 label=hd_scania lastmountpoint=/idv modified=2017-09-07 18:53:20 mount.fstype=ext3 mount.options=rw,relatime,data=ordered mounted=2017-09-07 18:53:20 name=hd_scania state=mounted
hd_scania@linuxmint ~ $
My examples are here, but which grep options are to probe their
full descriptions ?
09-07-2017, 09:19 AM
#5
Senior Member
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,675
You could try
Code:
$ sudo dmidecode | more
which will give you a pretty good breakdown of what's inside your box, down to the manufacturer name, type and stepping of your cpu, motherboard FRU, serial number, UUID of disks and placement of your PCI cards, USB connections, etc, etc.
You can no doubt grep what you need from the listing.
Hmmm... I see it's pretty much the same as
OK,
I've learned something new if nobody else has!
Play Bonny!
Last edited by Soadyheid; 09-07-2017 at 09:24 AM .
Reason: Hmmm... etc.
09-08-2017, 01:02 AM
#6
Member
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268
Original Poster
Rep:
Code:
cnp@cnpdevuan:~$ sudo dmidecode | grep -ie bios -ie efi -ie uefi -ie esp -ie gpt -ie fw -ie firmware -e /dev/sda -ie ext -ie fat -ie x64 -ie x86_64 -ie amd64 -ie usb -ie wireless -ie wifi -ie audio -ie sound -ie snd | more# SMBIOS entry point at 0xd635f098
SMBIOS 2.7 present.
BIOS Information
BIOS is upgradeable
BIOS shadowing is allowed
BIOS ROM is socketed
USB legacy is supported
BIOS boot specification is supported
UEFI is supported
BIOS Revision: 0.75
External Reference Designator: PS2Mouse
External Connector Type: PS/2
External Reference Designator: Keyboard
External Connector Type: PS/2
External Reference Designator: TV Out
External Connector Type: Mini Centronics Type-14
External Reference Designator: COM A
External Connector Type: DB-9 male
External Reference Designator: Video
External Connector Type: DB-15 female
External Reference Designator: USB1
External Connector Type: Access Bus (USB)
Port Type: USB
External Reference Designator: USB2
External Connector Type: Access Bus (USB)
Port Type: USB
External Reference Designator: USB3
External Connector Type: Access Bus (USB)
Port Type: USB
External Reference Designator: Not Specified
External Connector Type: None
External Reference Designator: Not Specified
External Connector Type: None
External Reference Designator: Not Specified
External Connector Type: None
Internal Reference Designator: J6C2 - EXT HDMI
External Reference Designator: Not Specified
External Connector Type: None
External Reference Designator: Not Specified
External Connector Type: None
External Reference Designator: Not Specified
External Connector Type: None
External Reference Designator: Not Specified
External Connector Type: None
External Reference Designator: Not Specified
External Connector Type: None
External Reference Designator: Not Specified
External Connector Type: None
External Reference Designator: Not Specified
External Connector Type: None
External Reference Designator: Not Specified
External Connector Type: None
External Reference Designator: Not Specified
External Connector Type: None
External Reference Designator: Not Specified
External Connector Type: None
External Reference Designator: Not Specified
External Connector Type: None
External Reference Designator: Not Specified
External Connector Type: None
External Reference Designator: Not Specified
External Connector Type: None
Type: Sound
Description: Onboard Audio
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
PAE (Physical address extension)
PSE-36 (36-bit page size extension)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
External Clock: 100 MHz
BIOS Language Information
cnp@cnpdevuan:~$
Is this output more pretty than yesterday?
09-08-2017, 01:25 AM
#7
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Depends on what you mean by FULL description. The lshw thing just combines a lot of little things. Like cpuid, lspci, lsusb, /proc/* stuff, and on and on.
$ lspci -nnk
There's a [FFFF:FFFF] vendor:device string that can be looked up in the pciids.txt file.
http://pci-ids.ucw.cz/
(used to be pciids.sourceforge.net)
Of course CPU isn't on the PCI bus, or other things.
Last edited by Shadow_7; 09-08-2017 at 01:32 AM .
All times are GMT -5. The time now is 03:34 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News