Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3690712
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:03:58+00:00 2026-05-19T04:03:58+00:00

How OS detects external Hard-Drive. I mean what procedure or system calls it makes

  • 0

How OS detects external Hard-Drive. I mean what procedure or system calls it makes to know about disk.
Is there any way to automatically determine if External HDD got connected ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:03:58+00:00Added an answer on May 19, 2026 at 4:03 am

    (Answering the only question in your question.)

    For Windows, you need to create a window and handle the WM_DEVICECHANGE message, specifically the DBT_DEVICEARRIVAL event (which is sent automatically without having to register).

    To do this from Python without creating a window, as far as I know the best you can do is to periodically test whether the root paths exist (once per second is probably sufficient, if you need to respond quicker than that Python is not going to work for you):

    import os.path
    for letter in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":
        drive_mounted[letter] = os.path.exists(letter + ":")
    

    (Answering the non-questions in your question.)

    The operating system detects USB/eSATA devices because the USB/eSATA controller on the motherboard will raise an interrupt on the CPU. The OS detects this interrupt and asks the controller about the device, installs any drivers necessary, activates the drivers, identifies a mount point (drive letter) and plays a sound effect.

    (None of this has anything to do with Python, so I assume it also has nothing to do with this question.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know of a way to modify the visual style of how the
I am working on an application that detects the most prominent rectangle in an
I've written a command line utility that detects which network interface is connected, and
If a method checks it's input and detects illegal input, what should it do:
How do I detect if the system has a default recording device installed? I
I have a plugin that uses the Plexus Commandline to invoke some external process
I found some good cons here: The noscript element only detects whether the browser
Curious if anyone has this problem: I save my (embedded) fonts in an external
Does anyone know of a tool that generates a makefile by scanning a directory
I'm looking for a way to determine whether an ARM processor is booting from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.