Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Fairly of a minor correction, but the PCI address of the Host Controller for /dev/sda in your example is actually 0000:00:1f.2 the pci0000:00 portion of the path is just a way of grouping stuff with the same domain and bus portions of the address (in this case both zeros). This only affects your highlighted text, not your central point. Commented Jul 3, 2013 at 16:01
  • @JoelDavis - thanks Joel, I've updated the comment to reflect this. Commented Jul 3, 2013 at 16:08
  • I just re-read my opening sentence. D'oh, I can't english so good. Commented Jul 3, 2013 at 16:23
  • @JoelDavis - I knew what saying you were Yoda 8-). Commented Jul 3, 2013 at 16:26
  • 1
    i find the following handy: for LINE in $(lshw -c disk|grep 'dev\|serial'|sed -e "s|.*: ||g"); do echo $LINE; udevadm info -q all -n $LINE 2>/dev/null| grep DEVPATH; echo; done - this command lists all drives together with their serial number and PCI address Commented Sep 8, 2017 at 9:10