Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can get Hard Disk Information Using CMD

I am use this command for finding hard disk in formation "wmic diskdrive" but i insert a external device like hard disk or pan drive, this command is provide information of external hard disk or pan drive. so how can find internal hard disk information where system window installed.

like image 518
Lokesh Kumar Avatar asked Nov 04 '14 06:11

Lokesh Kumar


2 Answers

It is off topic here , though you can get the info using following cmd

wmic logicaldisk

or ,

diskpart then list volume

like image 189
Santhosh Avatar answered Oct 21 '22 12:10

Santhosh


"find internal hard disk information where system window installed."

wmic logicaldisk where caption="%systemdrive%" get /value

Note: logicaldisk is a partition on an physical drive (the only one, if you are lucky, but there may be more partitions on the same physical drive)

like image 36
Stephan Avatar answered Oct 21 '22 13:10

Stephan