Checking if Hard disk is present

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
yasar11732
Member
Member
Posts: 28
Joined: Thu Sep 27, 2018 5:10 pm
Libera.chat IRC: yasar
Location: Turkey
Contact:

Checking if Hard disk is present

Post by yasar11732 »

Hi,

I have implemented something similiar to lspci command, and it gives me this output;

Image

I am seeing IDE controller whether or not I set up a harddisk in qemu. Which makes sense, because IDE controller is there even tough there may not be any disk connected.

How can I know whether or not the disk is actually connected to IDE controller?

Best Regards,
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Checking if Hard disk is present

Post by iansjack »

Post Reply