Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

linux H/W paths


  • Please log in to reply
7 replies to this topic

#1 JohnC_21

JohnC_21

  • Members
  • 24,657 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:14 AM

Posted 01 February 2015 - 12:15 PM

Using

sudo lshw -short

 

gives me output as follows

H/W path     Device  Class          Description
===============================================
                     system         Computer
/0                   bus            Motherboard
/0/0                 memory         1019MiB System memory
/0/1                 processor      AMD Athlon™
/0/1/0               memory         128KiB L1 cache
/0/1/1               memory         512KiB L2 cache
/0/100               bridge         nForce2 IGP2
/0/100/0.1           memory         RAM memory
/0/100/0.2           memory         RAM memory
/0/100/0.3           memory         RAM memory
/0/100/0.4           memory         RAM memory
/0/100/0.5           memory         RAM memory
/0/100/1             bridge         nForce2 ISA Bridge
/0/100/1.1           bus            nForce2 SMBus (MCP)

Is there a standard code structure to H/W paths and is there any info how to intrepret them?


Edited by JohnC_21, 01 February 2015 - 12:16 PM.


BC AdBot (Login to Remove)

 


#2 cat1092

cat1092

    Bleeping Cat


  • BC Advisor
  • 7,018 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:North Carolina, USA
  • Local time:06:14 AM

Posted 02 February 2015 - 01:04 AM

Is that the entire list? Here's what one of my spare ones shows. 

 

cat@cat-OptiPlex-740-Enhanced ~ $ sudo lshw -short
[sudo] password for cat: 
H/W path        Device      Class       Description
===================================================
                            system      OptiPlex 740 Enhanced ()
/0                          bus         0YP696
/0/1                        memory      128KiB BIOS
/0/2                        processor   AMD Athlon™ Dual Core Processor 4850e
/0/2/10                     memory      128KiB L1 cache
/0/2/11                     memory      1MiB L2 cache
/0/31                       memory      8GiB System Memory
/0/31/0                     memory      2GiB DIMM DDR2 Synchronous 800 MHz (1.2 
/0/31/1                     memory      2GiB DIMM DDR2 Synchronous 800 MHz (1.2 
/0/31/2                     memory      2GiB DIMM DDR2 Synchronous 800 MHz (1.2 
/0/31/3                     memory      2GiB DIMM DDR2 Synchronous 800 MHz (1.2 
/0/0                        memory      RAM memory
/0/0.1                      memory      RAM memory
/0/0.2                      memory      RAM memory
/0/0.3                      memory      RAM memory
/0/0.4                      memory      RAM memory
/0/0.5                      memory      RAM memory
/0/0.6                      memory      RAM memory
/0/0.7                      memory      RAM memory
/0/100                      bridge      C51 PCI Express Bridge
/0/3                        bridge      C51 PCI Express Bridge
/0/3/0          eth0        network     NetXtreme BCM5754 Gigabit Ethernet PCI E
/0/4                        bridge      C51 PCI Express Bridge
/0/4/0                      display     Turks PRO [Radeon HD 7570]
/0/4/0.1                    multimedia  Turks/Whistler HDMI Audio [Radeon HD 600
/0/9                        memory      RAM memory
/0/101                      bridge      MCP51 LPC Bridge
/0/a.1                      bus         MCP51 SMBus
/0/a.2                      memory      RAM memory
/0/b                        bus         MCP51 USB Controller
/0/b.1                      bus         MCP51 USB Controller
/0/e                        storage     MCP51 Serial ATA Controller
/0/f                        storage     MCP51 Serial ATA Controller
/0/10                       bridge      MCP51 PCI Bridge
/0/10.1                     multimedia  MCP51 High Definition Audio
/0/102                      bridge      K8 [Athlon64/Opteron] HyperTransport Tec
/0/103                      bridge      K8 [Athlon64/Opteron] Address Map
/0/104                      bridge      K8 [Athlon64/Opteron] DRAM Controller
/0/105                      bridge      K8 [Athlon64/Opteron] Miscellaneous Cont
/0/5            scsi0       storage     
/0/5/0.0.0      /dev/cdrom  disk        DRW-24B1ST   c
/0/6            scsi1       storage     
/0/6/0.0.0      /dev/sda    disk        320GB WDC WD3200AAJS-6
/0/6/0.0.0/1    /dev/sda1   volume      337MiB Windows NTFS volume
/0/6/0.0.0/2    /dev/sda2   volume      99GiB Windows NTFS volume
/0/6/0.0.0/3    /dev/sda3   volume      192GiB Extended partition
/0/6/0.0.0/3/5  /dev/sda5   volume      39GiB HPFS/NTFS partition
/0/6/0.0.0/3/6  /dev/sda6   volume      39GiB HPFS/NTFS partition
/0/6/0.0.0/3/7  /dev/sda7   volume      20GiB Linux filesystem partition
/0/6/0.0.0/3/8  /dev/sda8   volume      92GiB Linux filesystem partition
/0/6/0.0.0/4    /dev/sda4   volume      5026MiB Linux swap volume
cat@cat-OptiPlex-740-Enhanced ~ $ 
 
Some, I have to search to interpret, the rest, I don't worry with, unless there's a problem. 
 
Cat

Performing full disc images weekly and keeping important data off of the 'C' drive as generated can be the best defence against Malware/Ransomware attacks, as well as a wide range of other issues. 


#3 bmike1

bmike1

  • Members
  • 596 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Gainesville, Florida, USA
  • Local time:06:14 AM

Posted 02 February 2015 - 03:44 AM

did you look at the man page? if so you may have noticed the phrase, "very  much  like the output of HP-UX's ioscan.'

A websearch for 'HP-UX's ioscan' brings up it's man page which states:

 

hw path A numerical string of hardware components, notated
sequentially from the bus address to the device
address. Typically, the initial number is
appended by slash (/), to represent a bus
converter (if required by your machine), and
subsequent numbers are separated by periods (.).
Each number represents the location of a hardware
component on the path to the device.

 

Now I don't know what 'Each number represents the location of a hardware

component on the path to the device' means so I will ask around for that answer


Edited by bmike1, 02 February 2015 - 03:51 AM.

A/V Software? I don't need A/V software. I've run Linux since '98 w/o A/V software and have never had a virus. I never even had a firewall until '01 when I began to get routers with firewalls pre installed. With Linux if a vulnerability is detected a fix is quickly found and then upon your next update the vulnerability is patched.  If you must worry about viruses  on a Linux system only worry about them in the sense that you can infect a windows user. I recommend Linux Mint or, if you need a lighter weight operating system that fits on a cd, MX14 or AntiX.


#4 bmike1

bmike1

  • Members
  • 596 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Gainesville, Florida, USA
  • Local time:06:14 AM

Posted 02 February 2015 - 04:51 AM

 

Is that the entire list? Here's what one of my spare ones shows. 

 

 
Cat

 

The reason it was shorter (I think) is because he didn't run it as sudo. I tried it on my system and the non-sudo ran output is about 24 lines shorter.


A/V Software? I don't need A/V software. I've run Linux since '98 w/o A/V software and have never had a virus. I never even had a firewall until '01 when I began to get routers with firewalls pre installed. With Linux if a vulnerability is detected a fix is quickly found and then upon your next update the vulnerability is patched.  If you must worry about viruses  on a Linux system only worry about them in the sense that you can infect a windows user. I recommend Linux Mint or, if you need a lighter weight operating system that fits on a cd, MX14 or AntiX.


#5 NickAu

NickAu

    Bleepin' Fish Doctor


  • Moderator
  • 13,715 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia
  • Local time:09:14 PM

Posted 02 February 2015 - 04:53 AM

 

The reason it was shorter (I think) is because he didn't run it as sudo.

 

In the first post.

 

Using

sudo lshw -short


Edited by NickAu, 02 February 2015 - 04:53 AM.


#6 JohnC_21

JohnC_21
  • Topic Starter

  • Members
  • 24,657 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:14 AM

Posted 02 February 2015 - 08:32 AM

Thanks for all the replies. That was only a partial list. I copied a pasted a portion of the output just to show the H/W paths.

 

I came across this page. Surprised at all the commands you can use to get hardware info in linux.



#7 Al1000

Al1000

  • Global Moderator
  • 8,054 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:10:14 AM

Posted 02 February 2015 - 08:47 AM

Is there a standard code structure to H/W paths and is there any info how to intrepret them?


Going by the output,

/0 is /system/bus ,where system = computer and bus = motherboard

/0/0 is system/bus/memory

/0/1 is system/bus/processor

/0/1/0 is /system/bus/processor/memory ,which looks like memory for the CPU rather than the system's RAM

... and so on.

The full output of

sudo lshw
...will give more information on what each of the devices are.

Edited by Al1000, 02 February 2015 - 08:47 AM.


#8 bmike1

bmike1

  • Members
  • 596 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Gainesville, Florida, USA
  • Local time:06:14 AM

Posted 02 February 2015 - 02:08 PM

got a couple of responses:

 

1-

it represents which bus and slot it sits in.  like if you wanted to know which card or whatnot to yank.
 
2-
Also, if you want to manipulate the way the kernel uses a device, you can usually find it under a directory like:
 
/proc/bus/
or
/sys/bus/
 
Using this, you can (often) deactivate a device and if the motherboard supports it, pull it out and replace it without rebooting the machine.  Very handy for replacing PCI raid cards and faulty RAM without incurring any downtime.

A/V Software? I don't need A/V software. I've run Linux since '98 w/o A/V software and have never had a virus. I never even had a firewall until '01 when I began to get routers with firewalls pre installed. With Linux if a vulnerability is detected a fix is quickly found and then upon your next update the vulnerability is patched.  If you must worry about viruses  on a Linux system only worry about them in the sense that you can infect a windows user. I recommend Linux Mint or, if you need a lighter weight operating system that fits on a cd, MX14 or AntiX.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users