USB serial number not shown with lsusb -v command











up vote
3
down vote

favorite












I have a USB-Stick from which I would like to read the serial number.
If I invoke the command
lsusb -v the output in the line iSerial is as follows:



iSerial    3


If i go to /proc/scsi/usb-storage and look into the file i get the following output:



Host scsi10: usb-storage
Vendor: USB
Product: Disk 2.0
Serial Number: 92071573E1272519149
Protocol: Transparent SCSI
Transport: Bulk
Quirks:


Why is there no serial output with the lsusb command on the one hand, but on the other hand I get a serial number from /proc/scsi/usb-storage. Where is the difference between the two methods to gather the serial?










share|improve this question
















bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    up vote
    3
    down vote

    favorite












    I have a USB-Stick from which I would like to read the serial number.
    If I invoke the command
    lsusb -v the output in the line iSerial is as follows:



    iSerial    3


    If i go to /proc/scsi/usb-storage and look into the file i get the following output:



    Host scsi10: usb-storage
    Vendor: USB
    Product: Disk 2.0
    Serial Number: 92071573E1272519149
    Protocol: Transparent SCSI
    Transport: Bulk
    Quirks:


    Why is there no serial output with the lsusb command on the one hand, but on the other hand I get a serial number from /proc/scsi/usb-storage. Where is the difference between the two methods to gather the serial?










    share|improve this question
















    bumped to the homepage by Community 2 days ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I have a USB-Stick from which I would like to read the serial number.
      If I invoke the command
      lsusb -v the output in the line iSerial is as follows:



      iSerial    3


      If i go to /proc/scsi/usb-storage and look into the file i get the following output:



      Host scsi10: usb-storage
      Vendor: USB
      Product: Disk 2.0
      Serial Number: 92071573E1272519149
      Protocol: Transparent SCSI
      Transport: Bulk
      Quirks:


      Why is there no serial output with the lsusb command on the one hand, but on the other hand I get a serial number from /proc/scsi/usb-storage. Where is the difference between the two methods to gather the serial?










      share|improve this question















      I have a USB-Stick from which I would like to read the serial number.
      If I invoke the command
      lsusb -v the output in the line iSerial is as follows:



      iSerial    3


      If i go to /proc/scsi/usb-storage and look into the file i get the following output:



      Host scsi10: usb-storage
      Vendor: USB
      Product: Disk 2.0
      Serial Number: 92071573E1272519149
      Protocol: Transparent SCSI
      Transport: Bulk
      Quirks:


      Why is there no serial output with the lsusb command on the one hand, but on the other hand I get a serial number from /proc/scsi/usb-storage. Where is the difference between the two methods to gather the serial?







      linux usb proc lsusb






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 24 '17 at 18:53









      Community

      1




      1










      asked Apr 25 '17 at 8:46









      Chris

      162




      162





      bumped to the homepage by Community 2 days ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 2 days ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          lsusb may try to open the USB device as O_RDWR (read/write mode) and your user might not have the rights to do this (some error message "Couldn't open device, some information will be missing" should be inbetween the output, if so). Started as root lsusb should also be able to output the whole iSerial value.






          share|improve this answer




























            up vote
            0
            down vote













            There are lots of different USB devices in general (keyboard, mice, webcams, ...). lsusb deals with the connected devices on the USB protocol level.



            Some USB device are storage devices (USB sticks, USB harddisks, ...). They understand a different protocol (more or less SCSI) on top of the USB protocol. Within this protocol, an USB storage device has a serial number (as does an ATA device). This is what you see in /proc/scsi/usb-storage.



            The iSerial number you see in lsusb has nothing to do with it.



            So that's why you see the serial number you are interested in with one method, but not with the other method. And that's why you can't use lsusb to get the kind of serial number you are interested in






            share|improve this answer





















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "106"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f361135%2fusb-serial-number-not-shown-with-lsusb-v-command%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              0
              down vote













              lsusb may try to open the USB device as O_RDWR (read/write mode) and your user might not have the rights to do this (some error message "Couldn't open device, some information will be missing" should be inbetween the output, if so). Started as root lsusb should also be able to output the whole iSerial value.






              share|improve this answer

























                up vote
                0
                down vote













                lsusb may try to open the USB device as O_RDWR (read/write mode) and your user might not have the rights to do this (some error message "Couldn't open device, some information will be missing" should be inbetween the output, if so). Started as root lsusb should also be able to output the whole iSerial value.






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  lsusb may try to open the USB device as O_RDWR (read/write mode) and your user might not have the rights to do this (some error message "Couldn't open device, some information will be missing" should be inbetween the output, if so). Started as root lsusb should also be able to output the whole iSerial value.






                  share|improve this answer












                  lsusb may try to open the USB device as O_RDWR (read/write mode) and your user might not have the rights to do this (some error message "Couldn't open device, some information will be missing" should be inbetween the output, if so). Started as root lsusb should also be able to output the whole iSerial value.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jul 24 '17 at 20:40









                  Jaleks

                  1,168422




                  1,168422
























                      up vote
                      0
                      down vote













                      There are lots of different USB devices in general (keyboard, mice, webcams, ...). lsusb deals with the connected devices on the USB protocol level.



                      Some USB device are storage devices (USB sticks, USB harddisks, ...). They understand a different protocol (more or less SCSI) on top of the USB protocol. Within this protocol, an USB storage device has a serial number (as does an ATA device). This is what you see in /proc/scsi/usb-storage.



                      The iSerial number you see in lsusb has nothing to do with it.



                      So that's why you see the serial number you are interested in with one method, but not with the other method. And that's why you can't use lsusb to get the kind of serial number you are interested in






                      share|improve this answer

























                        up vote
                        0
                        down vote













                        There are lots of different USB devices in general (keyboard, mice, webcams, ...). lsusb deals with the connected devices on the USB protocol level.



                        Some USB device are storage devices (USB sticks, USB harddisks, ...). They understand a different protocol (more or less SCSI) on top of the USB protocol. Within this protocol, an USB storage device has a serial number (as does an ATA device). This is what you see in /proc/scsi/usb-storage.



                        The iSerial number you see in lsusb has nothing to do with it.



                        So that's why you see the serial number you are interested in with one method, but not with the other method. And that's why you can't use lsusb to get the kind of serial number you are interested in






                        share|improve this answer























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          There are lots of different USB devices in general (keyboard, mice, webcams, ...). lsusb deals with the connected devices on the USB protocol level.



                          Some USB device are storage devices (USB sticks, USB harddisks, ...). They understand a different protocol (more or less SCSI) on top of the USB protocol. Within this protocol, an USB storage device has a serial number (as does an ATA device). This is what you see in /proc/scsi/usb-storage.



                          The iSerial number you see in lsusb has nothing to do with it.



                          So that's why you see the serial number you are interested in with one method, but not with the other method. And that's why you can't use lsusb to get the kind of serial number you are interested in






                          share|improve this answer












                          There are lots of different USB devices in general (keyboard, mice, webcams, ...). lsusb deals with the connected devices on the USB protocol level.



                          Some USB device are storage devices (USB sticks, USB harddisks, ...). They understand a different protocol (more or less SCSI) on top of the USB protocol. Within this protocol, an USB storage device has a serial number (as does an ATA device). This is what you see in /proc/scsi/usb-storage.



                          The iSerial number you see in lsusb has nothing to do with it.



                          So that's why you see the serial number you are interested in with one method, but not with the other method. And that's why you can't use lsusb to get the kind of serial number you are interested in







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Sep 7 at 6:16









                          dirkt

                          16.4k21335




                          16.4k21335






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f361135%2fusb-serial-number-not-shown-with-lsusb-v-command%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Accessing regular linux commands in Huawei's Dopra Linux

                              Can't connect RFCOMM socket: Host is down

                              Kernel panic - not syncing: Fatal Exception in Interrupt