LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 09-07-2017, 02:23 AM   #1
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268
Blog Entries: 6

Rep: Reputation: Disabled
Smile 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?
 
Old 09-07-2017, 03:54 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
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?
 
Old 09-07-2017, 07:51 AM   #3
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
Smile

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 View Post
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?
 
Old 09-07-2017, 07:58 AM   #4
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
Smile

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?
 
Old 09-07-2017, 09:19 AM   #5
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,675

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
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
Code:
 $ sudo lshw
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.
 
Old 09-08-2017, 01:02 AM   #6
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
Smile

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?
 
Old 09-08-2017, 01:25 AM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] searching for files within external usb storage drive issues tomahawk Debian 6 11-15-2013 06:32 PM
grep searching for control chars shell issues gquiring Linux - General 2 05-02-2005 02:25 PM
Searching for new hardware ShaDaMan Mandriva 4 01-11-2005 11:57 AM
searching for new hardware (RH 8 & 9) lenlutz Red Hat 0 11-17-2003 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration