How to find out which disk is “sd 0:4:0:0”

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite












I run Ubuntu on a 32GB USB jump drive. Started recently, I kept getting "sd 0:4:0:0: rejecting I/O to offline device". How do I find out if this is the internal hard drive or the external USB drive?










share|improve this question

























    up vote
    2
    down vote

    favorite












    I run Ubuntu on a 32GB USB jump drive. Started recently, I kept getting "sd 0:4:0:0: rejecting I/O to offline device". How do I find out if this is the internal hard drive or the external USB drive?










    share|improve this question























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I run Ubuntu on a 32GB USB jump drive. Started recently, I kept getting "sd 0:4:0:0: rejecting I/O to offline device". How do I find out if this is the internal hard drive or the external USB drive?










      share|improve this question













      I run Ubuntu on a 32GB USB jump drive. Started recently, I kept getting "sd 0:4:0:0: rejecting I/O to offline device". How do I find out if this is the internal hard drive or the external USB drive?







      devices






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 21 at 21:58









      Codism

      1135




      1135




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          I did a bit of googling because I was also curious what the 4 digits with colons meant in terms of drive identification. I believe the 4 digits are the SCSI numbers.



          Update



          If you just install and run lsscsi it will give you something like this:



          [0:0:0:0] disk ATA LITEON LCH-256V2 902 /dev/sda 
          [3:0:0:0] disk Kingston DataTraveler G3 PMAP /dev/sdb


          Original Post



          If you run ls -ld /sys/block/sd*/device it should look like this:



          lrwxrwxrwx 1 root root 0 Feb 21 18:11 /sys/block/sda/device -> ../../../0:0:0:0
          lrwxrwxrwx 1 root root 0 Feb 21 18:12 /sys/block/sdb/device -> ../../../3:0:0:0


          which means 0:0:0:0 is sda and 3:0:0:0 is sdb.



          You can sort out what sda and sdb are by using sudo lshw -class disk -short or something similar.



          In my case:



          H/W path Device Class Description
          ============================================================
          /0/100/14/0/1/0.0.0 /dev/sdb disk 16GB SCSI Disk
          /0/0/0.0.0 /dev/sda disk 256GB LITEON LCH-256V2


          sda is my internal drive and sdb is my flash drive.






          share|improve this answer






















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            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: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1008524%2fhow-to-find-out-which-disk-is-sd-0400%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote



            accepted










            I did a bit of googling because I was also curious what the 4 digits with colons meant in terms of drive identification. I believe the 4 digits are the SCSI numbers.



            Update



            If you just install and run lsscsi it will give you something like this:



            [0:0:0:0] disk ATA LITEON LCH-256V2 902 /dev/sda 
            [3:0:0:0] disk Kingston DataTraveler G3 PMAP /dev/sdb


            Original Post



            If you run ls -ld /sys/block/sd*/device it should look like this:



            lrwxrwxrwx 1 root root 0 Feb 21 18:11 /sys/block/sda/device -> ../../../0:0:0:0
            lrwxrwxrwx 1 root root 0 Feb 21 18:12 /sys/block/sdb/device -> ../../../3:0:0:0


            which means 0:0:0:0 is sda and 3:0:0:0 is sdb.



            You can sort out what sda and sdb are by using sudo lshw -class disk -short or something similar.



            In my case:



            H/W path Device Class Description
            ============================================================
            /0/100/14/0/1/0.0.0 /dev/sdb disk 16GB SCSI Disk
            /0/0/0.0.0 /dev/sda disk 256GB LITEON LCH-256V2


            sda is my internal drive and sdb is my flash drive.






            share|improve this answer


























              up vote
              3
              down vote



              accepted










              I did a bit of googling because I was also curious what the 4 digits with colons meant in terms of drive identification. I believe the 4 digits are the SCSI numbers.



              Update



              If you just install and run lsscsi it will give you something like this:



              [0:0:0:0] disk ATA LITEON LCH-256V2 902 /dev/sda 
              [3:0:0:0] disk Kingston DataTraveler G3 PMAP /dev/sdb


              Original Post



              If you run ls -ld /sys/block/sd*/device it should look like this:



              lrwxrwxrwx 1 root root 0 Feb 21 18:11 /sys/block/sda/device -> ../../../0:0:0:0
              lrwxrwxrwx 1 root root 0 Feb 21 18:12 /sys/block/sdb/device -> ../../../3:0:0:0


              which means 0:0:0:0 is sda and 3:0:0:0 is sdb.



              You can sort out what sda and sdb are by using sudo lshw -class disk -short or something similar.



              In my case:



              H/W path Device Class Description
              ============================================================
              /0/100/14/0/1/0.0.0 /dev/sdb disk 16GB SCSI Disk
              /0/0/0.0.0 /dev/sda disk 256GB LITEON LCH-256V2


              sda is my internal drive and sdb is my flash drive.






              share|improve this answer
























                up vote
                3
                down vote



                accepted







                up vote
                3
                down vote



                accepted






                I did a bit of googling because I was also curious what the 4 digits with colons meant in terms of drive identification. I believe the 4 digits are the SCSI numbers.



                Update



                If you just install and run lsscsi it will give you something like this:



                [0:0:0:0] disk ATA LITEON LCH-256V2 902 /dev/sda 
                [3:0:0:0] disk Kingston DataTraveler G3 PMAP /dev/sdb


                Original Post



                If you run ls -ld /sys/block/sd*/device it should look like this:



                lrwxrwxrwx 1 root root 0 Feb 21 18:11 /sys/block/sda/device -> ../../../0:0:0:0
                lrwxrwxrwx 1 root root 0 Feb 21 18:12 /sys/block/sdb/device -> ../../../3:0:0:0


                which means 0:0:0:0 is sda and 3:0:0:0 is sdb.



                You can sort out what sda and sdb are by using sudo lshw -class disk -short or something similar.



                In my case:



                H/W path Device Class Description
                ============================================================
                /0/100/14/0/1/0.0.0 /dev/sdb disk 16GB SCSI Disk
                /0/0/0.0.0 /dev/sda disk 256GB LITEON LCH-256V2


                sda is my internal drive and sdb is my flash drive.






                share|improve this answer














                I did a bit of googling because I was also curious what the 4 digits with colons meant in terms of drive identification. I believe the 4 digits are the SCSI numbers.



                Update



                If you just install and run lsscsi it will give you something like this:



                [0:0:0:0] disk ATA LITEON LCH-256V2 902 /dev/sda 
                [3:0:0:0] disk Kingston DataTraveler G3 PMAP /dev/sdb


                Original Post



                If you run ls -ld /sys/block/sd*/device it should look like this:



                lrwxrwxrwx 1 root root 0 Feb 21 18:11 /sys/block/sda/device -> ../../../0:0:0:0
                lrwxrwxrwx 1 root root 0 Feb 21 18:12 /sys/block/sdb/device -> ../../../3:0:0:0


                which means 0:0:0:0 is sda and 3:0:0:0 is sdb.



                You can sort out what sda and sdb are by using sudo lshw -class disk -short or something similar.



                In my case:



                H/W path Device Class Description
                ============================================================
                /0/100/14/0/1/0.0.0 /dev/sdb disk 16GB SCSI Disk
                /0/0/0.0.0 /dev/sda disk 256GB LITEON LCH-256V2


                sda is my internal drive and sdb is my flash drive.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Feb 21 at 23:38

























                answered Feb 21 at 22:33









                Ian Colwell

                1384




                1384



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1008524%2fhow-to-find-out-which-disk-is-sd-0400%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    pylint3 and pip3 broken

                    Missing snmpget and snmpwalk

                    How to enroll fingerprints to Ubuntu 17.10 with VFS491