How does an operating system deal with different types of storage devicessda and sdb block specials point to...

Can a rogue effectively triple their speed by combining Dash and Ready?

Get LaTeX form from step by step solution

What are the problems in teaching guitar via Skype?

Biblical Basis for 400 years of silence between old and new testament

chmod would set file permission to 000 no matter what permission i try to set

Term for checking piece whose opponent daren't capture it

Intuition behind eigenvalues of an adjacency matrix

Beginner's snake game using PyGame

What's the most polite way to tell a manager "shut up and let me work"?

Why does the UK have more political parties than the US?

What is the difference between nullifying your vote and not going to vote at all?

How can I offer a test ride while selling a bike?

Why is there a need to modify system call tables in linux?

Expenditure in Poland - Forex doesn't have Zloty

Infinitely many hats

Do Multiclassed spellcasters add their ability modifier or proficiency bonus twice when determining spell save DC?

Where did the “vikings wear helmets with horn” stereotype come from and why?

Differences between “pas vrai ?”, “c’est ça ?”, “hein ?”, and “n’est-ce pas ?”

What does it mean when you think without speaking?

Is it possible to kill all life on Earth?

If a problem only occurs randomly once in every N times on average, how many tests do I have to perform to be certain that it's now fixed?

Did airlines fly their aircraft slower in response to oil prices in the 1970s?

How do I subvert the tropes of a train heist?

Why the lack of hesitance to wear pads on the sabbath?



How does an operating system deal with different types of storage devices


sda and sdb block specials point to same device and get mixed up (hardware RAID doesn't work after new installation of 12.04)What driver is behind a certain device file?How to mount a filesystem by 2 operating systems simultaneously?CentOS 7 - Forcing a disk to be /dev/sdaHow to tell if a block device needs cache flushesEverything is file or process - Linuxpersistent device naming for NVMe storage devicesSwapping a mounted drive between machines - is it possible?Find physical block device of root filesystem on an encrypted filesystem?What are these Chromebook block devices?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















In Linux, it seems like the operating system knows what kind of storage device it is connected to. Eg. I see /dev/sda for SSD device and /dev/mmcblk for SD card.



I was wondering how the operating system is able to know what kind of device is plugged in? Also, what is the component is the OS that lets it interact with these devices.. is it the device driver? I read that the OS presents all devices as a file.. is it the device driver that is presenting a common interface to allow for this file abstraction?










share|improve this question







New contributor



N. Parikh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


























    0















    In Linux, it seems like the operating system knows what kind of storage device it is connected to. Eg. I see /dev/sda for SSD device and /dev/mmcblk for SD card.



    I was wondering how the operating system is able to know what kind of device is plugged in? Also, what is the component is the OS that lets it interact with these devices.. is it the device driver? I read that the OS presents all devices as a file.. is it the device driver that is presenting a common interface to allow for this file abstraction?










    share|improve this question







    New contributor



    N. Parikh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      0












      0








      0








      In Linux, it seems like the operating system knows what kind of storage device it is connected to. Eg. I see /dev/sda for SSD device and /dev/mmcblk for SD card.



      I was wondering how the operating system is able to know what kind of device is plugged in? Also, what is the component is the OS that lets it interact with these devices.. is it the device driver? I read that the OS presents all devices as a file.. is it the device driver that is presenting a common interface to allow for this file abstraction?










      share|improve this question







      New contributor



      N. Parikh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      In Linux, it seems like the operating system knows what kind of storage device it is connected to. Eg. I see /dev/sda for SSD device and /dev/mmcblk for SD card.



      I was wondering how the operating system is able to know what kind of device is plugged in? Also, what is the component is the OS that lets it interact with these devices.. is it the device driver? I read that the OS presents all devices as a file.. is it the device driver that is presenting a common interface to allow for this file abstraction?







      filesystems block-device






      share|improve this question







      New contributor



      N. Parikh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      N. Parikh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      N. Parikh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 36 mins ago









      N. ParikhN. Parikh

      1




      1




      New contributor



      N. Parikh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      N. Parikh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You are mainly right. The OS needs to know the kind of storage device, because it has a completely different interface to an SD-Card (probably dedicated MMC pads on the CPU with the MMC protocol) than to the SSD (SATA?) or some external drive (USB mass storage?). You have completely different device drivers talking with a different protocol over a different hardware bus. Actually, there is no need to wonder how to know the kind of device, but to wonder how to make those completely different devices look all the same.





          share
























            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',
            autoActivateHeartbeat: false,
            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
            });


            }
            });






            N. Parikh is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f521674%2fhow-does-an-operating-system-deal-with-different-types-of-storage-devices%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You are mainly right. The OS needs to know the kind of storage device, because it has a completely different interface to an SD-Card (probably dedicated MMC pads on the CPU with the MMC protocol) than to the SSD (SATA?) or some external drive (USB mass storage?). You have completely different device drivers talking with a different protocol over a different hardware bus. Actually, there is no need to wonder how to know the kind of device, but to wonder how to make those completely different devices look all the same.





            share




























              0














              You are mainly right. The OS needs to know the kind of storage device, because it has a completely different interface to an SD-Card (probably dedicated MMC pads on the CPU with the MMC protocol) than to the SSD (SATA?) or some external drive (USB mass storage?). You have completely different device drivers talking with a different protocol over a different hardware bus. Actually, there is no need to wonder how to know the kind of device, but to wonder how to make those completely different devices look all the same.





              share


























                0












                0








                0







                You are mainly right. The OS needs to know the kind of storage device, because it has a completely different interface to an SD-Card (probably dedicated MMC pads on the CPU with the MMC protocol) than to the SSD (SATA?) or some external drive (USB mass storage?). You have completely different device drivers talking with a different protocol over a different hardware bus. Actually, there is no need to wonder how to know the kind of device, but to wonder how to make those completely different devices look all the same.





                share













                You are mainly right. The OS needs to know the kind of storage device, because it has a completely different interface to an SD-Card (probably dedicated MMC pads on the CPU with the MMC protocol) than to the SSD (SATA?) or some external drive (USB mass storage?). You have completely different device drivers talking with a different protocol over a different hardware bus. Actually, there is no need to wonder how to know the kind of device, but to wonder how to make those completely different devices look all the same.






                share











                share


                share










                answered 5 mins ago









                PhilipposPhilippos

                6,42711951




                6,42711951






















                    N. Parikh is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    N. Parikh is a new contributor. Be nice, and check out our Code of Conduct.













                    N. Parikh is a new contributor. Be nice, and check out our Code of Conduct.












                    N. Parikh is a new contributor. Be nice, and check out our Code of Conduct.
















                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f521674%2fhow-does-an-operating-system-deal-with-different-types-of-storage-devices%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

                    Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                    Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                    Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...