Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What exactly is the OS doing when I plug in for example, a new pen drive to my machine?

installing device driver software

  • The driver should be hardware specific, where does my OS (Windows Vista) get it from? Does it have a repository? But a repository can never have all the drivers.
  • Why does the driver installation happen only the first time? Is it like the drivers are installed forever once done?
  • Also, I have noticed that this process happens even if you plug in a pen drive which has the exact same make and model as the previous one. In this case, shouldn't it be using the already existing driver installation?
share|improve this question
I don't have a full answer, but... To quote (with my added emphasis) - "The driver should be hardware specific, where does my OS (Windows Vista) get it from?" - not always true, as many types of devices can work successfully using generic drivers. – DMA57361 Aug 13 '10 at 10:35
up vote 1 down vote accepted

Windows comes a wide variety of drivers built in, including a lot of generic ones that match many devices to provide at least basic functionality; for example the display adapter ones that you can't really live with but at least let you see stuff.

In addition to that are Microsoft's online repositories; I'm unsure if there's a single central repository or many; the latter I imagine.

Technically the driver installation doesn't only happen the first time; it happens the first time per port it's connected on. For example, if you switch your device to a different USB port it will need to do the driver installation again. This is a well documented fundamental inner working of Windows (I think?) I can't think of the terminology to use to Google it properly right now; but I think I'm right in saying that it's not an issue you'd encounter on other operating systems that bind drivers directly to the device rather than the port and device that is connected- although I may be wrong.

Regarding your question about identical devices needing drivers reinstalled; I think drivers are bound to devices by a "device id" (it may have a better name than that) which is unique per device; so regardless it still needs a new set of drivers.

Your points are valid that life would be a lot easier if this process was optimised and allowed for persistent re-use of installed drivers; but I am sure there are valid reasons and complications that prevent that from becoming actuality at the flick of a switch.

share|improve this answer
Thanks @Steve ! – Lazer Aug 19 '10 at 19:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .